From a67704f357264e7b924877f70ca377c0cdc4a965 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Wed, 19 Feb 2020 22:46:08 +0300 Subject: [PATCH 1/5] 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 dfed707..a27b0a2 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -190,7 +190,7 @@ 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/lavender -e xiaomi/olivelite -e xiaomi/pine; then + -e xiaomi/lavender -e xiaomi/olivelite -e xiaomi/pine -e Redmi/*.begonia; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi From c832c77d143b981024f1a4f0d79981e9c0fb53d7 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 07:52:04 +0300 Subject: [PATCH 2/5] Fix regexp --- rw-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index a27b0a2..c344ed7 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -40,7 +40,7 @@ fixSPL() { sed -i \ -e 's/ro.build.version.release/ro.keymaster.xxx.release/g' \ -e 's/ro.build.version.security_patch/ro.keymaster.xxx.security_patch/g' \ - -e 's/ro.product.model/ro.keymaster.mod/g' \ + -e 's/ro.product.model/ro.keymaster.mod/g' \b "/mnt/phh/$b" chcon "$ctxt" "/mnt/phh/$b" mount -o bind "/mnt/phh/$b" "$f" @@ -190,7 +190,7 @@ 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/lavender -e xiaomi/olivelite -e xiaomi/pine -e Redmi/*.begonia; then + -e xiaomi/lavender -e xiaomi/olivelite -e xiaomi/pine -e Redmi/*/begonia; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi From 0e1cf0877a578b605615fc290ed8768a27bb9c18 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 21:03:26 +0300 Subject: [PATCH 3/5] * rw-system.sh: 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 c344ed7..5591209 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -190,7 +190,7 @@ 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/lavender -e xiaomi/olivelite -e xiaomi/pine -e Redmi/*/begonia; then + -e xiaomi/lavender -e xiaomi/olivelite -e xiaomi/pine -e Redmi/begonia; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi From d3b3d2071684633b897ea5b73a5cc024e6f7aa22 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 21:06:58 +0300 Subject: [PATCH 4/5] Fix begonia fingerprint sensor behavior --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 5591209..2670417 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -70,7 +70,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 From f29508b21c9c74956ad6ecb5a3faa241f0ff96a2 Mon Sep 17 00:00:00 2001 From: jumper047 Date: Thu, 20 Feb 2020 21:17:20 +0300 Subject: [PATCH 5/5] Fix typo --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 2670417..cb68841 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -40,7 +40,7 @@ fixSPL() { sed -i \ -e 's/ro.build.version.release/ro.keymaster.xxx.release/g' \ -e 's/ro.build.version.security_patch/ro.keymaster.xxx.security_patch/g' \ - -e 's/ro.product.model/ro.keymaster.mod/g' \b + -e 's/ro.product.model/ro.keymaster.mod/g' \ "/mnt/phh/$b" chcon "$ctxt" "/mnt/phh/$b" mount -o bind "/mnt/phh/$b" "$f"