From 8e121663e6d2878e340be257c03c6060182117de Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 30 Mar 2016 12:18:34 -0700 Subject: [PATCH] Build: Switch eng build boot dexopt to verify-at-runtime To have faster turnaround. Bug: 26794212 Change-Id: I1d7877ec8c9cfff62bf14cbd23a790ee7a0b2734 --- target/product/core_minimal.mk | 12 ++++++++++-- target/product/core_tiny.mk | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/target/product/core_minimal.mk b/target/product/core_minimal.mk index 6fdc5c3a2..13f23ad02 100644 --- a/target/product/core_minimal.mk +++ b/target/product/core_minimal.mk @@ -118,9 +118,17 @@ 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. +# On eng builds, make "boot" reasons do pure JIT for faster turnaround. +ifeq (eng,$(TARGET_BUILD_VARIANT)) + PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.first-boot=verify-at-runtime \ + pm.dexopt.boot=verify-at-runtime +else + PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.first-boot=interpret-only \ + pm.dexopt.boot=verify-profile +endif PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.first-boot=interpret-only \ - pm.dexopt.boot=verify-profile \ pm.dexopt.install=interpret-only \ pm.dexopt.bg-dexopt=speed-profile \ pm.dexopt.ab-ota=speed-profile \ diff --git a/target/product/core_tiny.mk b/target/product/core_tiny.mk index 76281f9f9..9c94574e5 100644 --- a/target/product/core_tiny.mk +++ b/target/product/core_tiny.mk @@ -108,9 +108,17 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.carrier=unknown # Different dexopt types for different package update/install times. +# On eng builds, make "boot" reasons do pure JIT for faster turnaround. +ifeq (eng,$(TARGET_BUILD_VARIANT)) + PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.first-boot=verify-at-runtime \ + pm.dexopt.boot=verify-at-runtime +else + PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.first-boot=interpret-only \ + pm.dexopt.boot=verify-profile +endif PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.first-boot=interpret-only \ - pm.dexopt.boot=verify-profile \ pm.dexopt.install=interpret-only \ pm.dexopt.bg-dexopt=speed-profile \ pm.dexopt.ab-ota=speed-profile \