/**
* 三方应用程序的过滤器
*
* @param info
* @return true 三方应用 false 系统应用
*/
public boolean filterApp(ApplicationInfo info) {
if ((info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) {
// 代表的是系统的应用,但是被用户升级了. 用户应用
return true;
} else if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) {
// 代表的用户的应用
return true;
}
return false;
}
}
|