From 71f0000b6a9586307233c0c4ba83eb3181db0e13 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 10 May 2022 11:41:58 -0400 Subject: [PATCH] For Redmi Note 10 5G, brightness range is 1-4095, even though /sys/.../brightness range is 1-2047 (/=2 done in lights HAL). So we need to manually set the range --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 40502f1..504fa43 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -1081,3 +1081,7 @@ mount /system/phh/empty /vendor/bin/install-recovery.sh if getprop ro.vendor.radio.default_network |grep -qE '[0-9]';then setprop ro.telephony.default_network $(getprop ro.vendor.radio.default_network) fi + +if getprop ro.vendor.build.fingerprint |grep -iq redmi/camellia;then + setprop persist.sys.qcom-brightness 4095 +fi