adb 命令模拟按键事件 模拟 点击 事件
//可以解锁屏幕
adb shell input keyevent 82
//在屏幕上做划屏操作,前四个数为坐标点,后面是滑动的时间(单位毫秒)
adb shell input swipe 50 250 250 250 500
//在屏幕上点击坐标点x=50 y=250的位置。
adb shell input tap 50 250
//输入字符abc
adb shell input text abc
20.屏幕截图命令:
adb shell screencap -p /sdcard/sc.png
然后将 png 文件导出到电脑:
adb pull /sdcard/sc.png
ref: http://blog.csdn.net/luanpeng825485697/article/details/79004308
https://www.cnblogs.com/liang6206/p/8022480.html