From 0647bcb8e5a768f162c144b185e896b8e50f4685 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 22 Mar 2016 19:44:24 -0700 Subject: [PATCH] Build: Provide default values for dexopt settings Provide default values for system properties used by the package manager. Bug: 27689078 Change-Id: Iedab0c0b1da6c905658546df7992f77fd6b55da1 --- target/product/core_minimal.mk | 10 ++++++++++ target/product/core_tiny.mk | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/target/product/core_minimal.mk b/target/product/core_minimal.mk index 998f4ae6f..4a413cd69 100644 --- a/target/product/core_minimal.mk +++ b/target/product/core_minimal.mk @@ -117,5 +117,15 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt +# Different dexopt types for different package update/install times. +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.boot=verify-profile \ + pm.dexopt.install=interpret-only \ + pm.dexopt.bg-dexopt=speed-profile \ + pm.dexopt.ab-ota=speed-profile \ + pm.dexopt.nsys-library=speed \ + pm.dexopt.shared-apk=speed \ + pm.dexopt.forced-dexopt=speed + $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk) diff --git a/target/product/core_tiny.mk b/target/product/core_tiny.mk index 3e3220b18..0d30a22dd 100644 --- a/target/product/core_tiny.mk +++ b/target/product/core_tiny.mk @@ -107,6 +107,16 @@ PRODUCT_COPY_FILES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.carrier=unknown +# Different dexopt types for different package update/install times. +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.boot=verify-profile \ + pm.dexopt.install=interpret-only \ + pm.dexopt.bg-dexopt=speed-profile \ + pm.dexopt.ab-ota=speed-profile \ + pm.dexopt.nsys-library=speed \ + pm.dexopt.shared-apk=speed \ + pm.dexopt.forced-dexopt=speed + $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk) $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)