از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
پیکربندی مدیریت بسته (منسوخ شده)
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پیاده سازی dexopt در مدیریت بسته فقط برای اندروید 13 و پایین تر اعمال می شود. در اندروید 14 با سرویس ART جایگزین شده و در نسخه بعدی از مدیریت بسته حذف خواهد شد. برای اطلاعات در مورد پیکربندی سرویس ART، به پیکربندی سرویس ART مراجعه کنید.
از اندروید 7.0، یک روش عمومی برای تعیین سطح جمعآوری/تأییدسنجی که در مراحل مختلف اتفاق افتاده است، وجود دارد. سطوح کامپایل را می توان از طریق ویژگی های سیستم پیکربندی کرد و پیش فرض های آن عبارتند از:
-
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
هیچ تأثیری نخواهد داشت. .
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]