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     }
原文地址:https://www.cnblogs.com/tagie/p/3169970.html