From afff20d8a447ad45ca2359a763182ad1f4a9687c Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 3 Sep 2018 15:06:54 +0200 Subject: [PATCH] Disable fingerprint buttons on Mi Mix 2S (cf bug #144) --- rw-system.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 05deecd..d085d49 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -53,6 +53,12 @@ changeKeylayout() { 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