菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
99
0

adb

原创
05/13 14:22
阅读数 5886

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

发表评论

0/200
99 点赞
0 评论
收藏
为你推荐 换一批