build: Ship adb_root only WITH_SU

* TBH - hardly any user uses adb root.
* adb root poses root detection risks.
* Most devices are user or userbuild type.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi
2025-07-14 10:38:55 +07:00
committed by Joey
parent 2f91c76b79
commit 936a907306

View File

@@ -269,11 +269,12 @@ PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
system/bin/procmem
endif
ifneq ($(TARGET_BUILD_VARIANT),user)
ifeq ($(WITH_SU),true)
# Root
PRODUCT_PACKAGES += \
adb_root
ifneq ($(TARGET_BUILD_VARIANT),user)
ifeq ($(WITH_SU),true)
PRODUCT_PACKAGES += \
su