Disable fingerprint buttons on Mi Mix 2S (cf bug #144)
Change-Id: I7422cccb85c5431d5ef388dcf29825c25b1fe5a0
diff --git a/rw-system.sh b/rw-system.sh
index cf84ea4..3559de6 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -54,6 +54,12 @@
chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl
fi
+ if getprop ro.vendor.build.fingerprint |grep -q Xiaomi/polaris;then
+ cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl
+ chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl
+ changed=true
+ fi
+
if [ "$changed" == true ];then
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
restorecon -R /system/usr/keylayout