通过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

posted @ 2015-05-25 16:03  远洪  阅读(1746)  评论(0)    收藏  举报