android 判断是否是第三方应用

系统内置应用对应的flag为 ApplicationInfo.FLAG_SYSTEM

boolean isSystemApp(Application aInfo){

if((aInfo.flags & aInfo.FLAG_SYSTEM) == 0){

return false;

}else {

return true;

}

}

猜你喜欢

转载自blog.csdn.net/liangtianmeng/article/details/77076157