Ubuntu下 Android真機 顯示????????????no permissions 最終辦法,androidpermissions

來源:互聯網
上載者:User

Ubuntu下 Android真機 顯示????????????no permissions 最終辦法(轉載),androidpermissions

首先:

開啟一個終端,輸入 lsusb,就會看到當前串連電腦的所有USB裝置,比如:

Bus 002 Device 003: ID 046d:c06a Logitech, Inc.

Bus 002 Device 010: ID 17ef:7533 Lenovo

第二個是我串連的聯想手機。

其次:

進入 /etc/udev/rules.d 下面:

開啟終端(Ctrl+Alt+T),進入root 使用者,執行 sudo gedit /etc/udev/rules.d/50-Android.rules就會在該目錄下建立一

個50-android.rules檔案,如果該檔案已經存在,就建立一個51-android.rules檔案,在該檔案中添加如下語句:

SUBSYSTEM=="usb", SYSFS{idVendor}=="17ef", MODE="0666"

其中的  SYSFS{idVendor}=="17ef" 代表的是聯想手機,如果是HTC的話,則換成 0bb4,所有手機USB對應的ID 如下:

 

Company USB Vendor ID
Acer 0502
ASUS 0b05
Dell 413c
Foxconn 0489
Fujitsu 04c5
Fujitsu Toshiba 04c5
Garmin-Asus 091e
Google 18d1
Hisense 109b
HTC 0bb4
Huawei 12d1
K-Touch 24e3
KT Tech 2116
Kyocera 0482
Lenovo 17ef
LG 1004
Motorola 22b8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10a9
Pegatron 1d4d
Philips 0471
PMC-Sierra 04da
Qualcomm 05c6
SK Telesys 1f53
Samsung 04e8
Sharp 04dd
Sony 054c
Sony Ericsson 0fce
Teleepoch 2340
Toshiba 0930
ZTE 19d2

 

 

最後:

儲存50-android.rules 檔案;在終端(一定要在root 使用者下,否則會提示 ??????  no permission )中輸入 adb kill-server ,

接著輸入 adb devices ,就會看到手機USB了:

List of devices attached

0123456789ABCDEF device

這時 可以用 Eclipse來串連手機做測試了


Android adb devices顯示no permission怎辦,解

在ubuntu(9.10)下執行adb devices命令, 返回的結果是:
List of devices attached
???????????? no permissions
這意味著,USB串連的裝置是能夠被識別的。Google之後,得知adb server需要以root的許可權啟動,於是有了如下命令:
brian@brian-laptop:~/Dev/Java/Android/android-sdk-linux_86/tools$ ./adb kill-server
brian@brian-laptop:~/Dev/Java/Android/android-sdk-linux_86/tools$ sudo ./adb start-server
* daemon not running. starting it now *
* daemon started successfully *

第一條命令用來殺死當前正在啟動並執行server, 第二條命令則以root的許可權啟動了新的server. 我們可以再次查看devices:
brian@brian-laptop:~/Dev/Java/Android/android-sdk-linux_86/tools$ ./adb devices
List of devices attached
HT848KV04386 device

這次裝置就被正確識別了。自然地, 像ddms之類的工具也能派上用場了。
要是還有不懂得去機鋒網轉轉。
 
華為C8812手機在ubuntu下面真機調試時不可以識別,顯示??????????? devices

撥號:*#*#2846579#*#*
ProjectMenu->後台設定->USB連接埠配置->Google 模式
 

聯繫我們

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