اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
إعدادات أداة إدارة الحِزم (ميزة متوقّفة نهائيًا)
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
لا ينطبق تنفيذ dexopt في مدير الحِزم إلا على الإصدار 13 من نظام التشغيل Android والإصدارات الأقدم. في Android 14، تم استبداله بـ ART
Service، وسيتمّت إزالته من "مدير الحِزم" في الإصدار التالي. للحصول على معلومات عن
ضبط إعدادات ART Service، يُرجى الاطّلاع على
ضبط إعدادات ART Service.
منذ الإصدار 7.0 من Android، تتوفّر طريقة عامة لتحديد مستوى
التجميع/التحقّق الذي تم في مراحل مختلفة.
يمكن ضبط مستويات الترجمة من خلال سمات النظام،
وتكون الإعدادات التلقائية هي:
pm.dexopt.install=speed-profile
هذا هو فلتر التجميع المستخدَم عند تثبيت التطبيقات من خلال Google Play أو متاجر التطبيقات
الأخرى. ننصحك بضبط فلتر التثبيت على speed-profile
لتفعيل
استخدام الملفات الشخصية من ملفات البيانات الوصفية dex (اطّلِع على
المدوّنة).
يُرجى العِلم أنّه في حال عدم تقديم ملف شخصي أو إذا كان فارغًا، تكون القيمة 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 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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."]]