From 6593b1083643756bff274a39e4e13952bda476b1 Mon Sep 17 00:00:00 2001 From: suwakowww <495599914@qq.com> Date: Wed, 3 Oct 2018 23:23:43 +0800 Subject: [PATCH] add fp key patch for wayne/jasmine wayme and jasmine has two types fingerprint (fpc and goodix) --- rw-system.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 936c6b3..7910088 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -54,7 +54,7 @@ changeKeylayout() { chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl fi - if getprop ro.vendor.build.fingerprint |grep -iq -e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper;then + if getprop ro.vendor.build.fingerprint |grep -iq -e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper -e xiaomi/wayne -e xiaomi/jasmine;then cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl changed=true @@ -66,6 +66,12 @@ changeKeylayout() { changed=true fi + if getprop ro.vendor.build.fingerprint | grep -iq -e xiaomi/wayne -e xiaomi/jasmine;then + cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl + chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl + changed=true + fi + if [ "$changed" == true ];then mount -o bind /mnt/phh/keylayout /system/usr/keylayout restorecon -R /system/usr/keylayout