Im developing an anti-malware type application. for that my application needs to know permissions given to other applications installed on the phone... I've seen this thing in few other applications like LookOut.... How it is done...
Also Pls do you have any other solutions or suggestions on this application... Thanks...
Use PackageManager:
PackageManager packageManager = getPackageManager();
PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0);
PermissionInfo[] pi = packageInfo.permissions;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.