Android第三課 聯調華為手機

來源:互聯網
上載者:User

標籤:win   後台   google   doc   int   bin   tar   需要   配置   

1 現象
windows環境,通過adb devices命令查看到華為手機的裝置如下:
List of devices attached
????????????   device
Linux環境下出現的問題:
運行sudo ./adb devices 時,若有如下輸出:
List of devices attached
???????????? no permissions
2解決方案
操作步驟
1)撥號:*#*#2846579#*#*
ProjectMenu->後台設定->USB連接埠配置->Google 模式
對就是撥號!!這個設定完畢之後,在windows上就可以正常的顯示裝置號了!!
顯示結果如下:
List of devices attached
0C37DC0E2827    device
2)Linux系統還需要部署udev檔案
1. lsusb
[email protected]:~/bin/android-sdk-linux/platform-tools$lsusb
Bus 002 Device002: ID 8087:8000 Intel Corp.
Bus 002 Device001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device002: ID 8087:8008 Intel Corp.
Bus 001 Device001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device031: ID 12d1:1038 Huawei Technologies Co., Ltd. Ideos (debug mode)
我串連的是華為的機器,查看最後一個
Bus 003 Device031: ID 12d1:1038 Huawei Technologies Co., Ltd. Ideos (debug mode)
2.
[email protected]:/# cd  /etc/udev/rules.d/
[email protected]:/etc/udev/rules.d# ls
[email protected]:/etc/udev/rules.d# vi51-android.rules
3.
SUBSYSTEM=="usb",ATTR{idVendor}=="12d1", ATTR{idProduct}=="1038",MODE="0600"
其中12d1,1038分別取自上述ID後面的兩個數字
4.儲存後給予許可權:
  sudochmod a+rx /etc/udev/rules.d/51-android.rules
5. sudo /etc/init.d/udev restart  或者 sudo restart udev
6. sudo ./adb kill-server
7. sudo ./adb start-server
8. sudo  ./adb devices
參考:http://blog.chinaunix.net/uid-24856020-id-3388654.html

Android第三課 聯調華為手機

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.