Google's official Development wizard has set the Android phone to allow the installation of non-market programs, and in the USB debugging mode, but still can not be recognized after USB connection to the computer, the problem is explained.
In the Ubuntu Linux environment, you need to add a rules file that contains the USB configuration information for each device you want to debug. Take the HTC phone as an example to achieve the following steps:
在终端输入 sudo gedit /etc/udev/rules.d/51-android.rules
- In the open file, add
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
- Save after exiting in terminal execution
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Once the phone is connected to your computer, the HTC phone will be recognized as normal.
If it is another manufacturer's phone, you need to change ATTR{idVendor}
the value in step 2. If you want to add more than one manufacturer's phone, repeat step 2. The IDs of other USB vendors are as follows:
| Company
USB Vendor ID |
Acer |
0502 |
ASUS |
0B05 |
Dell |
413C |
Foxconn |
0489 |
Garmin-asus |
091E |
Google |
18D1 |
Htc |
0BB4 |
Huawei |
12D1 |
K-touch |
24E3 |
KT Tech |
2116 |
Kyocera |
0482 |
Lenevo |
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 Ericsson |
0FCE |
Toshiba |
0930 |
ZTE |
19D2 |
Note: If the steps are still not recognized, check if the ATTR{idVendor}
letters in the values are lowercase (or as recognized by the computer!). )。 Note If the device list is not on top, you can use the LSUSB command (Plug and unplug your phone to see how the device changes)
Method Two:
The contents of the/etc/udev/rules.d/51-android.rules file are modified to:
subsystem== "USB", env{devtype}== "Usb_device", mode= "0666", group= "Plugdev"
The iphone driver is not recognized by Eclipse under Ubuntu (in the case of Xiaomi 2S)