【Android】常用的adb命令

來源:互聯網
上載者:User

標籤:android   style   ar   color   sp   strong   檔案   on   art   


adb Android Debug Bridge

adb devices

列出所有串連的Android裝置

adb kill-server

殺死adb調試橋

adb start-server

啟動adb調試橋

adb install 應用程式位置

安裝應用程式

adb uninstall 應用程式的包名

卸載應用程式

adb –s 裝置名稱 install 應用程式位置

安裝應用程式到指定裝置

adb pull srcFile targetFilePath

把裝置中的檔案匯出

adb push srcFile targetFilePath

匯入檔案到裝置

adb shell

串連裝置命令列終端

ls       顯示目錄結構

ps      顯示當前正在啟動並執行進程

kill -9 pid 殺死進程

ping     網路通訊

ls –l     列出所有檔案和檔案夾

mount  改變目錄的存取權限

mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system  

chmod(change mode)改變檔案的訪問模式

chmod modeValue fileName

chmod 666 private.txt

chown 改變檔案所屬使用者組

chown 使用者組.使用者組 檔案路徑

如:chown root.shell /system/bin/su  

rm 檔案名稱  移除檔案

rm *.txt     移除所有txt檔案

adb logcat

查看日誌



虛擬機器:ctrl + F11 橫豎屏切換


【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.