adb shell常用命令

1、将test.txt从sdcard导入电脑G盘的test文件夹
adb pull /sdcard/test.txt G:\test
2、adb logcat -f /sdcard/test.txt //输出到手机sdcard里边
3、adb logcat -v threadtime 命令, 可以啥看日志的输出时间和线程信息
4、清空日志缓存信息 : 使用 adb logcat -c 命令
5、将缓存日志输出 : 使用 adb logcat
6、输出最近的日志 : 使用adb logcat -t 5 命令, 可以输出最近的5行日志, 并且不会阻塞;
7、查看日志缓冲区信息 : 使用 adb logcat -g 命令
8、使用管道过滤日志,过滤固定字符串 : 只要命令行出现的日志都可以过滤, 不管是不是标签;命令 : adb logcat | grep Wifi ;
9、Andriod录屏命令
adb shell screenrecord /sdcard/demo.mov
10、将录屏导入到电脑
adb pull /sdcard/demo.mov C:\Users\Lilyzhao\Desktop
11、清屏 pm clear +包名
12、导出anrlog(http://www.jianshu.com/p/6d855e984b99)
adb pull /data/anr
13、无线连接
adb tcpip 5555
adb connect ip地址
14、断开连接
adb disconnect
15、安装 adb install -r -d
16、卸载adb uninstall +包名
17、强制停止应用 adb shell am force-stop+包名
18、查看连接设备 adb devices
19、host地址
c:\windows\system32\drivers\etc
20、截图
adb shell screencap /sdcard/screen.png
adb pull /sdcard/screen.png #下载到本地
21、

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值