I thought i'd do this for all those (like me) who had issues installing the Adb driver on their system, causing them to have issues using the UnrEVOked progam to root their phones. These steps worked for me, if they are not strictly correct ill edit this post when someone corrects me, but, like I said, they worked for me after 2 weeks of trying!
Once you have booted into your HBOOT screen your system will try to install the Android 1.0 driver [Image 1] . This is the Adb Driver. If, like me, you have followed all the instructions elsewhere, downloading the SDK and installing that driver does not always work.
Right click on the Android 1.0 and go to Properties then Details
In the Drop Down list select Hardware Ids [Image 2]
you will see something along the lines of:
USB\VID_0bb4&Pid_0c94&Rev_0100 USB\VID_0bb4&Pid_0c94 |
Unzip and open the file called android_winusb.inf
You are looking for any lines that say
; HTC Desire |
The sections you need are:
[Google.NTx86] ; HTC Dream %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C02&MI_01 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF ; HTC Magic %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C03&MI_01 ; HTC Desire %CompositeAdbInterface% = USB_Install, USB\VID_0bb4&Pid_0c94 ; ;Moto Sholes %SingleAdbInterface% = USB_Install, USB\VID_22B8&PID_41DB %CompositeAdbInterface% = USB_Install, USB\VID_22B8&PID_41DB&MI_01 ; ;Google NexusOne %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02 %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02&MI_01 %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11 %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E12&MI_01 |
[Google.NTamd64] ; HTC Dream %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C02&MI_01 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF ; HTC Magic %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C03&MI_01 ; HTC Desire %CompositeAdbInterface% = USB_Install, USB\VID_0bb4&Pid_0c94 ; ;Moto Sholes %SingleAdbInterface% = USB_Install, USB\VID_22B8&PID_41DB %CompositeAdbInterface% = USB_Install, USB\VID_22B8&PID_41DB&MI_01 ; ;Google NexusOne %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02 %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0D02&MI_01 %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_4E11 %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_4E12&MI_01 |
; HTC Desire
%CompositeAdbInterface% = USB_Install, USB\VID_0bb4&Pid_0c94
so that the USB\VID_0bb4&Pid_0c94 part of the line matches the Hardware Ids part that we saw in [ Image 2 ]
Now.. I put this at the end of the file just for completeness. I'm not 100% sure if it is needed or not.
; HTC Desire %SingleAdbInterface% = USB_Install, USB\VID_0bb4&Pid_0c94&Rev_0100 %CompositeAdbInterface% = USB_Install, USB\VID_0bb4&Pid_0c94 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&Pid_0c94 |
Right Click again on the Android 1.0 Driver and click Update Driver...
Browse to the directory that you unzipped the drivers too, which also contains your edited .inf file. Device manager should now recognize your driver file and install it.
The Android 1.0 should now change to be Android Composite ADB Interface
If you see this...then it worked! [ Image 4 ]
The Attached zip file is my Edited file that works for me. so please change to suit your Hardware Ids.
Any questions let me know. I'll help where I can
http://forum.xda-developers.com/showthread.php?t=737728
各手机厂商adb驱动下载地址:
http://developer.android.com/tools/extras/oem-usb.html
Ubuntu Linux adb 驱动安装方法:
Setting up a Device for Development
With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. Before you can start, there are just a few things to do:
- Declare your application as "debuggable" in your Android Manifest.
When using Eclipse, you can skip this step, because running your app directly from the Eclipse IDE automatically enables debugging.
In the
AndroidManifest.xml
file, addandroid:debuggable="true"
to the<application>
element.Note: If you manually enable debugging in the manifest file, be sure to disable it before you build for release (your published application should usually not be debuggable).
- Enable USB debugging on your device.
- On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
- On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
- Set up your system to detect your device.
- If you're developing on Windows, you need to install a USB driver for adb. For an installation guide and links to OEM drivers, see the OEM USB Drivers document.
- If you're developing on Mac OS X, it just works. Skip this step.
- If you're developing on Ubuntu Linux, you need to add a
udev
rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by theATTR{idVendor}
property. For a list of vendor IDs, see USB Vendor IDs, below. To set up device detection on Ubuntu 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. TheMODE
assignment specifies read/write permissions, andGROUP
defines which Unix group owns the device node.Note: The rule syntax may vary slightly depending on your environment. Consult the
udev
documentation for your system as needed. For an overview of rule syntax, see this guide to writing udev rules. - Now execute:
chmod a+r /etc/udev/rules.d/51-android.rules
- Log in as root and create this file:
Note: When you connect a device running Android 4.2.2 or higher to your computer, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog. This requires that you have adb version 1.0.31 (available with SDK Platform-tools r16.0.1 and higher) in order to debug on a device running Android 4.2.2 or higher.
When plugged in over USB, you can verify that your device is connected by executing adb devices
from your SDKplatform-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 be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device upon which you want to install and run the application.
If using the Android Debug Bridge (adb), you can issue commands with the -d
flag to target your connected device.
USB Vendor IDs
This table provides a reference to the vendor IDs needed in order to add USB device support on Linux. The USB Vendor ID is the value given to the ATTR{idVendor}
property in the rules file, as described above.
Company | USB Vendor ID |
---|---|
Acer | 0502
|
ASUS | 0b05
|
Dell | 413c
|
Foxconn | 0489
|
Fujitsu | 04c5
|
Fujitsu Toshiba | 04c5
|
Garmin-Asus | 091e
|
18d1
|
|
Haier | 201E
|
Hisense | 109b
|
HTC | 0bb4
|
Huawei | 12d1
|
K-Touch | 24e3
|
KT Tech | 2116
|
Kyocera | 0482
|
Lenovo | 17ef
|
LG | 1004
|
Motorola | 22b8
|
MTK | 0e8d
|
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 | 054c
|
Sony Ericsson | 0fce
|
Teleepoch | 2340
|
Toshiba | 0930
|
ZTE | 19d2
|
http://developer.android.com/tools/device.html#VendorIds