page.title=<uses-permission-sdk-23> page.tags="uses-permission-sdk-23","permissions","uses-permission-sdk23" parent.title=The AndroidManifest.xml File parent.link=manifest-intro.html @jd:body
<uses-permission-sdk-23 android:name="string" android:maxSdkVersion="integer" />
<manifest>
This element is useful when you update an app to include a new
feature that requires an additional permission. If a user updates an app on a
device that is running API level 22 or lower, the system prompts the user
at install time to grant all new permissions that are declared in that
update. If a new feature is minor enough, you may prefer to disable
the feature altogether on those devices, so the user does not have to grant
additional permissions to update the app. By using the
<uses-permission-sdk-23>
element instead of <uses-permission>
,
you can request the permission only if the app is running on
platforms that support the runtime permissions
model, in which the user
grants permissions to the app while it is running.
For more information on permissions, see the Permissions section in the introduction and the separate System Permissions API guide. A list of permissions defined by the base platform is available at {@link android.Manifest.permission android.Manifest.permission}.
<permission>
element, it can be a permission defined by another app, or it can be one
of the standard system permissions, such as
{@link android.Manifest.permission#CAMERA "android.permission.CAMERA"}
or {@link android.Manifest.permission#READ_CONTACTS
"android.permission.READ_CONTACTS"}.