Skip to content

Commit

Permalink
lineage: config: Allow using an env var to enable insecure ADB
Browse files Browse the repository at this point in the history
* Still requires key but most of us do this via vendor/extra anyway.

Change-Id: Ib2d58af850d01a9c9d787be7a67b6d6b8c6ef899
  • Loading branch information
npjohnson authored and bgcngm committed Nov 9, 2024
1 parent c47692f commit 2eb893f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,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
Expand Down

0 comments on commit 2eb893f

Please sign in to comment.