lineage: config: Allow using an env var to enable insecure ADB

* Still requires key but most of us do this via vendor/extra anyway.

Change-Id: Ib2d58af850d01a9c9d787be7a67b6d6b8c6ef899
This commit is contained in:
Nolen Johnson
2023-05-17 14:02:28 -04:00
committed by Bruno Martins
parent 2e33440b2a
commit 0da17a7edd

View File

@@ -25,8 +25,13 @@ ifeq ($(TARGET_BUILD_VARIANT),eng)
# Disable ADB authentication
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0
else
ifdef WITH_ADB_INSECURE
# Forcebly disable ADB authentication
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0
else
# Enable ADB authentication
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1
endif
# Disable extra StrictMode features on all non-engineering builds
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.strictmode.disable=true