Set dalvik.vm.disable-art-service-dexopt=true on eng build.

We can't set all the `pm.dexopt.*` properties to `skip` because there
are product configs that have set those properties and therefore
conflict with our settings.

Bug: 313505540
Test: (on internal main) -
  1. `lunch` an eng build of an internal Go device.
  2. m
Change-Id: Ia3306d0c5d721e84b5cd5ab019302bb644f6de72
This commit is contained in:
Jiakai Zhang
2023-11-28 13:32:19 +00:00
parent 53084d3f91
commit 8737d4baf5

View File

@@ -134,23 +134,8 @@ endif
# This option is for faster iteration during development and should never be enabled for production. # This option is for faster iteration during development and should never be enabled for production.
ifneq (,$(filter true,$(OVERRIDE_DISABLE_DEXOPT_ALL))) ifneq (,$(filter true,$(OVERRIDE_DISABLE_DEXOPT_ALL)))
PRODUCT_SYSTEM_PROPERTIES += \ PRODUCT_SYSTEM_PROPERTIES += \
pm.dexopt.post-boot=skip \ dalvik.vm.disable-art-service-dexopt=true \
pm.dexopt.first-boot=skip \ dalvik.vm.disable-odrefresh=true
pm.dexopt.boot-after-ota=skip \
pm.dexopt.boot-after-mainline-update=skip \
pm.dexopt.install=skip \
pm.dexopt.install-fast=skip \
pm.dexopt.install-bulk=skip \
pm.dexopt.install-bulk-secondary=skip \
pm.dexopt.install-bulk-downgraded=skip \
pm.dexopt.install-bulk-secondary-downgraded=skip \
pm.dexopt.bg-dexopt=skip \
pm.dexopt.ab-ota=skip \
pm.dexopt.inactive=skip \
pm.dexopt.cmdline=skip \
pm.dexopt.shared=skip
PRODUCT_SYSTEM_PROPERTIES += dalvik.vm.disable-odrefresh=true
# Disable all dexpreopt activities except for the ART boot image. # Disable all dexpreopt activities except for the ART boot image.
# We have to dexpreopt the ART boot image because they are used by ART tests. This should not # We have to dexpreopt the ART boot image because they are used by ART tests. This should not