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: If2eb99dee93f0652cada5cb2e02fda963d00a7eb
This commit is contained in:
Evgenii Stepanov
2019-10-09 17:06:01 -07:00
parent 2ce54fa76a
commit eb3ade924b

View File

@@ -220,6 +220,9 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
ADDITIONAL_BUILD_PROPERTIES += persist.debug.dalvik.vm.core_platform_api_policy=just-warn ADDITIONAL_BUILD_PROPERTIES += persist.debug.dalvik.vm.core_platform_api_policy=just-warn
endif endif
# Define ro.sanitize.<name> 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. # Sets the default value of ro.postinstall.fstab.prefix to /system.
# Device board config should override the value to /product when needed by: # Device board config should override the value to /product when needed by:
# #