From dfb3937ce48009676f2ef62278393c934079c60b Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 22 Jun 2020 20:15:55 +0900 Subject: [PATCH] Some properties are set as optional Some properties that are designed to provide a safe default value are explicitly set as optional using the 'a ?= b' syntax. Bug: 117892318 Bug: 158735147 Test: m Change-Id: Ie6a50ab7e0bcb210e282bc18e8c1daf412903f90 --- target/product/aosp_product.mk | 6 +++--- target/product/full_base.mk | 4 ++-- target/product/full_base_telephony.mk | 4 ++-- target/product/handheld_system.mk | 6 +++--- target/product/media_system.mk | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/target/product/aosp_product.mk b/target/product/aosp_product.mk index bf3d9939b6..e396ad11ff 100644 --- a/target/product/aosp_product.mk +++ b/target/product/aosp_product.mk @@ -23,9 +23,9 @@ $(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk) # Additional settings used in all AOSP builds PRODUCT_PRODUCT_PROPERTIES += \ - ro.config.ringtone=Ring_Synth_04.ogg \ - ro.config.notification_sound=pixiedust.ogg \ - ro.com.android.dataroaming=true \ + ro.config.ringtone?=Ring_Synth_04.ogg \ + ro.config.notification_sound?=pixiedust.ogg \ + ro.com.android.dataroaming?=true \ # More AOSP packages PRODUCT_PACKAGES += \ diff --git a/target/product/full_base.mk b/target/product/full_base.mk index d31e574a72..a8e1e913f7 100644 --- a/target/product/full_base.mk +++ b/target/product/full_base.mk @@ -44,8 +44,8 @@ PRODUCT_PACKAGES += \ # Additional settings used in all AOSP builds PRODUCT_VENDOR_PROPERTIES := \ - ro.config.ringtone=Ring_Synth_04.ogg \ - ro.config.notification_sound=pixiedust.ogg + ro.config.ringtone?=Ring_Synth_04.ogg \ + ro.config.notification_sound?=pixiedust.ogg # Put en_US first in the list, so make it default. PRODUCT_LOCALES := en_US diff --git a/target/product/full_base_telephony.mk b/target/product/full_base_telephony.mk index 5e18c058c7..d8a54cd7f3 100644 --- a/target/product/full_base_telephony.mk +++ b/target/product/full_base_telephony.mk @@ -20,8 +20,8 @@ # entirely appropriate to inherit from for on-device configurations. PRODUCT_VENDOR_PROPERTIES := \ - keyguard.no_require_sim=true \ - ro.com.android.dataroaming=true + keyguard.no_require_sim?=true \ + ro.com.android.dataroaming?=true PRODUCT_COPY_FILES := \ device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml \ diff --git a/target/product/handheld_system.mk b/target/product/handheld_system.mk index f5ae91c580..c2608c412a 100644 --- a/target/product/handheld_system.mk +++ b/target/product/handheld_system.mk @@ -83,6 +83,6 @@ PRODUCT_COPY_FILES += \ frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf PRODUCT_VENDOR_PROPERTIES += \ - ro.carrier=unknown \ - ro.config.notification_sound=OnTheHunt.ogg \ - ro.config.alarm_alert=Alarm_Classic.ogg + ro.carrier?=unknown \ + ro.config.notification_sound?=OnTheHunt.ogg \ + ro.config.alarm_alert?=Alarm_Classic.ogg diff --git a/target/product/media_system.mk b/target/product/media_system.mk index 3e5ab1629b..a76125ba14 100644 --- a/target/product/media_system.mk +++ b/target/product/media_system.mk @@ -75,7 +75,7 @@ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ # On userdebug builds, collect more tombstones by default. ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) PRODUCT_VENDOR_PROPERTIES += \ - tombstoned.max_tombstone_count=50 + tombstoned.max_tombstone_count?=50 endif PRODUCT_VENDOR_PROPERTIES += \