From da2e7c893763651841aeefc07cb597a9308b79c2 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Wed, 19 Feb 2020 22:54:17 +0300 Subject: [PATCH 1/4] Fix brightness on Redmi Note 8 Pro --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index db4efb2..1976531 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -209,7 +209,7 @@ fi if getprop ro.vendor.build.fingerprint | grep -q -i \ -e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \ -e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \ - -e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip \ + -e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip -e Redmi/*.begonia\ -e xiaomi/lavender -e xiaomi/olive -e xiaomi/olivelite -e xiaomi/pine; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi From e64d63c5e949fdc03bfb62a97f42d84c19e33b3e Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 07:50:02 +0300 Subject: [PATCH 2/4] Fix begonia regexp --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 1976531..4bfdaa9 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -209,7 +209,7 @@ fi if getprop ro.vendor.build.fingerprint | grep -q -i \ -e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \ -e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \ - -e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip -e Redmi/*.begonia\ + -e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip -e Redmi/*/begonia\ -e xiaomi/lavender -e xiaomi/olive -e xiaomi/olivelite -e xiaomi/pine; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi From f1757adf2e07a45957d1863fa6945e5494d9f5fb Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 21:21:45 +0300 Subject: [PATCH 3/4] Simplify begonia regexp --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 4bfdaa9..1d61b1d 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -209,7 +209,7 @@ fi if getprop ro.vendor.build.fingerprint | grep -q -i \ -e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \ -e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \ - -e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip -e Redmi/*/begonia\ + -e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip -e Redmi/begonia\ -e xiaomi/lavender -e xiaomi/olive -e xiaomi/olivelite -e xiaomi/pine; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi From 98b219ba1b3b3cd3d515b8f0d8d6d8ffb62e0fc1 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 21:22:39 +0300 Subject: [PATCH 4/4] Fix fingerprint behavior --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 1d61b1d..b9855fa 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -84,7 +84,7 @@ changeKeylayout() { if getprop ro.vendor.build.fingerprint | grep -iq \ -e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper \ -e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \ - -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \ + -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl -e Redmi/begonia\ -e xiaomi/nitrogen -e xiaomi/daisy -e xiaomi/sakura \ -e xiaomi/whyred -e xiaomi/tulip -e xiaomi/onc; then if [ ! -f /mnt/phh/keylayout/uinput-goodix.kl ]; then