Fix mixed FPC and Goodix sensors in Xiaomi Devices
Change-Id: Ie619aa47f62d224004738dec14ef4e16b4e4c238
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 @@
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 @@
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