Add google fingerprint gestures kl
This commit is contained in:
parent
b914331829
commit
3cf77c937c
1
base.mk
1
base.mk
@ -111,6 +111,7 @@ PRODUCT_COPY_FILES += \
|
|||||||
device/phh/treble/files/nokia-soc_gpio_keys.kl:system/phh/nokia-soc_gpio_keys.kl \
|
device/phh/treble/files/nokia-soc_gpio_keys.kl:system/phh/nokia-soc_gpio_keys.kl \
|
||||||
device/phh/treble/files/lenovo-synaptics_dsx.kl:system/phh/lenovo-synaptics_dsx.kl \
|
device/phh/treble/files/lenovo-synaptics_dsx.kl:system/phh/lenovo-synaptics_dsx.kl \
|
||||||
device/phh/treble/files/oppo-touchpanel.kl:system/phh/oppo-touchpanel.kl \
|
device/phh/treble/files/oppo-touchpanel.kl:system/phh/oppo-touchpanel.kl \
|
||||||
|
device/phh/treble/files/google-uinput-fpc.kl:system/phh/google-uinput-fpc.kl \
|
||||||
|
|
||||||
SELINUX_IGNORE_NEVERALLOWS := true
|
SELINUX_IGNORE_NEVERALLOWS := true
|
||||||
|
|
||||||
|
4
files/google-uinput-fpc.kl
Normal file
4
files/google-uinput-fpc.kl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
key 106 SYSTEM_NAVIGATION_LEFT
|
||||||
|
key 108 SYSTEM_NAVIGATION_DOWN
|
||||||
|
key 103 SYSTEM_NAVIGATION_UP
|
||||||
|
key 105 SYSTEM_NAVIGATION_RIGHT
|
@ -135,6 +135,12 @@ changeKeylayout() {
|
|||||||
changed=true
|
changed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint |grep -q -e google/;then
|
||||||
|
cp /system/phh/google-uinput-fpc.kl /mnt/phh/keylayout/uinput-fpc.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/uinput-fpc.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