cdfinger_input在adb shell getevent中代表什么类型的事件

时间:2018-11-02 11:19:44

标签: android linux adb

我正在Mac OS Mojave上使用android oreo。
我试图在应用程序中获取输入文本,然后遇到“ cdfinger_input”,它似乎与我在手机上键入的文本有关。我不知道我是否正确,因为我无法在互联网上找到有关它的任何信息。

这是我使用终端及其输出在adb shell中键入的内容。

ASUS_X00T_3:/ $ getevent --help                                                                                                  
getevent: invalid option --
Usage: getevent [-t] [-n] [-s switchmask] [-S] [-v [mask]] [-d] [-p] [-i] [-l] [-q] [-c count] [-r] [device]
    -t: show time stamps
    -n: don't print newlines
    -s: print switch states for given bits
    -S: print all switch states
    -v: verbosity mask (errs=1, dev=2, name=4, info=8, vers=16, pos. events=32, props=64)
    -d: show HID descriptor, if available
    -p: show possible events (errs, dev, name, pos. events)
    -i: show all device info and possible events
    -l: label event types and names in plain text
    -q: quiet (clear verbosity mask)
    -c: print given number of events then exit
    -r: print rate events are received
1|ASUS_X00T_3:/ $ getevent -S
add device 1: /dev/input/event9
  name:     "sdm660-snd-card Button Jack"
add device 2: /dev/input/event8
  name:     "sdm660-snd-card Headset Jack"
add device 3: /dev/input/event4
  name:     "SX9310 Cap Touch"
could not get driver version for /dev/input/mice, Not a typewriter
add device 4: /dev/input/event5
  name:     "stk3x1x-light"
add device 5: /dev/input/event0
  name:     "qpnp_pon"
add device 6: /dev/input/event6
  name:     "stk3x1x-proximity"
add device 7: /dev/input/event3
  name:     "qwerty"
could not get driver version for /dev/input/mouse0, Not a typewriter
add device 8: /dev/input/event2
  name:     "cdfinger_input"
add device 9: /dev/input/event7
  name:     "gpio-keys"
add device 10: /dev/input/event1
  name:     "synaptics_dsx"
6400
6400
6400
6400
6400
6400
6400
6400
6400
6400

ASUS_X00T_3:/ $ getevent -il /dev/input/event2
add device 1: /dev/input/event2


bus:      0000
  vendor    0000
  product   0000
  version   0000
  name:     "cdfinger_input"
  location: ""
  id:       ""
  version:  1.0.1
  events:
    KEY (0001): KEY_HOME              KEY_POWER             KEY_MENU              KEY_BACK             
                KEY_CAMERA            0258                  0259                  025a                 
                025b                  025c                  025d                  025e                 
  input props:
    <none>

我只想了解“ cdfinger_input”代表的事件类型。

1 个答案:

答案 0 :(得分:1)

cdfinger_input只是一个设备名称。它不代表任何东西。它只是设备制造商任意选择的字符串。如果我猜到了,我会说所涉及的设备是指纹传感器。

但是您不必猜测,而应该使用getevent -il /dev/input/event2命令来查看设备支持的所有事件的实际列表。