1:adb 定義:電腦與手機進行通訊的橋樑(默認端口是5037)shell
2:adb version 查看adb命令是否按照成功緩存
3:adb devices 輸出鏈接的安卓設備tcp
4:adb shell 進入手機命令終端調試
5: adb pull 手機路徑 電腦路徑 從手機拉取文件到電腦日誌
6:adb push 電腦路徑 手機路徑 從電腦上傳文件到手機進程
7:adb logcat 查看日誌ip
adb logcat > D:\logcat\logcat.txt 將日誌文件輸出到電腦下D盤logcat文件中路由
8:adb install xx.apk 安裝xx.apk adb install -r xx.apk (從新安裝並保存數據和緩存文件)it
9:adb uninstall 包名(應用程序身份證) 卸載 adb uninstall -k (包名) 卸載(保留數據和緩存文件)pip
10:adb shell dumpsys activity | find "mFocusedActivity" 查看當前應用程序的包名
11:手機與電腦遠程調試步驟(手機與PC鏈接同一個路由器)
* 手機經過usb鏈接到pc端
* adb devices 查看手機設備(是否成功鏈接)
* adb tcpip 5555肯定手機與pc通信端口號)
*adb connect 手機IP+端口
*adb disconnect 取消遠程調試
12: netstat -ano |findstr 5037 查看5037端口對應的進程號
13: taskkill -f -pid 殺死進程號