adb配置及常用命令

1、下载:http://adbshell.com/downloads

2、解压后

 3、环境配置到Path

 

 4、验证

cmd输入:adb version

 5、常用命令

  • adb devices 查看设备
  • adb install xxx.apk    安装
  • adb install -r xxx.apk  覆盖安装
  • adb unindstall com.zhy.app  卸载
  • adb logcat -c 清除原有日志
  • adb logcat > c:\test.log  将日志保存到文件test.log
  • adb shell screenrecord /sdcard/demo.mp4  录屏
  • adb shell screencap /sdcard/screen.png   截图

 

相关文章