Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲

Android adb 常用指令整理:安裝、截圖、重啟與系統操作

編輯:關於 Android 程式設計

安裝與啟動

adb install app.apk
adb uninstall package.name
adb shell am start -n package.name/.MainActivity

連線與中斷

adb connect 192.168.1.10
adb disconnect

截圖與檔案

可使用 adb shell screencap 將畫面存到裝置,再用 adb pull 取得檔案。

adb shell screencap -p /sdcard/output.png
adb pull /sdcard/output.png

系統與資源

adb remount
adb reboot
adb shell top -m 5
adb shell ps

Native 編譯

$NDK/ndk-build

小結

adb 是 Android 開發與除錯的重要工具。熟悉常用指令,能大幅提升模擬器與真機操作效率。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © Android教程網 All Rights Reserved