From 3f80b26ba2a0cf8521a8ea8d647c50074611032b Mon Sep 17 00:00:00 2001 From: Pranav Vashi Date: Mon, 14 Jul 2025 10:38:55 +0700 Subject: [PATCH] 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 --- config/common.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/common.mk b/config/common.mk index 85bf8831..8641dbd0 100644 --- a/config/common.mk +++ b/config/common.mk @@ -273,11 +273,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