From cc2b2948a15c8e39445445a08a81d6e5f4732f5d Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Fri, 22 Feb 2019 12:03:39 +0900 Subject: [PATCH] Change to system properties The build configs which are using in configstore 1.2 are changed to system properties. Since configstore 1.2 will be deleted. Bug: 124531214 Test: build & boot Test: adb shell lshal | grep configstore & check configstore 1.2 Change-Id: I997809adc41246c338994d3676e0fd296ccd4ca7 --- BoardConfig.mk | 5 ----- device.mk | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 5f742817..c1220a91 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -150,13 +150,8 @@ SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 # Display TARGET_HAS_WIDE_COLOR_DISPLAY := true TARGET_HAS_HDR_DISPLAY := false -TARGET_USE_COLOR_MANAGEMENT := true TARGET_USES_COLOR_METADATA := true -# Must align with HAL types Dataspace -# The data space of wide color gamut composition preference is Dataspace::DISPLAY_P3 -SF_WCG_COMPOSITION_DATA_SPACE := 143261696 - # Charger Mode BOARD_CHARGER_ENABLE_SUSPEND := true diff --git a/device.mk b/device.mk index 087aac99..d4adad95 100755 --- a/device.mk +++ b/device.mk @@ -695,3 +695,9 @@ endif # default atrace HAL PRODUCT_PACKAGES += \ android.hardware.atrace@1.0-service + +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true + +# Must align with HAL types Dataspace +# The data space of wide color gamut composition preference is Dataspace::DISPLAY_P3 +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696