Disable fingerprint buttons on Mi Mix 2S (cf bug #144)
This commit is contained in:
parent
b01ca6ae48
commit
afff20d8a4
@ -53,6 +53,12 @@ changeKeylayout() {
|
|||||||
chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl
|
chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl
|
||||||
fi
|
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
|
if [ "$changed" == true ];then
|
||||||
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
|
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
|
||||||
restorecon -R /system/usr/keylayout
|
restorecon -R /system/usr/keylayout
|
||||||
|
Loading…
Reference in New Issue
Block a user