I'm working on a security app and I would like to warn users which applications have dangerous permissions
Is there a way to do this on Android?
I'm working on a security app and I would like to warn users which applications have dangerous permissions
Is there a way to do this on Android?
Get List of installed packages
List<PackageInfo> installedPackages = context.getPackageManager()
.getInstalledPackages(PackageManager.GET_PERMISSIONS);
Fetch permission of installed packages
for (int i = 0; i < installedPackages.size(); i++) {
PackageInfo packageInfo = installedPackages.get(i);
FeatureInfo[] packageFeature = packageInfo.reqFeatures;
PermissionInfo[] packagePermission = packageInfo.permissions;
}