Androidmanifest.xml-"Permission"

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.