diff --git a/target/product/base_system.mk b/target/product/base_system.mk index 884af4f5c8..47d9db50ef 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -484,10 +484,8 @@ PRODUCT_PACKAGES_DEBUG_JAVA_COVERAGE := \ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ frameworks/base/config/preloaded-classes:system/etc/preloaded-classes) -# Note: it is acceptable to not have a dirty-image-objects file. In that case, the special bin -# for known dirty objects in the image will be empty. -PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ - frameworks/base/config/dirty-image-objects:system/etc/dirty-image-objects) +# Enable dirty image object binning to reduce dirty pages in the image. +PRODUCT_PACKAGES += dirty-image-objects $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) diff --git a/target/product/media_system.mk b/target/product/media_system.mk index 38ba21989d..503c9b3531 100644 --- a/target/product/media_system.mk +++ b/target/product/media_system.mk @@ -59,10 +59,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes) -# Enable dirty image object binning to reduce dirty pages in the image. -PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ - frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects) - # On userdebug builds, collect more tombstones by default. ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) PRODUCT_VENDOR_PROPERTIES += \