Ubuntu adb devices :???????????? no permissions (verify udev rules) 解决方法
http://www.cnblogs.com/cat-lee/archive/2011/07/09/2101718.html
zh@zh:~$ adb devices
List of devices attached
38339b65 no permissions (verify udev rules); see [http://developer.android.com/tools/device.html]
zh@zh:~$
zh@zh:~$ adb remount
error: insufficient permissions for device: verify udev rules.
See [http://developer.android.com/tools/device.html] for more information.
解决方法:
设置usb权限
因为ubuntu这样的系统都是默认以非root身份在运行的,要使用usb调试,需要sudo支持
1.进入/etc/udev/rules.d目录:sudo nautilus /etc/udev/rules.d
2.手动创建一个 70-android.rules 文件(若无法创建,从桌面创建好之后拷贝进来)
3.打开 70-android.rules 文件,写入如下内容:
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9091",MODE="0666"
上行中的 05c6 值和 9091 值可以通过lsusb命令查到
zh@zh:~$ lsusb //查看手机使用的usb端口
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 016: ID 05c6:9091 Qualcomm, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
4. 重启udev
$ sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$ sudo service udev restart
5.重新拔插usb线
ps:
当运行 fastboot devices 时出现如下错误时,也同上述处理:
zh@zh:~$ fastboot devices
no permissions (verify udev rules); see [http://developer.android.com/tools/device.html] fastboot
zh@zh:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 022: ID 18d1:d00d Google Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
zh@zh:~$
总结:
lsusb
sudo geany /etc/udev/rules.d/70-android.rules