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

 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     }

 

posted @ 2013-02-22 23:12  My_苦行僧  阅读(215)  评论(0编辑  收藏  举报