From d0586cdd4bda30b07ef845f39ad091e688d11234 Mon Sep 17 00:00:00 2001 From: George Lee Date: Fri, 2 Dec 2022 10:05:07 -0800 Subject: [PATCH] Enable BrownoutDetection only for debug build Bug: 237287659 Test: Confirm its only debug build only has BrownoutDetection app Merged-In: If80954497a75da0d41c8d75126e42eaae1330003 Change-Id: Ibc1102f779007692d41a423a30075f745129ea1b Signed-off-by: George Lee --- device.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/device.mk b/device.mk index 05aa9d22..e25647e5 100644 --- a/device.mk +++ b/device.mk @@ -551,8 +551,12 @@ PRODUCT_PACKAGES += \ # Battery Mitigation PRODUCT_PACKAGES += \ - battery_mitigation \ - BrownoutDetection + battery_mitigation + + +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +PRODUCT_PACKAGES += BrownoutDetection +endif PRODUCT_PACKAGES_DEBUG += \ sg_write_buffer \