From 695b28f67c88b87486911f8881078e7857e989a8 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 18 May 2016 20:10:43 -0700 Subject: [PATCH] Build: Use phone compiled-classes in core_minimal Use default phone compiled-classes list to cut down boot image size on most devices. Bug: 28026683 Change-Id: I73bb59b792923ebc7549f775085b1c9aed88cc1a --- target/product/core_minimal.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/product/core_minimal.mk b/target/product/core_minimal.mk index 040377c749..7504d017f8 100644 --- a/target/product/core_minimal.mk +++ b/target/product/core_minimal.mk @@ -141,5 +141,9 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ pm.dexopt.shared-apk=speed \ pm.dexopt.forced-dexopt=speed +# Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683 +PRODUCT_COPY_FILES += \ + frameworks/base/compiled-classes-phone:system/etc/compiled-classes + $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)