From eb3ade924ba805b6ec44252fb529d2dbeca70b3b 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: If2eb99dee93f0652cada5cb2e02fda963d00a7eb --- core/main.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/main.mk b/core/main.mk index e9d4390c99..5930abebde 100644 --- a/core/main.mk +++ b/core/main.mk @@ -220,6 +220,9 @@ ifneq ($(TARGET_BUILD_VARIANT),user) ADDITIONAL_BUILD_PROPERTIES += persist.debug.dalvik.vm.core_platform_api_policy=just-warn endif +# Define ro.sanitize. properties for all global sanitizers. +ADDITIONAL_BUILD_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: #