Ubuntu 12.04 adb 找不到裝置的解決方案

來源:互聯網
上載者:User

問題描述與背景:
新來個測試手機,串連PC後adb devices下無裝置。已經在手機端開啟USB調試(Android4.0,設定—開發人員選項--選中USB調試),USB串連沒有問題,可以開啟手機的存放裝置。

下面是解決的方法,主要參考網路。

1、lsusb找到裝置ID

lsusbBus 001 Device 013: ID 1ebf:7028

2、註冊到udev的rules檔案:

    vim  /etc/udev/rules.d/51-android.rules    添加這個ID:1ebf,如下:    SUBSYSTEM=="usb", ATTR{idVendor}=="1ebf", MODE="0666"    儲存檔案並運行:    sudo chmod a+rx /etc/udev/rules.d/51-android.rules    sudo /etc/init.d/udev restart    運行結果如下:    Rather than invoking init scripts through /etc/init.d, use the service(8)    utility, e.g. service udev restart    Since the script you are attempting to invoke has been converted to an    Upstart job, you may also use the stop(8) and then start(8) utilities,    e.g. stop udev ; start udev. The restart(8) utility is also available.    udev stop/waiting    udev start/running, process 14636

3、啟動adb的服務
    這個網上的經驗是在adb工具的目錄下執行,我是按照做的,成功。

    cd ~/program/Android/sdk/platform-tools    sudo ./adb  kill-server    sudo ./adb  start-server

這樣就可以了,請嘗試調試的樂趣吧。
Tips:
查看當前使用的adb:which 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.