config: enable ro.debuggable=1 and ro.adb.secure=0 on userdebug/eng builds

This commit is contained in:
oxmc
2026-06-11 01:37:57 -07:00
parent a751dd00c4
commit e35e7c4665
+3 -4
View File
@@ -55,11 +55,10 @@ endif
# ---------------------------------------------------------------------------
# ADB security
# ---------------------------------------------------------------------------
ifeq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_SYSTEM_EXT_PROPERTIES += ro.adb.secure=0
else
ifeq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_SYSTEM_EXT_PROPERTIES += ro.adb.secure=1
PRODUCT_NOT_DEBUGGABLE_IN_USERDEBUG := true
else
PRODUCT_SYSTEM_EXT_PROPERTIES += ro.adb.secure=0
endif
# ---------------------------------------------------------------------------