Introduced at API Level 1
Grammar:
<android:description= "string resource" android:icon= " drawable resource " android:label=" string resource " android:name= "String" android:permissiongroup= "string" Android:protectionlevel />
Parent node:<manifest>
Description: a claim can be used to restrict access to security permissions for specific components or features of the app or other application.
Property:
-
-
android:description
-
-
a user-readable permission description that defines more and longer information than the label.
-
-
It can explain permissions to the user, which is the prompt when the user is asked whether to give another application permission.
-
-
-
android:icon
-
-
represents an icon for a permission, usually a reference to an image resource as its value.
-
-
-
android:label
-
-
the name of the permission, usually displayed to the user. For convenience, the original string can be used during development, but when the program is published, replace it with a reference to a string resource so that it can be localized in the user interface like any other string.
-
-
-
android:name
-
-
the name of the permission. will be referenced by the code inside the program. For example, in the
<uses-permission> properties of the node and the application component
permission .
-
- The defined name must be unique, so it is best to use Java-style segmentation. For example: "
com.example.project.PERMITTED_ACTION "
-
-
-
android:permissionGroup
-
-
assign this permission to a group. The value of this property is the name of the group, and the name of the group must be defined in the <permission-group> of the program or another application. If this property is not set, the permission does not belong to the group.
-
-
-
android:protectionLevel
-
-
Indicate the level of potential risk that may occur after granting this permission, with the following values:
| Value |
meaning |
"normal" |
The default value. Permissions for low-level risks. |
"dangerous" |
Permissions for high-level risks |
"signature" |
The permissions are granted only if the certificate security authentication is successful. |
"signatureOrSystem" |
Authentication success or System-assigned permissions. |
Androidmanifest.xml-"Permission"