android判断是不是第三方应用

 1     /**
 2      * 第三方应用过滤器
 3      * 
 4      * @param info
 5      * @return
 6      */
 7     public boolean filterApp(ApplicationInfo info) {
 8         if ((info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) {
 9             return true;
10         } else if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) {
11             return true;
12         }
13         return false;
14     }
相关文章
相关标签/搜索