Android ADB Shell Input - emulate multiple strokes
2 answers
I searched a bit and it seems that the easiest way is not to find the correct commands (you have to emulate a real set of N events moving 2 fingers around the screen to pinch), but you can try this instead: save the gesture (with X fingers) and then play it from adb.
See this question for more details, already answered well in Saurabb Meshram's answer:
Pass I / O command on android phone using adb
EDIT:
you can try to understand what the events mean (completely obscure at first glance) see http://ktnr74.blogspot.pt/2013/06/emulating-touchscreen-interaction-with.html
0
source to share