aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Yo Chiang <yochiang@google.com>2022-06-10 15:28:31 +0800
committerYi-Yo Chiang <yochiang@google.com>2022-06-10 15:28:31 +0800
commit70b69de18aae2c7c3a60bfff30f6867569d549a6 (patch)
treea3d77632021c5052c23158f6c7fe1b49c2b2a11c
parent10714789a95f7eab6313d7e6ef466cf1b342abfe (diff)
downloadbuild-70b69de18aae2c7c3a60bfff30f6867569d549a6.tar.gz
Add ro.force.debuggable=0 to ADDITIONAL_SYSTEM_PROPERTIES
This should only be set to '1' by flashing debug boot image, so default to '0' in system/build.prop. Bug: 223517900 Test: Boot with and without debug boot image and check value of property Change-Id: I0e0df7d86a31fd771248433513483e8ad600b5ed
-rw-r--r--core/main.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk
index 2cfea453cf..cdbc3ef755 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -460,6 +460,9 @@ BUILD_WITHOUT_PV := true
ADDITIONAL_SYSTEM_PROPERTIES += net.bt.name=Android
+# This property is set by flashing debug boot image, so default to false.
+ADDITIONAL_SYSTEM_PROPERTIES += ro.force.debuggable=0
+
# ------------------------------------------------------------
# Define a function that, given a list of module tags, returns
# non-empty if that module should be installed in /system.