I am trying to send touch events to a device using adb shell command, so that I can do some basic automation for UI tests. I have followed the discussion in some previous threads regarding this. 
I confirmed about getting the events and using sendevent, to send out 6 events for each touch ( xcoord, ycoord, 2 for press, 2 for release) and it was easy to use this information with sendevent, but the getevent command for the touchscreen device seems to generate far too many events.
Has somebody managed to send touch event from adb to a device? Could you please share the solution.
I am working on recording the touch events on phone. After that I wish to send the same event back to the device as part of UI testing.
Please help
 
     
     
     
     
     
    