I have a HTC 10 which is running CM13 I am trying to send touch events to it by means of ADB and Send Event After sending this:
adb shell
sendevent /dev/input/event6 3 57 0
sendevent /dev/input/event6 3 53 300
sendevent /dev/input/event6 3 54 400
sendevent /dev/input/event6 3 48 5
sendevent /dev/input/event6 3 58 50
sendevent /dev/input/event6 0 2 0
sendevent /dev/input/event6 0 0 0
I get a click on the phone, with showtouches on, I can see the touch has begun, but that the touch is still active on the phone.
Based on my reading here and here as well as other places, it seems all I should have to do is:
sendevent /dev/input/event6 3 57 -1
sendevent /dev/input/event6 0 2 0
sendevent /dev/input/event6 0 0 0
or maybe even just
sendevent /dev/input/event6 3 57 -1
sendevent /dev/input/event6 0 0 0
however, neither of these commands results in the touch being ended on the phone.
I tried putting all of this on a shell script on the phone itself, and running the script from the adb shell, however that resulted in the same thing. The beginning of the touch, and not the end.