From dc9f80c8cf2a530e365aba7180f19729f1707242 Mon Sep 17 00:00:00 2001 From: George Lee Date: Fri, 2 Dec 2022 18:28:47 +0000 Subject: [PATCH] Enable BrownoutDetection only for debug build Bug: 237287659 Test: Confirm its only debug build only has BrownoutDetection app Change-Id: I7810c10c66047c472e799d708eb9a6bd7ccbce20 Signed-off-by: George Lee --- battery_mitigation/bcl.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/battery_mitigation/bcl.mk b/battery_mitigation/bcl.mk index c74b398..87e0f95 100644 --- a/battery_mitigation/bcl.mk +++ b/battery_mitigation/bcl.mk @@ -1,5 +1,7 @@ -PRODUCT_PACKAGES += battery_mitigation \ - BrownoutDetection +PRODUCT_PACKAGES += battery_mitigation +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +PRODUCT_PACKAGES += BrownoutDetection +endif BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation