summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Evgenii Stepanov <eugenis@google.com> 2019-10-09 17:06:01 -0700
committer Evgenii Stepanov <eugenis@google.com> 2020-08-06 23:29:53 +0000
commit830eddbe27a190b4e60d762c89adf011c899dca8 (patch)
tree67aa1dbf6b2526b041401e281fec8e8fbccae4e6
parente9bceb662b595c5c841c3cb24c06a7fa308b3a70 (diff)
Define ro.sanitize.<name> properties in SANITIZE_TARGET builds.
This will let us quickly check the system image build type, and modify *.rc behavior based on that. Bug: 142430632 Test: adb shell getprop ro.sanitize.hwaddress in hwasan build Change-Id: Id1738ebc94a7c29ea9902a063f5d8dd6deb48f1b
-rw-r--r--core/main.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk
index 4578d90305..ab9962adbb 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -213,6 +213,9 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
ADDITIONAL_SYSTEM_PROPERTIES += persist.debug.dalvik.vm.core_platform_api_policy=just-warn
endif
+# Define ro.sanitize.<name> properties for all global sanitizers.
+ADDITIONAL_SYSTEM_PROPERTIES += $(foreach s,$(SANITIZE_TARGET),ro.sanitize.$(s)=true)
+
# Sets the default value of ro.postinstall.fstab.prefix to /system.
# Device board config should override the value to /product when needed by:
#