Thursday, September 18, 2014

Install ADB driver for any Android device

You set your device to developer mode from device settings and hoping to see device log on logcat. But that is empty. It is probably because your device is not recognizable by ADB. 

Understand that, device software which help to recognize your device to windows and help you to transfer data is not the ADB driver.


How to install a device manually?
Step 1 [Get the Google USB Driver]
from Android SDK manager install, Google USB driver from extras section.
Step 2 [Find the Device Hardware ID]
  1. Go to your Windows device manager
  2. find your device from the list
  3. then go to its properties.
  4. Select details tab.
  5. Select Hardware ID from drop down.
You will see something like bellow.
USB\VID_18D1&PID_4EE2&REV_0228&MI_00
USB\VID_18D1&PID_4EE2&MI_00
Copy these two line.
Step 3 [Update Your USB Driver]
Go to your device installation folder Under sdk\extras\google\usb_driver you will see a file android_winsub.inf Open the file
Go to Section [Google.NTx86] you will see something like bellow(Do not worry about exact match of device name. ).
;Google Nexus Q
%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_2C10
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_2C11
Copy this and create a new entry just bellow with your device name. So new entry will look like this,
;My Nexus Q
    %SingleBootLoaderInterface% = USB_Install, [Things you just copied on step 1]
    %SingleAdbInterface%        = USB_Install, [Things you just copied on step 1] 
do the same for section [Google.NTamd64]
Step 4[Installation]
  1. Go to windows Device Manager
  2. Your Device Properties
  3. Driver-> update driver
Show your newly modified android_winsub.inf and install.
Final Step restart you adb.
adb kill-server
adb start-server

No comments: