详见: https://www.cnblogs.com/mliangchen/p/5114149.html
详见:https://www.cnblogs.com/bravesnail/articles/5850335.html
查看设备
adb devices
复制命令
复制文件到安卓手机
adb push D:/1.png /sdcard/1.png
复制手机文件到电脑当前目录下
adb pull /sdcard/1.jpg 2.jpg
adb pull /sdcard/1.jpg
安装文件
adb install ....
adb uninstall ...
触屏
触屏事件
adb shell input tap 500 500
滑动事件
adb shell input swipe 900 500 100 500
长按2000ms
adb shell input swipe 500 500 501 501 2000
截图
截图
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