phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 661 forks source link

[Motorola One Fusion+] Fingerprint sensor triggers other actions #1839

Open ksdrar opened 3 years ago

ksdrar commented 3 years ago

Fingerprint sensor triggers volume down on tap and element highlight on swipe (up, down, left, right)

ksdrar commented 3 years ago

Output of adb shell getevent

add device 1: /dev/input/event13
  name:     "MotoPopup_HOMEPAGE"
add device 2: /dev/input/event12
  name:     "sm6150-prince-snd-card Button Jack"
add device 3: /dev/input/event11
  name:     "sm6150-prince-snd-card Headset Jack"
add device 4: /dev/input/event10
  name:     "uinput_nav"
add device 5: /dev/input/event9
  name:     "qwerty"
add device 6: /dev/input/event8
  name:     "palm_detect"
add device 7: /dev/input/event7
  name:     "double-tap"
add device 8: /dev/input/event6
  name:     "fts_ts"
add device 9: /dev/input/event5
  name:     "akm09970"
add device 10: /dev/input/event4
  name:     "ABOV Cap Touch bottom_right"
add device 11: /dev/input/event3
  name:     "ABOV Cap Touch bottom_left"
add device 12: /dev/input/event2
  name:     "ABOV Cap Touch top"
add device 13: /dev/input/event0
  name:     "qpnp_pon"
add device 14: /dev/input/event1
  name:     "gpio-keys"

/* Tap */
/dev/input/event10: 0001 0072 00000001
/dev/input/event10: 0000 0000 00000000
/dev/input/event10: 0001 0072 00000000
/dev/input/event10: 0000 0000 00000000
/* Swipe right (looking at screen) */
/dev/input/event10: 0001 0069 00000001
/dev/input/event10: 0000 0000 00000000
/dev/input/event10: 0001 0069 00000000
/dev/input/event10: 0000 0000 00000000
/* Swipe left (looking at screen) */
/dev/input/event10: 0001 006a 00000001
/dev/input/event10: 0000 0000 00000000
/dev/input/event10: 0001 006a 00000000
/dev/input/event10: 0000 0000 00000000
/* Swipe up */
/dev/input/event10: 0001 0067 00000001
/dev/input/event10: 0000 0000 00000000
/dev/input/event10: 0001 0067 00000000
/dev/input/event10: 0000 0000 00000000
/* Swipe down */
/dev/input/event10: 0001 006c 00000001
/dev/input/event10: 0000 0000 00000000
/dev/input/event10: 0001 006c 00000000
/dev/input/event10: 0000 0000 00000000