开发者

Why is PackageInfo.requestedPermissions always null?

开发者 https://www.devze.com 2022-12-31 04:32 出处:网络
I\'m trying to enumerate all the pe开发者_开发技巧rmissions used by all the installed packages, however when I check the requestedPermissions property for each of my installed packages it is always nu

I'm trying to enumerate all the pe开发者_开发技巧rmissions used by all the installed packages, however when I check the requestedPermissions property for each of my installed packages it is always null.


I just needed to pass the PackageManager.GET_PERMISSIONS flag to getInstalledPackages(). Here is a code snippet.

getPackageManager().getInstalledPackages(PackageManager.GET_PERMISSIONS);

0

精彩评论

暂无评论...
验证码 换一张
取 消