Add fingerprint gestures on zf6
This commit is contained in:
parent
4d3d3b1c08
commit
d26d561dba
4
base.mk
4
base.mk
@ -121,7 +121,9 @@ PRODUCT_COPY_FILES += \
|
|||||||
device/phh/treble/files/daisy-buttonJack.kl:system/phh/daisy-buttonJack.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-fpc.kl:system/phh/daisy-uinput-fpc.kl \
|
||||||
device/phh/treble/files/daisy-uinput-goodix.kl:system/phh/daisy-uinput-goodix.kl \
|
device/phh/treble/files/daisy-uinput-goodix.kl:system/phh/daisy-uinput-goodix.kl \
|
||||||
device/phh/treble/files/nubia-nubia_synaptics_dsx.kl:system/phh/nubia-nubia_synaptics_dsx.kl
|
device/phh/treble/files/nubia-nubia_synaptics_dsx.kl:system/phh/nubia-nubia_synaptics_dsx.kl \
|
||||||
|
device/phh/treble/files/zf6-goodixfp.kl:system/phh/zf6-goodixfp.kl \
|
||||||
|
device/phh/treble/files/zf6-googlekey_input.kl:system/phh/zf6-googlekey_input.kl \
|
||||||
|
|
||||||
SELINUX_IGNORE_NEVERALLOWS := true
|
SELINUX_IGNORE_NEVERALLOWS := true
|
||||||
|
|
||||||
|
6
files/zf6-goodixfp.kl
Normal file
6
files/zf6-goodixfp.kl
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
key 0x6c SYSTEM_NAVIGATION_DOWN
|
||||||
|
key 0x67 SYSTEM_NAVIGATION_UP
|
||||||
|
key 0x69 SYSTEM_NAVIGATION_LEFT
|
||||||
|
key 0x6a SYSTEM_NAVIGATION_RIGHT
|
||||||
|
|
||||||
|
|
1
files/zf6-googlekey_input.kl
Normal file
1
files/zf6-googlekey_input.kl
Normal file
@ -0,0 +1 @@
|
|||||||
|
key 0x248 ASSIST
|
@ -178,6 +178,14 @@ changeKeylayout() {
|
|||||||
changed=true
|
changed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.asus.build.fp |grep -q ASUS_I01WD;then
|
||||||
|
cp /system/phh/zf6-goodixfp.kl /mnt/phh/keylayout/goodixfp.kl
|
||||||
|
cp /system/phh/zf6-googlekey_input.kl /mnt/phh/keylayout/googlekey_input.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/goodixfp.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/googlekey_input.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