From a1f4707dec1fd175ca31bca1f258f84cf8e1f3be Mon Sep 17 00:00:00 2001 From: Asureus Date: Sun, 7 Oct 2018 18:14:58 +0800 Subject: [PATCH] Fix mixed FPC and Goodix sensors in Xiaomi Devices --- rw-system.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 3565413..f19e29f 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -57,6 +57,8 @@ changeKeylayout() { 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 + cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl + chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl changed=true fi @@ -66,12 +68,6 @@ 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