標籤:pull war serial logs 進入 序列 卸載 report 密度
常用命令
- devices # 查看已串連的裝置
- start-server # 啟動 adb server
- kill-server # 停止 adb server
- logcat # 查看日誌
- install # 安裝一個apk
- uninstall # 卸載一個apk
- shell # 進入終端
其他命令
- help # 查看協助資訊
- version # 查看版本
- devices # 查看已串連的裝置
- forward # 連接埠轉寄
- bugreport # 產生adb出錯報告
- install # 安裝一個apk
- uninstall # 卸載一個apk
- disconnect # 斷開裝置
- tcpip # 偵聽連接埠
- connect # 串連裝置
- start-server # 啟動 adb server
- kill-server # 停止 adb server
- logcat # 查看日誌
- reboot # 重啟
- push # 上傳
- pull # 下載
- remount # 提權
- get-serialno # 擷取序號
- shell # 進入終端
- shell screencap # 螢幕
- shell screenrecord # 錄製視頻
- shell pm list packages # 列出手機裝的所有app的包名
- shell pm list packages -s # 列出系統應用的所有包名
- shell pm list packages -3 # 列出第三方應用的所有包名
- shell pm clear # 清除應用資料與緩衝
- shell am start -n # 啟動應用
- shell am force-stop # 停止應用
- shell am force-stop # 強制停止應用
- shell wm size # 查看螢幕解析度
- shell wm density # 查看螢幕密度
References
https://developer.android.google.cn/studio/command-line/adb.html
https://github.com/skywind3000/awesome-cheatsheets/blob/master/tools/adb.txt
Android adb 命令速查表