From e4185d0cb0887bb3b24e532a88573a172802777c 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 f04944b..bfa049a 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -88,4 +88,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