From 5efefba2bc3a082dfce257c20d64e57e5fc574d7 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 29 Aug 2018 16:34:14 +0200 Subject: [PATCH] Add brightness fix for mipad 4 --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index dd21e6a..6768610 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -87,4 +87,8 @@ if grep -qF 'mkdir /data/.fps 0770 system fingerp' vendor/etc/init/hw/init.mmi.r chown system:9015 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt fi +if getprop ro.vendor.build.fingerprint |grep -q Xiaomi/clover/clover;then + setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) +fi + mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true