adb是android debug bridge的縮寫,

顧名思義是拿來連接android device debug的工具,

這篇主要focus在如何使用adb,

如果要更進階可以參考android官方文件

 

首先在linux系統上必須先安裝adb tool,

$ apt-get install android-tools-adb

 

安裝成功之後就可以開始適用以下幾個基本指令了

1. 顯示所有連線到的android device

$ adb devices -l

 

2. 把檔案從電腦放到device上

$ adb push {電腦路徑} {android device路徑}

 

3. 把檔案從device複製到電腦上

$ adb pull {android device路徑} {電腦路徑}

 

4. 進到android device的console模式

$ adb shell

arrow
arrow
    文章標籤
    adb android linux debug
    全站熱搜

    Mk 發表在 痞客邦 留言(0) 人氣()