Add motorola fingerprint navigation keymap for moto one action
This commit is contained in:
parent
0359b91442
commit
ff835cbd53
1
base.mk
1
base.mk
@ -116,6 +116,7 @@ PRODUCT_COPY_FILES += \
|
||||
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/google-uinput-fpc.kl:system/phh/google-uinput-fpc.kl \
|
||||
device/phh/treble/files/moto-uinput-egis.kl:system/phh/moto-uinput-egis.kl \
|
||||
device/phh/treble/files/daisy-buttonJack.kl:system/phh/daisy-buttonJack.kl \
|
||||
device/phh/treble/files/daisy-uinput-fpc.kl:system/phh/daisy-uinput-fpc.kl \
|
||||
device/phh/treble/files/daisy-uinput-goodix.kl:system/phh/daisy-uinput-goodix.kl
|
||||
|
14
files/moto-uinput-egis.kl
Normal file
14
files/moto-uinput-egis.kl
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# ETS320 Touch sensor driver
|
||||
#
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License Version 2
|
||||
# as published by the Free Software Foundation.
|
||||
#
|
||||
|
||||
# ets320 "finger present"
|
||||
key 618 SYSTEM_NAVIGATION_DOWN
|
||||
key 619 SYSTEM_NAVIGATION_UP
|
||||
key 620 SYSTEM_NAVIGATION_LEFT
|
||||
key 621 SYSTEM_NAVIGATION_RIGHT
|
@ -161,6 +161,12 @@ changeKeylayout() {
|
||||
changed=true
|
||||
fi
|
||||
|
||||
if getprop ro.product.vendor.manufacturer |grep -q -e motorola;then
|
||||
cp /system/phh/moto-uinput-egis.kl /mnt/phh/keylayout/uinput-egis.kl
|
||||
chmod 0644 /mnt/phh/keylayout/uinput-egis.kl
|
||||
changed=true
|
||||
fi
|
||||
|
||||
if [ "$changed" = true ]; then
|
||||
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
|
||||
restorecon -R /system/usr/keylayout
|
||||
|
Loading…
Reference in New Issue
Block a user