Merge pull request #214 from eremitein/merlin

tweaks for Xiaomi Redmi Note 9 'merlin'
This commit is contained in:
Pierre-Hugues HUSSON 2020-10-17 23:12:15 +02:00 committed by GitHub
commit 0bf2de0b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ changeKeylayout() {
-e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \ -e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \
-e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl -e Redmi/begonia\ -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl -e Redmi/begonia\
-e xiaomi/nitrogen -e xiaomi/sakura -e xiaomi/andromeda \ -e xiaomi/nitrogen -e xiaomi/sakura -e xiaomi/andromeda \
-e xiaomi/whyred -e xiaomi/tulip -e xiaomi/onc \ -e xiaomi/whyred -e xiaomi/tulip -e xiaomi/onc -e Redmi/merlin \
-e redmi/curtana -e redmi/picasso -e redmi/galahad; then -e redmi/curtana -e redmi/picasso -e redmi/galahad; then
if [ ! -f /mnt/phh/keylayout/uinput-goodix.kl ]; then if [ ! -f /mnt/phh/keylayout/uinput-goodix.kl ]; then
cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl
@ -299,12 +299,17 @@ fi
if getprop ro.vendor.build.fingerprint | grep -q -i \ if getprop ro.vendor.build.fingerprint | grep -q -i \
-e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \ -e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \
-e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \ -e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina -e Redmi/merlin \
-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 -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)" setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)"
fi 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 #Realme 6
if getprop ro.vendor.product.device |grep -iq -e RMX2001;then if getprop ro.vendor.product.device |grep -iq -e RMX2001;then
setprop persist.sys.phh.fingerprint.nocleanup true setprop persist.sys.phh.fingerprint.nocleanup true