<uses-permission>
English Original: http://developer.android.com/guide/topics/manifest/uses-permission-element.html
Acquisition (update) Date: 2014-5-16
Moved from the original blog: http://blog.sina.com.cn/s/blog_48d491300100zmx3.html
Google Play Filter
At some point, <uses-permission> permission to apply may affect Google Play's filtering behavior on the app.
If you request hardware-related permissions-such as CAMERA -google Play-You think the application needs the underlying hardware, and the device that does not provide that feature will filter the application.
To control this filtering behavior, you should make sure that you <uses-feature> explicitly declare the required hardware features in the element, rather than relying on Google Play to "discover" the <uses-permission> request in the element. If you want to disable filtering on an attribute, include the attribute in the <uses-feature> declaration android:required="false" .
For a list of permissions that imply requirements for hardware features, see <uses-feature> the documentation for the element.
-
-
Grammar:
-
-
<uses-permission android:name= "string" android:maxsdkversion= "integer"/>
-
-
Included in:
-
-
<manifest>
-
-
Description
-
-
in order for the application to obtain the requested permission properly, the user authorization must be obtained. Permissions are assigned by the user at installation time and not at runtime.
For more information about permissions, see manifest describes the Permissions section of a document and another document security and permissions. A list of system basic permissions can be found android.Manifest.permission .
-
-
Property:
-
-
-
android:name
-
The name of the permission. This can be a permission defined by an element in this application, a
<permission> permission defined by another application, or a android.permission.CAMERA android.permission.READ_CONTACTS standard system permission such as "and". These two examples have shown that a typical permission name should be prefixed with the package name.
-
android:maxSdkVersion
-
The highest API level that the system should have when assigning this permission to an application. This property is useful if the application is no longer required to request this permission at the beginning of a version of the API level.
For example, starting with Android 4.4 (API level 19), if the application is going to write data to its own directory in the external storage ( getExternalFilesDir() obtained), no more permissions need to be requested WRITE_EXTERNAL_STORAGE .
-
-
Introduced in:
-
-
API Level 1
-
-
See:
-
-
<permission>
<uses-feature>
Android Development-api Guide-<uses-permission>