锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产一区二区在线影院,欧美一区视久久,亚洲电影在线看http://www.aygfsteel.com/czihong/category/53396.htmlzh-cnSun, 10 Mar 2013 07:04:41 GMTSun, 10 Mar 2013 07:04:41 GMT60Fix 鈥???????????? no permissions鈥?with adb and your Android phonehttp://www.aygfsteel.com/czihong/articles/396250.htmlChan ChenChan ChenSun, 10 Mar 2013 05:58:00 GMThttp://www.aygfsteel.com/czihong/articles/396250.htmlhttp://www.aygfsteel.com/czihong/comments/396250.htmlhttp://www.aygfsteel.com/czihong/articles/396250.html#Feedback0http://www.aygfsteel.com/czihong/comments/commentRss/396250.htmlhttp://www.aygfsteel.com/czihong/services/trackbacks/396250.html

A common problem when using adb to access your Android phone via USB is:

$ adb devices List of devices attached ????????????    no permissions 

According to official Android Developers website:

If you’re developing on Ubuntu Linux, you need to add a rules file that contains a USB configuration for each type of device you want to use for development. Each device manufacturer uses a different vendor ID. The example rules files below show how to add an entry for a single vendor ID (the HTC vendor ID). In order to support more devices, you will need additional lines of the same format that provide a different value for the SYSFS{idVendor} property.

Quick fix:

sudo -s adb kill-server adb start-server adb devices 

Permanent fix:

$ lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 093a:2510 Pixart Imaging, Inc. Hama Optical Mouse Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 18ea:0004 Matrox Graphics, Inc. TripleHead2Go [Digital Edition] Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 010: ID 0bb4:0c87 High Tech Computer Corp.  <<<<<<<< my HTC phone Bus 001 Device 008: ID 046d:0817 Logitech, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

Note 0bb4 is the vendor ID. Next, create /etc/udev/rules.d/51-android.rules with the following lines:

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" 

Final steps:

sudo chmod a+r /etc/udev/rules.d/51-android.rules sudo udevadm control --reload-rules 

Done.

A list of popular vendor IDs:

Acer0502
Dell413c
Foxconn0489
Garmin-Asus091E
HTC0bb4
Huawei12d1
Kyocera0482
LG1004
Motorola22b8
Nvidia0955
Pantech10A9
Samsung04e8
Sharp04dd
Sony Ericsson0fce
ZTE19D2



Chan Chen 2013-03-10 13:58 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 贡嘎县| 霍城县| 轮台县| 涪陵区| 来安县| 广水市| 永胜县| 海阳市| 新建县| 九江市| 朔州市| 留坝县| 将乐县| 大厂| 宜都市| 两当县| 镇平县| 措勤县| 海安县| 焦作市| 岳普湖县| 江西省| 越西县| 宝兴县| 凤山市| 通道| 鸡泽县| 乌拉特后旗| 开远市| 武胜县| 白朗县| 四川省| 平阴县| 连城县| 重庆市| 上高县| 康保县| 新乐市| 慈利县| 佳木斯市| 保定市|