通过adb发送长按时间(注意仅支持4.4以上的系统)
长按某一像素点:
adb shell input touchscreen swipe 170 187 170 187 2000
以上命令中2000表示长按的时长为2000毫秒
长按某个键:
adb shell input keyevent --longpress KEYCODE_L
参考地址:
http://stackoverflow.com/questions/11142843/how-can-i-use-adb-to-send-a-longpress-key-event
博客里大都是转载的内容,其目的主要用户知识的组织和管理。

浙公网安备 33010602011771号