Ubuntu下 Android真机调试
2011-11-25 14:41
561 查看
首先非常不错到视频:
http://www.tudou.com/programs/view/ldKvE3BW7Lw/
上面到研究透即可。
配合的指令: adb kill-server adb devices
sudo service udev restart
lsusb
相关的官网参考: http://developer.android.com/guide/developing/device.html
If you're developing on Ubuntu Linux, you need to add a
For a list of vendor IDs, see
USB Vendor IDs, below. To set up device detection onUbuntu Linux:
Log in as root and create this file:
Use this format to add each vendor to the file:
In this example, the vendor ID is for HTC. The
Note: The rule syntaxmay vary slightly depending on your environment. Consult the
udevrules.
Now execute:
以上a,b两个步骤完成后,拔出手机USB后重新插入即可。
You can verify that your device is connected by executing
If using Eclipse, run or debug your application as usual. You will bepresented with aDevice Chooser dialog that lists the availableemulator(s) and connected device(s). Select the device upon which you want toinstall and run the application.
If using the
AndroidDebug Bridge (adb), you can issue commands with the
http://www.tudou.com/programs/view/ldKvE3BW7Lw/
上面到研究透即可。
配合的指令: adb kill-server adb devices
sudo service udev restart
lsusb
相关的官网参考: http://developer.android.com/guide/developing/device.html
If you're developing on Ubuntu Linux, you need to add a
udevrules file that contains a USB configuration for each type of deviceyou want to use for development. In the rules file, each device manufactureris identified by a unique vendor ID, as specified by the
ATTR{idVendor}property.
For a list of vendor IDs, see
USB Vendor IDs, below. To set up device detection onUbuntu Linux:
Log in as root and create this file:
/etc/udev/rules.d/51-android.rules.
Use this format to add each vendor to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
In this example, the vendor ID is for HTC. The
MODEassignment specifies read/write permissions, and
GROUPdefineswhich Unix group owns the device node.
Note: The rule syntaxmay vary slightly depending on your environment. Consult the
udevdocumentation for your system as needed. For an overview of rule syntax, seethis guide towriting
udevrules.
Now execute:
chmod a+r /etc/udev/rules.d/51-android.rules
以上a,b两个步骤完成后,拔出手机USB后重新插入即可。
You can verify that your device is connected by executing
adbdevicesfrom your SDK
platform-tools/directory. If connected,you'll see the device name listed as a "device."
If using Eclipse, run or debug your application as usual. You will bepresented with aDevice Chooser dialog that lists the availableemulator(s) and connected device(s). Select the device upon which you want toinstall and run the application.
If using the
AndroidDebug Bridge (adb), you can issue commands with the
-dflag totarget your connected device.
USB Vendor IDs
This table provides a reference to the vendor IDs needed in order to add USBdevice support on Linux. The USB Vendor ID is the value given to theATTR{idVendor}property in the rules file, as described above.
Company | USB Vendor ID |
---|---|
Acer | 0502 |
ASUS | 0B05 |
Dell | 413C |
Foxconn | 0489 |
Garmin-Asus | 091E |
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 |
相关文章推荐
- ubuntu10.04真机调试Android
- ubuntu android 真机调试找不到设备配置
- ubuntu android 真机调试
- Ubuntu下android真机调试Using Hardware Devices
- ubuntu环境下android应用真机调试故障及解决方案
- Ubuntu上进行android真机调试
- ubuntu10.04 下通过usb在真机调试android程序的设置???????????? no permissions
- Linux下Android真机调试(Ubuntu,真机随意,包括arm板)
- Ubuntu10.10下Android真机调试
- ubuntu系统下android真机调试!
- ubuntu android 真机调试
- VirtualBox 下的 Ubuntu 虚拟机中使用 Android 真机做开发调试
- Ubuntu 10.10 与 华为C8650 手机搭建Android 真机开发调试环境
- ubuntu下使用魅族mx真机调试android程序
- ubuntu下真机调试android
- 在ubuntu上进行android开发真机调试,并且配置自动开启adb服务脚本
- Linux(Fedora和Ubuntu等)下android真机调试的环境搭建
- ubuntu10.04 下通过usb在真机调试android程序的设置???????????? no permissions
- Ubuntu10.10下配置android开发真机连接调试
- ubuntu10.04 下通过usb在真机调试android程序的设置