Add fingerprint gestures on zf6

This commit is contained in:
Pierre-Hugues Husson 2020-08-05 20:38:12 +02:00
parent 4d3d3b1c08
commit d26d561dba
4 changed files with 18 additions and 1 deletions

View File

@ -121,7 +121,9 @@ PRODUCT_COPY_FILES += \
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 \
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

6
files/zf6-goodixfp.kl Normal file
View 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

View File

@ -0,0 +1 @@
key 0x248 ASSIST

View File

@ -178,6 +178,14 @@ changeKeylayout() {
changed=true
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
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
restorecon -R /system/usr/keylayout