系统内置应用对应的flag为 ApplicationInfo.FLAG_SYSTEM
boolean isSystemApp(Application aInfo){
if((aInfo.flags & aInfo.FLAG_SYSTEM) == 0){
return false;
}else {
return true;
}
}
系统内置应用对应的flag为 ApplicationInfo.FLAG_SYSTEM
boolean isSystemApp(Application aInfo){
if((aInfo.flags & aInfo.FLAG_SYSTEM) == 0){
return false;
}else {
return true;
}
}