From 5d211d28e3ab606de955faf5d1a9ce35a2d6bf3e Mon Sep 17 00:00:00 2001 From: Victor Bo Date: Sat, 17 Oct 2020 06:58:04 -0400 Subject: [PATCH 1/4] tweaks for Xiaomi Redmi Note 9 'merlin' audiojack, brightness, fp touches (thanks Akitake for reports) --- rw-system.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 14c830f65..e61e815b6 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -367,10 +367,15 @@ if getprop ro.vendor.build.fingerprint | grep -q -i \ -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/olive -e xiaomi/olivelite -e xiaomi/pine \ - -e Redmi/lancelot -e Redmi/galahad; then + -e Redmi/lancelot -e Redmi/galahad -e Redmi/merlin; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi +#Xiaomi Redmi Note 9 +if getprop ro.vendor.build.fingerprint |grep -qi -e Redmi/merlin; then + setprop persist.sys.overlay.devinputjack true +fi + #Realme 6 if getprop ro.vendor.product.device |grep -iq -e RMX2001 -e RMX2151 -e RMX2111 -e RMX2111L1;then setprop persist.sys.phh.fingerprint.nocleanup true From b09944ffe0fd5aef38a65921a946c296cd1ff44a Mon Sep 17 00:00:00 2001 From: Victor Bo Date: Wed, 21 Oct 2020 13:58:06 -0400 Subject: [PATCH 2/4] tweaks for Xiaomi Redmi 9 (Prime) 'lancelot' from https://forum.xda-developers.com/showpost.php?p=83640257&postcount=365 --- rw-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index e61e815b6..0f05d30ec 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -371,8 +371,8 @@ if getprop ro.vendor.build.fingerprint | grep -q -i \ setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi -#Xiaomi Redmi Note 9 -if getprop ro.vendor.build.fingerprint |grep -qi -e Redmi/merlin; then +#Xiaomi Redmi Note 9, Redmi 9 (Prime) +if getprop ro.vendor.build.fingerprint |grep -qi -e Redmi/merlin -e Redmi/lancelot; then setprop persist.sys.overlay.devinputjack true fi From b9ea1f58ab36e92eec6c344a21ba933777a567a2 Mon Sep 17 00:00:00 2001 From: Victor Bo Date: Sun, 13 Dec 2020 04:55:40 -0500 Subject: [PATCH 3/4] tweaks for Xiaomi Redmi 'angelican' and 'dandelion' --- rw-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 0f05d30ec..211171404 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -367,12 +367,12 @@ if getprop ro.vendor.build.fingerprint | grep -q -i \ -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/olive -e xiaomi/olivelite -e xiaomi/pine \ - -e Redmi/lancelot -e Redmi/galahad -e Redmi/merlin; then + -e Redmi/lancelot -e Redmi/galahad -e Redmi/merlin -e Redmi/angelican -e Redmi/dandelion; then setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi #Xiaomi Redmi Note 9, Redmi 9 (Prime) -if getprop ro.vendor.build.fingerprint |grep -qi -e Redmi/merlin -e Redmi/lancelot; then +if getprop ro.vendor.build.fingerprint |grep -qi -e Redmi/merlin -e Redmi/lancelot -e Redmi/angelican -e Redmi/dandelion; then setprop persist.sys.overlay.devinputjack true fi From b3587833fd30c09992268eceaa30facf523a062b Mon Sep 17 00:00:00 2001 From: Victor Bo Date: Thu, 24 Dec 2020 07:14:51 -0500 Subject: [PATCH 4/4] tweaks for Xiaomi Redmi Note 9 Pro 'joyeuse' --- rw-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 211171404..4dc2cf56b 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -404,7 +404,7 @@ if getprop ro.vendor.build.fingerprint | grep -iq \ -e motorola/hannah -e motorola/james -e motorola/pettyl -e xiaomi/cepheus \ -e xiaomi/grus -e xiaomi/cereus -e xiaomi/cactus -e xiaomi/raphael -e xiaomi/davinci \ -e xiaomi/ginkgo -e xiaomi/laurel_sprout -e xiaomi/andromeda \ - -e redmi/curtana -e redmi/picasso \ + -e redmi/curtana -e redmi/joyeuse -e redmi/picasso \ -e bq/Aquaris_M10 ; then mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx @@ -883,7 +883,7 @@ if getprop ro.vendor.build.fingerprint |grep -iq xiaomi/cepheus;then setprop ro.netflix.bsp_rev Q855-16947-1 fi -if getprop ro.vendor.build.fingerprint |grep -qi redmi/curtana;then +if getprop ro.vendor.build.fingerprint |grep -qi -e redmi/curtana -e redmi/joyeuse; then setprop ro.netflix.bsp_rev Q6250-19132-1 fi