adb shell input swipe <start_x> <start_y> <end_x> <end_y> duration_ms>

参考: