Link between Android Permissions and Permission Groups

后端 未结 4 1811
渐次进展
渐次进展 2020-12-31 13:15

I an new to Android Development. I was looking at the android manifest permissions. There are two things. Permissions and Permission Groups. I know that the list at

4条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 13:37

    The Android source contains the actual mappings between the default permission groups and permissions.

    https://github.com/android/platform_frameworks_base/blob/master/core/res/AndroidManifest.xml

    If you wanted a mapping from permission group to permission you could take AndroidMainifest.xml file for the version of Android you are working with and parse the XML to create the mapping. So to answer your question yes it is possible, but it sounds like this may be overkill for your task.


    UPDATE: Because I actually needed this mapping myself for another project I decided to share my code to create this mapping. You can view the results in the github repository.

    Link: https://github.com/benjholla/AndroidPermissionAttributeMapper


    UPDATE 2:

    My group open sourced our solution that generates this mapping and some other object wrappers around Android documentation for permissions. There are some tutorials on the project page and the github repo.

    Project Page: https://ensoftcorp.github.io/android-essentials-toolbox/

    Source: https://github.com/EnSoftCorp/android-essentials-toolbox

提交回复
热议问题