I am looking for guidance or a definitive answer on the following. I want to use the Google Android USB Driver and modify the android_winusb.inf
to support any number of Android devices. I was able to add an HTC Evo tablet successfully, but when I try to add LG (Optimus) or Samsung (Indulge, Admire) the driver seems to install fine, but ADB does not see it.
The computer always says 'the current drivers are already up to date'.im gonna try unnistalling every usb driver in every aspect and unnistalling his pc companion, the pc companion could be interfeering with the process. His cable is the original cable that came with the device and he does use it for transfering normal data so i would assume the able is fine but if everything else fails we'l.
Can you make the Google Android Driver work for any Android phone? If so... how?
I have tried many permutations of %SingleAdbInterface%
and %CompositeAdbInterface%
with the variations of Vendor and Product ids.
9 Answers
You need to modify 3 things in order to make Google USB driver work for any android phone on any Windows:
- Add your device's ID to
android_winusb.inf
file - Digitally sign the modified driver
- Add your device's vendor ID to
adb_usb.ini
whitelist (no longer required)
and here are the details:
1. Add your device's ID to android_winusb.inf
file
the format to add is:
before I go on, VID
is the USB Vendor ID.
How to get the vid and pid : they are in drivers you are merging; but if you don’t have a driver for the device you can get it by opening device manager; then right-click the device – select properties-in new dialog go to Details tab >in property drop menu select hardware ids. for example you see something like:
take this value for composite adb device and remove MI for single adb device, you get
copy this 2 line TWICE , once to [Google.NTx86] section and another to [Google.NTamd64] section
REPEAT for every device you want to support
Now an optional edit for [Strings] Section: edit
To:
2. Digitally sign the modified driver:
Although the original google usb driver was signed by google , modifying android_winusb.inf will prevent installing it on windows 8 showning an error message
This is only in Windows 8. Windows 7 or earlier do not show this error message. You have to regenerate catalog file (probably with Windows SDK) and sign
Workaround: A workaround for internal tesing is to diable windows signature verification : either temporarily or permanently:
temporarily:
Go to left upper or lower corner of screen to open charms bar and click settings charm.
choose Change PC settings
choose General
Scroll down, and click ‘Restart now’ under ‘Advanced startup’.
Click ‘Troubleshoot’.Click ‘Advanced Options’Click ‘Windows Startup Settings’Click Restart.
or
run cmd and type:
then after restarting choose ‘Disable driver signature enforcement‘ from the list . install your driver before restarting.
Permanently:
press Window+Q
search for cmd
right click cmd
choose run as administrator from action bar
type in cmd:
3. Add your device's vendor ID to adb_usb.ini
whitelist (no longer required):
adb
used to have a hard-coded whitelist of supported Vendor IDs. If your device's vendor was not on the list - the adb
was ignoring it completely. To make adb
recognize such devices users had to manually add their vendor IDs to %USERPROFILE%.androidadb_usb.ini
- one ID per line.
in the command line:
Fortunately, Google has removed the VendorID filtering in more recent adb
versions. So this step is no longer required.
Finally you can test installation by :
and enabling debugging in developer options on android device
This should restart ADB Server and list devices. If driver is working ok, the device should be listed.
Can you give us a better description and an example of what you are doing? Because all i have to do is put the line in there for the device and then save the file. Now just reconnect the device and it works.
I usually use something similar to this line:
What i do, is:
- plug the device into the computer.
- Go to your device manager.
- Right click on the device that you plugged up.
- Go to properties. Then select Hardware Ids.
- Then get that value that is listed there.
- Now add it to the line you created in the
android_winusb.inf
. - Unplug the device and plug back in
- Go back to the device manager
- Right click on the device and click update or install driver
- Select search your computer for the driver
- Select the directory
Your_Android_SDK_Directory/extras/google/usb_driver/
- Press ok
That seems to always work for me, is that what you are doing? Or does this even help?
prolink007Google Usb Driver For Android
prolink007Locate the following file
C:Users
[your name].androidadb_usb.ini
And make the following changes:
I added 0x2207
to the file. This number is part of the hardware id, which can be found under the device's hardware information.
Mine was:
USBVID_2207&PID_0010&MI_01
(I tried executing android update adb
, but it did nothing.)
Answer 1 worked perfectly for me. I tested it on a new MID 10' tablet. Here are the lines I added in the .inf file and it installed without a problem:
Anup Cowkur- modify android_winusb.inf
- Sign the driver
- modify adb
I also instaled generic adb driver from http://adbdriver.com/and it works.
Marcel GwerderFor my Azpen A727, the Windows driver installed correctly, so only step 3 of Mohammad's answer was necessary.
VeeTheSecondVeeTheSecondLooks like the Google USB drivers have been updated to support Glass out of the box, so as long as you use the latest drivers, you should be able to access Glass via ADB. In my particular situation, I had connected Glass to my machine sometime mid-2014 but did nothing with it. Now when I was trying to connect it, I would not see it show up in ADB despite showing up in Device Manager. After much trial and error, I found out that I had to:
- Go into Device Manager
- Right click 'Android ADB Interface' under 'SAMSUNG Android Phone'
- Click 'Uninstall'. BE SURE'Delete the driver software for this device' is checked.
- Disconnect and reconnect Google Glass.
I was then able to reinstall the driver via regular Windows update. This forced it to look for the newest driver. Not sure why it was not getting updated before, but I hope this will help someone out there still struggling with this.
Driver for Huawei was not found. So I've been using the universal ADB driver:
- Download this:
- Extract
ADBDriverInstaller
and Run the file. Make sure you have connected your device through USB to your computer. - A window is displayed.
- Click Install.
- A dialog box will appear. It will ask you to press the
Restart
button.
Before doing that read this link:
(The above. in brief, says to press Restart button in the dialog box. Select Troubleshoot. Select Advance Option. Select Startup Setting. Press Restart. After system's been restarted, on the appearing screen press 7)
- When PC has been Restarted, Run the
ADBDriverInstaller
file again. Select your device from the options. Press install.
And it's done :)
Sony Xperia Drivers
Sanoopinstead of modifying adb_usb.ini file I made changes on the file android_winusb.inf under directory android-sdkextrasgoogleusb_driver alone and it worked for the tablet MID Q88 but i copied both sections [Google.NTamd64] and [Google.NTx86]