From ca5744198ef5f793d292e09bb3a553af51a11250 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Wed, 6 Sep 2023 10:52:43 +0530 Subject: [PATCH] sm8450-common: overlay: Provide MIUI color mode options Change-Id: I7faa409bf7069108f5bed64488b2a7c5566cd921 --- .../FrameworksResXiaomi/res/values/config.xml | 10 ++++++++ .../SettingsResXiaomi/res/values/config.xml | 24 +++++++++++++++++++ properties/vendor.prop | 1 + 3 files changed, 35 insertions(+) diff --git a/overlay/FrameworksResXiaomi/res/values/config.xml b/overlay/FrameworksResXiaomi/res/values/config.xml index b721ea5..a838d9b 100644 --- a/overlay/FrameworksResXiaomi/res/values/config.xml +++ b/overlay/FrameworksResXiaomi/res/values/config.xml @@ -4,6 +4,16 @@ SPDX-License-Identifier: Apache-2.0 --> + + + 258 + 256 + 257 + 269 + 268 + 267 + + 580 diff --git a/overlay/SettingsResXiaomi/res/values/config.xml b/overlay/SettingsResXiaomi/res/values/config.xml index 065e6be..10e3593 100644 --- a/overlay/SettingsResXiaomi/res/values/config.xml +++ b/overlay/SettingsResXiaomi/res/values/config.xml @@ -26,6 +26,30 @@ true + + + Vivid + Saturated + Standard + Original + P3 + sRGB + + + + + 258 + 256 + 257 + 269 + 268 + 267 + + 254 diff --git a/properties/vendor.prop b/properties/vendor.prop index 3565bc2..ddf15fa 100644 --- a/properties/vendor.prop +++ b/properties/vendor.prop @@ -149,6 +149,7 @@ debug.sf.treat_170m_as_sRGB=1 debug.sf.use_phase_offsets_as_durations=1 persist.sys.sf.color_mode=0 persist.sys.sf.color_saturation=1.0 +persist.sys.sf.native_mode=258 ro.gfx.driver.1=com.qualcomm.qti.gpudrivers.taro.api31 ro.hardware.egl=adreno ro.hardware.vulkan=adreno