JakeWharton / adb-event-mirror

Mirror the touch/key/button events of one device onto one or more other devices in real-time
Apache License 2.0
885 stars 43 forks source link

Could not get driver error #19

Open chaitanya-vanapamala opened 4 years ago

chaitanya-vanapamala commented 4 years ago

After trying out the command : adb -s 192.168.43.154:5555 shell getevent | adb-event-mirror.main.kts 58H3Y18831023558

Getting the following error could not get driver version for /dev/input/mice, Not a typewriter The system cannot execute the specified program.

adb-event-error

After trying adb -s 192.168.43.154:5555 shell getevent -p command got following response :


  name:     "sdm845-tavil-snd-card Button Jack"
  events:
    KEY (0001): 0072  0073  00e2  0103  0104  0105
  input props:
    <none>
add device 2: /dev/input/event4
  name:     "sdm845-tavil-snd-card Headset Jack"
  events:
    SW  (0005): 0002  0004  0006  0007  0010  0011  0012  0013
  input props:
    <none>
add device 3: /dev/input/event1
  name:     "gf_input"
  events:
    KEY (0001): 003c  0066  0067  0069  006a  006c  0074  008b
                009e  0131
  input props:
    <none>
add device 4: /dev/input/event0
  name:     "qpnp_pon"
  events:
    KEY (0001): 0072  0074
  input props:
    <none>
add device 5: /dev/input/event3
  name:     "synaptics,s3320"
  events:
    KEY (0001): 003e  009e  0145  0244
    ABS (0003): 002f  : value 0, min 0, max 9, fuzz 0, flat 0, resolution 0
                0030  : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0
                0031  : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0
                0032  : value 0, min 0, max 0, fuzz 0, flat 0, resolution 0
                0035  : value 0, min 0, max 1079, fuzz 0, flat 0, resolution 0
                0036  : value 0, min 0, max 2339, fuzz 0, flat 0, resolution 0
                0039  : value 0, min 0, max 65535, fuzz 0, flat 0, resolution 0
  input props:
    INPUT_PROP_DIRECT
add device 6: /dev/input/event2
  name:     "gpio-keys"
  events:
    KEY (0001): 0072  0073
    SW  (0005): 0000
  input props:
    <none>
could not get driver version for /dev/input/mice, Not a typewriter```

@JakeWharton ,
 Will the program works only on emulators not on physical devices?
JakeWharton commented 4 years ago

I never tested devices, but obviously input devices can have names other than eventN. I will try to get to this at some point.