- सिंटैक्स:
<uses-permission-sdk-23 android:name="string" android:maxSdkVersion="integer" />
- इसमें शामिल है:
<manifest>
- विवरण:
- अभी तक किसी भी व्यक्ति ने चेक इन नहीं किया है
इससे पता चलता है कि किसी ऐप्लिकेशन को कोई खास अनुमति चाहिए. हालांकि, यह अनुमति सिर्फ़ तब ज़रूरी होती है, जब ऐप्लिकेशन
Android 6.0 (एपीआई लेवल 23) या इसके बाद के वर्शन वाले डिवाइस पर इंस्टॉल किया गया हो. अगर डिवाइस
एपीआई लेवल 22 या उससे पहले के लेवल पर चलता है, तो ऐप्लिकेशन
अनुमति.
यह तत्व तब उपयोगी होता है, जब आप कोई नया ऐप्लिकेशन शामिल करने के लिए उसे अपडेट करते हैं सुविधा के लिए अतिरिक्त अनुमति की ज़रूरत होती है. अगर कोई उपयोगकर्ता किसी ऐप्लिकेशन को अगर एपीआई लेवल 22 या उससे पहले के लेवल पर चल रहा हो, तो सिस्टम उपयोगकर्ता को में घोषित सभी नई अनुमतियां देने के लिए इंस्टॉल करते समय अपडेट. अगर नई सुविधा बहुत छोटी है, तो उसे बंद किया जा सकता है उन डिवाइसों पर पूरी तरह से सुविधा का इस्तेमाल कर सकती है, ताकि उपयोगकर्ता को यह अनुमति न देनी पड़े अतिरिक्त अनुमतियां दी हुई हैं.
इसका इस्तेमाल करके
<uses-permission>
के बजाय<uses-permission-sdk-23>
एलिमेंट, आप अनुमति का अनुरोध सिर्फ़ तब कर सकते हैं, जब ऐप्लिकेशन रनटाइम की अनुमतियों की सुविधा देने वाले प्लैटफ़ॉर्म मॉडल, जिसमें उपयोगकर्ता ऐप्लिकेशन के चलने के दौरान उसे अनुमतियां देता है.अनुमतियों के बारे में ज़्यादा जानकारी पाने के लिए, अनुमतियां देखें सेक्शन और Android पर अनुमतियां सेक्शन में जाएं पढ़ें. बेस प्लैटफ़ॉर्म की ओर से तय की गई अनुमतियों की सूची उपलब्ध है
android.Manifest.permission
पर है. - विशेषताएं:
-
android:name
- अभी तक किसी भी व्यक्ति ने चेक इन नहीं किया है
अनुमति का नाम. इस अनुमति को
<permission>
वाला ऐप्लिकेशन एलिमेंट है, तो यह किसी अन्य ऐप्लिकेशन की ओर से तय की गई अनुमति हो सकती है या अनुमति का इस्तेमाल कर सकते हैं, जैसे कि"android.permission.CAMERA"
या"android.permission.READ_CONTACTS"
. android:maxSdkVersion
- अभी तक किसी भी व्यक्ति ने चेक इन नहीं किया है आपके ऐप्लिकेशन को यह अनुमति देने के लिए, सबसे ज़्यादा एपीआई लेवल है. अगर ऐप्लिकेशन, बाद के एपीआई लेवल वाले डिवाइस पर इंस्टॉल होता है, तो ऐप्लिकेशन को अनुमति नहीं दी गई है और वह इससे जुड़ी किसी भी सुविधा का इस्तेमाल नहीं कर सकता.
- इसमें पेश किया गया:
- एपीआई लेवल 23
- यह भी देखें:
<uses-permission-sdk-23>
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# <uses-permission-sdk-23\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cuses-permission-sdk-23 android:name=\"string\"\n android:maxSdkVersion=\"integer\" /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\n\ndescription:\n\n: Specifies that an app wants a particular permission, but only if the app is installed on a device running Android 6.0 (API level 23) or higher. If the device runs API level 22 or lower, the app doesn't want the specified permission.\n This element is useful when you update an app to include a new\n feature that requires an additional permission. If a user updates an app on a\n device that is running API level 22 or lower, the system prompts the user\n at install time to grant all new permissions that are declared in that\n update. If a new feature is minor enough, you might prefer to disable\n the feature altogether on those devices, so the user doesn't have to grant\n additional permissions to update the app.\n\n By using the\n `\u003cuses-permission-sdk-23\u003e` element instead of [`\u003cuses-permission\u003e`](/guide/topics/manifest/uses-permission-element),\n you can request the permission *only* if the app is running on\n platforms that support the [runtime permissions](/training/permissions/requesting)\n model, in which the user\n grants permissions to the app while it is running.\n\n\n For more information on permissions, see the [Permissions](/guide/topics/manifest/manifest-intro#perms)\n section in the app manifest overview and the [Permissions on Android](/guide/topics/permissions)\n guide. A list of permissions defined by the base platform is available\n at [android.Manifest.permission](/reference/android/Manifest.permission).\n\nattributes:\n:\n\n `android:name`\n :\n The name of the permission. This permission can be one defined by the\n app with the [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n element, it can be a permission defined by another app, or it can be one\n of the standard system permissions, such as\n [\"android.permission.CAMERA\"](/reference/android/Manifest.permission#CAMERA)\n or [\"android.permission.READ_CONTACTS\"](/reference/android/Manifest.permission#READ_CONTACTS).\n\n `android:maxSdkVersion`\n :\n The highest API level at which this permission is granted to your\n app. If the app installs on a device with a later API level, the app\n isn't granted the permission and can't use any related functionality.\n\nintroduced in:\n: API level 23\n\nsee also:\n:\n - [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n - [`\u003cuses-permission\u003e`](/guide/topics/manifest/uses-permission-element)\n - [\u003cuses-feature\u003e](/guide/topics/manifest/uses-feature-element)"]]