From 830eddbe27a190b4e60d762c89adf011c899dca8 Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Wed, 9 Oct 2019 17:06:01 -0700 Subject: [PATCH] Define ro.sanitize. 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 --- core/main.mk | 3 +++ 1 file changed, 3 insertions(+) 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. 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: #