常用的adb命令

一、常用的adb命令

1.adb help 

2.adb devices 取得当前运行的模拟器/设备的实例的列表及每个实例的状态

3.adb install zw.apk 安装应用程序

4.adb -s 123 install zw.apk 给指定的设备安装apk

5.adb pull 从远程到本地,从手机下载文件到电脑

6.adb push 从本地到远程,从电脑上传文件到手机

7.adb start-server 启动服务

8.adb kill-server 杀死服务

9.adb shell 必须是root才行 进入linux

10.adb logcat 日志

二、adb logcat 

1、V-Verbose(lowest priority)

2、D-Debug

3、I-Info

4、W-Warning

5、E-Error

6、F-Fatal

7、S-Silent(highest priority,on which nothing is ever printed)

下面额过滤语句只显示优先级为warning或更高的日志信心 adb logcat *:W

posted @ 2019-06-02 16:13  朱砂痣  阅读(570)  评论(0编辑  收藏  举报