From 47e137f3576098eff7ccb8c39f2f23258097f1bd Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 6 Jul 2017 21:20:54 -0700 Subject: [PATCH] Build: More tombstones in userdebug For devices using core_minimal, set the number of retained tombstones in userdebug and eng builds to 50. This will help with dogfooding. Bug: 63131375 Test: lunch bullhead_userdebug && m && fastboot flashall && adb getprop tombstoned.max_tombstone_count Change-Id: I163d40f7a8f73df1af1228309d7a7a95511bdef9 --- target/product/core_minimal.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/product/core_minimal.mk b/target/product/core_minimal.mk index 9ea9a5a0a..fb5f8d2b5 100644 --- a/target/product/core_minimal.mk +++ b/target/product/core_minimal.mk @@ -150,5 +150,11 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ frameworks/base/compiled-classes-phone:system/etc/compiled-classes) +# On userdebug builds, collect more tombstones by default. +ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + tombstoned.max_tombstone_count=50 +endif + $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)