Open ahetawal-p opened 4 years ago
Same here, can confirm
I was able to make this work on API 25 so I'm assuming something broke for recent Android versions.
I can confirm it doesn't work on API 30.
Same for me with API 31
Pull requests are welcomed.
@JakeWharton I think I have found the issue. The event type could be different on different emulators. For example, in my case, the /dev/input/event3
(virtio_input_multi_touch_1) from host emulator was mapped to /dev/input/event10
(virtio_input_multi_touch_8) to mirror emulator using the event type alone.
My solution is to get the host and mirror emulator's serials in the script and build a mapping. So that each host event can be mapped to the correct mirror event. meaning virtio_input_multi_touch_1 to virtio_input_multi_touch_1.
adb -s emulator-5554 shell getevent | ./adb-event-mirror.main.kts emulator-5554 emulator-5556
I can open a PR if you share same opinion?
Hmm if you're forced to pass the serial ID of both devices to the command I'm wondering if we should just run the getevent
command for you. Maybe if stdin
is empty we run it automatically?
Anyway I can address that separately. The map sounds good.
@JakeWharton Please have a look https://github.com/JakeWharton/adb-event-mirror/pull/23
Following the instructions
Using Pixel 3a emulators on Api 29, I dont see any events being sent ? Emulator details:
Anything I am missing here ?