From 2d28880a51bf098f0ecf1f52558690bca212193e Mon Sep 17 00:00:00 2001 From: Abhisek Devkota Date: Tue, 27 Dec 2016 22:30:35 -0800 Subject: [PATCH] Disable SU by default - We plan on distributing an addon for our SU - Developers that want SU by default can export WITH_SU=true to their env - This helps with application compatibility for various services, while maintaining user flexibility Change-Id: I6d52159676f805c3698ff59c896d943a3a4b25db --- config/common.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/common.mk b/config/common.mk index cc8701c0..b03299a9 100644 --- a/config/common.mk +++ b/config/common.mk @@ -207,9 +207,14 @@ PRODUCT_PROPERTY_OVERRIDES += \ ifneq ($(TARGET_BUILD_VARIANT),user) PRODUCT_PACKAGES += \ procmem \ - procrank \ + procrank + +# Conditionally build in su +ifeq ($(WITH_SU),true) +PRODUCT_PACKAGES += \ su endif +endif DEVICE_PACKAGE_OVERLAYS += vendor/cm/overlay/common