Reprint: http://blog.csdn.net/feng88724/article/details/6409313
In fact, Android in the definition of permission, for each permission are grouped, each permission has a Permissiongroup attribute.
Take a look at the Android source code (in Frameworks/base/core/res/androidmanifest.xml):
As you can see, this one defines a permissiongroup and then defines the permission:
and permissiongroup in the definition, only the label and Descrip, is to explain the role of this permission group, there is no other use.
1: permission-Group android:name="Android.permission-group.network" corresponding to the description text:
2: permission android:name="Android.permission.INTERNET" corresponding descriptive text:
3: We look at the display in the mobile phone setting (my phone is API 16, not 5.0, but all the same)
Summarize:
Permissiongroup, is a tag inside the permission.
The main function is to display the permissions required by the application,
For example, you use the <uses-permission android:name= "Android.permission.INTERNET"/> Permissions,
So in Android Setting->applications->manage applications-> your app,
The "network communication" permission is displayed, and this "network communication" is the Permissiongroup label.
So Permissiongroup is just a logical grouping that only shows the application permissions to the user.
Of course, it is necessary to note that not all permission have permissiongroup, and some may not have groups.
These non-grouped permission also specify the label themselves to inform the user of the role of this permission.
[Android Pro] Android Permission_group and Permisson difference, function