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.
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.
Locate the following file
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:
USB\VID_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:
Driver for Huawei was not found. So I've been using the universal ADB driver:
ADBDriverInstaller
and Run the file. Make sure you have connected your device through USB to your computer.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)
ADBDriverInstaller
file again. Select your device from the options. Press install.And it's done :)
For my Azpen A727, the Windows driver installed correctly, so only step 3 of Mohammad's answer was necessary.
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:
android_winusb.inf
.Your_Android_SDK_Directory/extras/google/usb_driver/
That seems to always work for me, is that what you are doing? Or does this even help?
You need to modify 3 things in order to make Google USB driver work for any android phone on any Windows:
android_winusb.inf
fileadb_usb.ini
whitelist (no longer required)and here are the details:
1. Add your device's ID to
android_winusb.inf
filethe 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 - theadb
was ignoring it completely. To makeadb
recognize such devices users had to manually add their vendor IDs to%USERPROFILE%\.android\adb_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.