1. 常用命令
    • adb devices  #查看連接設備
    • adb install test.apk #安裝包
    • adb uninstall test.apk # 卸載包
    • adb connect 192.0.0.1:7555 #通過端口連接MUMU模擬器
    • adb disconnect 192.0.0.1:7555#斷開連接
    • adb shell #進入設備終端
    • adb shell df #查看設備磁盤空間占用情況
    • adb shell free #查看磁盤內存和運行內存
    • adb shell top #查看設備當前進程
    • adb shell netstat #查看所有打開的端口
    • adb shell kill -9 #殺進程
    • adb shell pm list packages #列出手機裝的所有app的包名
    • adb shell dupsys meminfo #手機內存使用情況 Memory Usage
    • adb -s 設備序號 shell #進入指定設備終端調試
    • adb logcat #查看日志
    • adb logcat -c #清除log 緩存
    • adb logcat -v time  #打印帶有時間的日志
    • adb logcat  *:E #打印級別為Error的信息
    • adb logcat -v time  *:E #打印帶有時間且級別為Error的日志
    • adb logcat -v time > D:\log.txt #打印日志并保存到指定位置
    • adb push 電腦路徑 手機路徑 #上傳 電腦的信息上傳到手機里
    • adb pull 手機路徑 電腦路徑
    •  netstat -ano|findstr 10086 查看端口是否被占用
    •  adb help # 查看adb幫助