笔记摘抄自:http://developer.android.com/guide/developing/device.html
?
在ubuntu下,第一次连入实体机进行调试会发现ubuntu无法识别到android手机。
需要进行的设置是:
- Log in as root and create this file:?
/etc/udev/rules.d/51-android.rules
.For Gusty/Hardy, edit the file to read:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
For Dapper, edit the file to read:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
- Now execute:
chmod a+r /etc/udev/rules.d/51-android.rules
不同手机,idVendor的值如下:
CompanyUSB Vendor ID
Acer | 0502 |
Dell | 413c |
Foxconn | 0489 |
Garmin-Asus | 091E |
18d1 | |
HTC | 0bb4 |
Huawei | 12d1 |
Kyocera | 0482 |
LG | 1004 |
Motorola | 22b8 |
Nvidia | 0955 |
Pantech | 10A9 |
Samsung | 04e8 |
Sharp | 04dd |
Sony Ericsson | 0fce |
ZTE | 19D2 |
?