首页 > 数据库技术 > 详细

adb常用命令

时间:2019-09-26 15:08:44      阅读:104      评论:0      收藏:0      [点我收藏+]

adb devices   查看手机是否连接到电脑

adb push D:/1.png /sdcard/1.png   将电脑文件传输到手机

adb pull /sdcard/1.png 2.png    将手机文件传输到电脑

adb pull /sdcard/1.png  将手机文件传输到电脑

adb install xxx.apk  在手机上下载apk

adb uninstall xxx.apk 卸载手机上的apk

 触屏

adb shell input tap 500 500

滑动

adb shell input swipe 900 500 100 500 

长按200ms

adb shell input swipe 500 500 501 501 200

截图

adb shell screencap -p /sdcard/screen.png

录屏

adb shell screenrecord sdcard/record.mp4

ctrl+c 结束录制

启动相机

adb shell am start -n com.android.camera/.Camera       (无法启动)

打开网页

默认浏览器

adb shell am start -a android.intent.action.VIEW-d http://baidu.com

 

adb常用命令

原文:https://www.cnblogs.com/ajie-linda/p/11590539.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!