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
This commit is contained in:
Abhisek Devkota 2016-12-27 22:30:35 -08:00 committed by Zhao Wei Liew
parent d687ac59b2
commit 2d28880a51

View File

@ -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