笔记摘抄自: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的值如下:
| Company | USB 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 |
本文介绍如何在Ubuntu系统中配置Android设备以便进行调试。主要内容包括为不同型号的Android手机设置正确的USB Vendor ID,确保系统能够识别并正确配置手机。文中提供了具体的配置文件编辑方法和权限更改步骤。
4984

被折叠的 条评论
为什么被折叠?



