diff options
| author | SpiritCroc <dev@spiritcroc.de> | 2025-07-06 20:05:41 +0200 |
|---|---|---|
| committer | SpiritCroc <dev@spiritcroc.de> | 2025-07-06 20:07:35 +0200 |
| commit | d91be06c0c8ad25e9e82f9ab3cdb01503f5a67a6 (patch) | |
| tree | eab3249faa2fa031a8d1d885ed2d4634aa4af734 | |
| parent | 4a182457682a4d5c33b3a9989e37f020b321aac5 (diff) | |
soong: Tweak props for userdebug (set adb secure; allow mock locations)v15.0
Change-Id: I23e123a0cfc28be73ebbd06a2c356c276ac787ac
| -rw-r--r-- | scripts/gen_build_prop.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/gen_build_prop.py b/scripts/gen_build_prop.py index e3e0fd1db..33b449b44 100644 --- a/scripts/gen_build_prop.py +++ b/scripts/gen_build_prop.py @@ -364,13 +364,21 @@ def append_additional_system_props(args): enable_target_debugging = False enable_dalvik_lock_contention_logging = False else: + # AICP: also set ro.adb.secure for userdebug + if config["BuildVariant"] == "userdebug": + props.append("ro.adb.secure=1") + # Disable debugging in userdebug builds if PRODUCT_NOT_DEBUGGABLE_IN_USERDEBUG # is set. if config["ProductNotDebuggableInUserdebug"]: enable_target_debugging = False # Disallow mock locations by default for user builds - props.append("ro.allow.mock.location=0") + # AICP: still allow for userdebug + if config["BuildVariant"] == "userdebug": + props.append("ro.allow.mock.location=1") + else: + props.append("ro.allow.mock.location=0") else: # Turn on checkjni for non-user builds. props.append("ro.kernel.android.checkjni=1") |
