Determine list of permissions used by an installed application in Android

后端 未结 4 957
难免孤独
难免孤独 2020-12-09 06:42

I have to determine list of permission used each by the installed application on my device.

I have got the list of applications installed and there package name usin

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 07:27

    This is the only thing I found, though I've not tested it out.

    Let me know if it works for any one:

    pm.getPackageInfo(rInfo.activityInfo.applicationInfo.packageName, packageManager.GET_PERMISSIONS);
    

提交回复
热议问题