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     }
相關文章
相關標籤/搜索