Disable fingerprint buttons on Mi Mix 2S (cf bug #144)

This commit is contained in:
Pierre-Hugues Husson 2018-09-03 15:06:54 +02:00
parent 7afea6fe95
commit f53a56ee1d
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,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