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     }

 

posted @ 2013-07-03 17:46  tagie  阅读(447)  评论(0编辑  收藏  举报