How do I differentiate between a system app and a normal app ? I looked through android PackageManager
and could not find any.
Edit: I want
You could try using the flags available in the ApplicationInfo class (android.conent.pm). For example:
...
PackageManager pm = getPackageManager();
List installedApps = pm.getInstalledApplications(0);
for (ApplicationInfo ai: installedApps) {
if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
// System app - do something here
...
} else {
// User installed app?
}
}