pretty

Thursday 16 August 2012

Android: No USB driver? No problem.

Got another android tablet, and can't find usb driver for it, in order to use ADB? I'm going to show a step-by-step guide what to do in this case, suggested by my colleague. This approach worked on every device I have tested so far.

1. Connect the device to a computer with usb cable.

2. On Android device turn on Settings->Aplication->Development->USB Debugging option.

3. Open device manager on Windows, and there you should see Android Phone node with "Android Composite ADB Interface" leaf. Click on properties, go to details tab and select "Hardware Ids” from dropdown box. In "Value" window you'll see something like this (that's for my Altina tablet):

USB\VID_18D1&PID_0003&REV_9999&MI_01
USB\VID_18D1&PID_0003&MI_01.

Copy these values to notepad.

4. Now open ..\Android\android-sdk\extras\google\usb_driver\android_winusb.inf with notepad. This is standard android usb driver from SDK. It covers some of the phones as you can see, like HTC Dream and Google Nexus One. We are going to try to add a new device to it. Go to the [Google.NTx86] section in case you are on 32-bit Windows or to [Google.NTamd64] if you have a 64-bit os.

5. Copy the strings from HTC Dream and paste them before "; HTC Dream"

%SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C01
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C02&MI_01

Then change USB\VID_0BB4&PID_0C01 and USB\VID_0BB4&PID_0C02&MI_01 with your device's strings saved in notepad. For instance, in my case it would look like:

%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0003&MI_01
%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0003&REV_9999&MI_01

Save and close android_winusb.inf.

6. Done. To check go to android-sdk\platform-tools\ and type adb devices. If everything worked out well you should see your device in the list of atached devices.

16 comments :

  1. Hi dude, turns out i was doing something like that but couldn't pull it out. I opened the .inf file serching for clues, i even use the vendor and product id to track the driver, and it just slip in my mind that maybe pasting those things in the .inf could work, but never give a full thought about that.
    I thank you because you point me how to do it right, I salute you from Mexico.

    ReplyDelete
  2. it worked, you are awesome.
    greetz from australia

    ReplyDelete
  3. Hi can you upload inf files, my hw id is

    USB\VID_18D1&PID_0003&REV_0230&MI_01
    USB\VID_18D1&PID_0003&MI_01

    i can't solve my problem please help me

    ReplyDelete
  4. This was the missing piece of the puzzle for me! One minor difference...there was no HTC Dream section in my inf file. Just connected an iPPO Q78 (with exactly the same device strings as your example) to Windows Vista x64. Thanks!

    ReplyDelete
  5. i dont understand the 4rth one

    ReplyDelete
  6. cant open it with notepad
    thre 4th one

    ReplyDelete
    Replies
    1. what do i have to put before *here*\android\

      Delete
  7. Спасибо :)

    ReplyDelete
  8. Thank you! :)

    ReplyDelete
  9. It works !
    Thanks a lot !
    Constantin

    ReplyDelete
  10. It says it cannot install the driver because its hashes cannot be cound in the specified catalogus file (.cat). What should I do?

    ReplyDelete
    Replies
    1. http://stackoverflow.com/questions/9709263/google-android-usb-driver-and-adb

      Delete
  11. on installing drive it return the following error: "the has for the file is not present in the specific catalog file. the file likely corrupt or the victim of tampering"

    any idea for turn arround?

    ReplyDelete
    Replies
    1. I found this solution and works!
      http://stackoverflow.com/questions/9709263/google-android-usb-driver-and-adb

      Delete