diff --git a/core/dex_preopt_libart.mk b/core/dex_preopt_libart.mk index de34d888e..79e72c15f 100644 --- a/core/dex_preopt_libart.mk +++ b/core/dex_preopt_libart.mk @@ -26,7 +26,9 @@ DIRTY_IMAGE_OBJECTS := $(call word-colon,1,$(firstword \ $(filter %system/etc/dirty-image-objects,$(PRODUCT_COPY_FILES)))) define get-product-default-property -$(strip $(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_DEFAULT_PROPERTY_OVERRIDES)))) +$(strip \ + $(eval _prop := $(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))))\ + $(if $(_prop),$(_prop),$(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_SYSTEM_DEFAULT_PROPERTIES))))) endef DEX2OAT_IMAGE_XMS := $(call get-product-default-property,dalvik.vm.image-dex2oat-Xms) diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk index 829601caa..b9703039d 100644 --- a/target/product/runtime_libart.mk +++ b/target/product/runtime_libart.mk @@ -56,7 +56,7 @@ PRODUCT_PACKAGES += art-tools PRODUCT_PACKAGES += \ cacerts \ -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ +PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ dalvik.vm.image-dex2oat-Xms=64m \ dalvik.vm.image-dex2oat-Xmx=64m \ dalvik.vm.dex2oat-Xms=64m \ @@ -72,16 +72,16 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Different dexopt types for different package update/install times. # On eng builds, make "boot" reasons only extract for faster turnaround. ifeq (eng,$(TARGET_BUILD_VARIANT)) - PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ pm.dexopt.first-boot=extract \ pm.dexopt.boot=extract else - PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ pm.dexopt.first-boot=quicken \ pm.dexopt.boot=verify endif -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ +PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ pm.dexopt.install=quicken \ pm.dexopt.bg-dexopt=speed-profile \ pm.dexopt.ab-ota=speed-profile \