判断应用程序是否是用户程序

 1     /******判断应用程序是否是用户程序*************/
 2     public boolean filterApp(ApplicationInfo info){
 3         // 原来是系统应用,用户手动升级 变成用户应用
 4         if((info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0){
 5             return true;
 6             
 7             // 用户自己安装的应用程序
 8         } else if((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0){
 9             return true;
10         }
11         return false;
12     }
原文地址:https://www.cnblogs.com/androidez/p/2922998.html