Android adb 命令速查表

來源:互聯網
上載者:User

標籤: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 命令速查表

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.