हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
पैकेज मैनेजर कॉन्फ़िगरेशन (अब काम नहीं करता)
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पैकेज मैनेजर में dexopt लागू करने की सुविधा, सिर्फ़ Android 13 और इससे पहले के वर्शन पर लागू होती है. Android 14 में, इसे ART
Service से बदल दिया गया है. साथ ही, इसे अगले वर्शन में पैकेज मैनेजर से हटा दिया जाएगा. ART Service को कॉन्फ़िगर करने के बारे में जानकारी पाने के लिए, ART Service कॉन्फ़िगरेशन लेख पढ़ें.
Android 7.0 के बाद, अलग-अलग चरणों में होने वाले संकलन/पुष्टि के लेवल की जानकारी देने का एक सामान्य तरीका है.
कंपाइलेशन लेवल को सिस्टम प्रॉपर्टी के ज़रिए कॉन्फ़िगर किया जा सकता है. इसके लिए, डिफ़ॉल्ट तौर पर ये लेवल इस्तेमाल किए जाते हैं:
pm.dexopt.install=speed-profile
यह कंपाइलेशन फ़िल्टर है, जिसका इस्तेमाल Google Play या अन्य ऐप्लिकेशन स्टोर से ऐप्लिकेशन इंस्टॉल करते समय किया जाता है. हमारा सुझाव है कि इंस्टॉल फ़िल्टर को speed-profile
पर सेट करें, ताकि डेक्स मेटाडेटा फ़ाइलों से प्रोफ़ाइलों का इस्तेमाल किया जा सके. इसके लिए, ब्लॉग देखें.
ध्यान दें कि अगर कोई प्रोफ़ाइल नहीं दी गई है या वह खाली है, तो speed-profile
का मतलब verify
से है.
pm.dexopt.bg-dexopt=speed-profile
यह कंपाइलेशन फ़िल्टर तब इस्तेमाल किया जाता है, जब डिवाइस इस्तेमाल में न हो और चार्ज हो रहा हो. प्रोफ़ाइल के हिसाब से कंपाइल करने की सुविधा का फ़ायदा पाने और स्टोरेज में सेव करने के लिए, speed-profile
कंपाइलर फ़िल्टर आज़माएं.
pm.dexopt.boot-after-ota=verify
ओवर-द-एयर अपडेट के बाद इस्तेमाल किया जाने वाला कंपाइलेशन फ़िल्टर. हमारा सुझाव है कि इस विकल्प के लिए, verify
कंपाइलर फ़िल्टर का इस्तेमाल करें, ताकि डिवाइस को बूट होने में ज़्यादा समय न लगे.
pm.dexopt.first-boot=verify
-
डिवाइस के पहली बार बूट होने पर, कंपाइलेशन फ़िल्टर. यहां इस्तेमाल किए गए फ़िल्टर का असर, फ़ैक्ट्री रीसेट के बाद के बूट समय पर ही पड़ता है. हमारा सुझाव है कि फ़िल्टर के तौर पर verify
का इस्तेमाल करें, ताकि उपयोगकर्ता को फ़ोन का इस्तेमाल करने में ज़्यादा समय न लगे. ध्यान दें कि अगर सिस्टम इमेज में मौजूद सभी ऐप्लिकेशन, सही क्लास लोडर कॉन्टेक्स्ट के साथ verify
, speed-profile
या speed
के साथ पहले से ही कंपाइल किए गए हैं, तो पहले बूट पर कंपाइलेशन को छोड़ दिया जाएगा और pm.dexopt.first-boot
का कोई असर नहीं होगा.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Package Manager Configuration (deprecated)\n\nThe dexopt implementation in the package manager only applies to Android\n13 and lower. In Android 14, it is replaced by ART\nService, and it will be removed from the package manager in the next version. For information about\nconfiguring ART Service, see\n[ART Service Configuration](/docs/core/runtime/configure/art-service).\n\n\nSince Android 7.0, there's a generic way to specify the level of\ncompilation/verification that happened at various stages.\nThe compilation levels can be configured via system properties\nwith the defaults being:\n\n- `pm.dexopt.install=speed-profile`\n- This is the compilation filter used when installing applications through Google Play or other app stores. We recommend the install filter be set to `speed-profile` in order to enable the use of profiles from the dex metadata files (see [blog](https://android-developers.googleblog.com/2019/04/improving-app-performance-with-art.html)). Note that if a profile isn't provided or if it is empty, `speed-profile` is equivalent to `verify`.\n- `pm.dexopt.bg-dexopt=speed-profile`\n- This is the compilation filter used when the device is idle and charging. Try the `speed-profile` compiler filter to take advantage of profile-guided compilation and save on storage.\n- `pm.dexopt.boot-after-ota=verify`\n- The compilation filter used after an over-the-air update. We **strongly** recommend the `verify` compiler filter for this option to avoid very long boot times.\n- `pm.dexopt.first-boot=verify`\n-\n The compilation filter for the first time the device ever boots. The filter\n used here only affects the boot time after factory. We recommend the filter\n `verify` for it to avoid long times before a user gets to\n use the phone for the very first time. Note that if all applications in\n the system image are already compiled with `verify`, `speed-profile`, or\n `speed` with the right class loader context, the compilation on the first boot will be\n skipped, and `pm.dexopt.first-boot` will have no effect."]]