Ubuntu adb devices 出现??? no permissions 的解决方法

在ubuntu 12.10下运行adb devices出现:

 List of devices attached   
    ????????????    no permissions  
1.用命令:   lsusb

以下是我的输出(当前连的是小米手机)

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 002: ID 062a:0000 Creative Labs Optical mouse

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 002: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 007: ID 18d1:9025 Google Inc.


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

上边蓝色的东西就是我的MI手机的设别信息
Bus 001 Device 007: ID 18d1:9025 Google Inc. 


2.创建rules文件

sudo vi/etc/udev/rules.d/51-android.rules 
3.在51-android.rules文件中添加如下:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTRS{idProduct}=="9025", MODE="0666", GROUP="plugdev"
4.改变51-android.rules的权限

 sudo chmod a+r /etc/udev/rules.d/51-android.rules  
5.adb devices仍然出现上述问题,重启udev

sudo service udev restart  
6.adb devices查看

List of devices attached 
02b75d35	device
说明已经成功配置。




你可能感兴趣的:(ubuntu,adb,permissions,No,Devices)