谷歌Android的USB驱动程序和亚洲开发银行 [英] Google Android USB Driver and ADB

查看:339
本文介绍了谷歌Android的USB驱动程序和亚洲开发银行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找指引或下一个明确的答案。我想使用谷歌Android的USB驱动程序,并修改了Android _winusb.inf 来支持任意数量的Andr​​oid设备。我是能够成功地添加宏达电Evo平板电脑,但是当我尝试添加LG(擎天柱)或三星(纵情,佩服)司机似乎安装罚款,但亚行并没有看出来。

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.

您可以做任何Android手机谷歌Android驱动程序的工作?如果是这样的...怎么了?

Can you make the GOogle Android Driver work for any Android phone? If so... how?

我已经尝试了许多排列%SingleAdbInterface%%CompositeAdbInterface%与供应商和产品ID的变化

I have tried many permutations of %SingleAdbInterface% and %CompositeAdbInterface% with the variations of Vendor and Product ids.

推荐答案

您需要修改3事情,才能使谷歌的USB驱动程序工作在任何Windows任何android手机: 1 - 修改android_winusb.inf文件。 2 - 数字签名的改进的驱动器 3亚行修改

You need to modify 3 things in order to make Google USB driver work for any android phone on any Windows: 1-modify android_winusb.inf file. 2- Digitally sign the modified driver 3- modify adb

和下面是详细信息: 1 - 修改android_winusb.inf

and here are the details: 1-modify android_winusb.inf

添加格式为:

;Comment usually the device name
%SingleAdbInterface%        = USB_Install, USB\; here you put VID and PID
%CompositeAdbInterface%        = USB_Install, USB\; same as above but add the MI

在我去,VID是USB供应商ID;它不必是相同的同一设备OEM:例如:微星获取微星USB芯片享受平板电脑公司和USB芯片的微星享受加片在另一家公司(瑞芯微)

before i go on, vid is the usb vendor id; it doesn’t have to be the same for the same Device OEM: for example: MSI gets usb chip in MSI enjoy tablet from a company and usb chip in MSI enjoy plus tablets in another company (rockchip).

如何获得的VID和PID:他们在你要合并的驱动程序;但如果你没有为设备驱动程序,您可以通过打开设备管理器得到它;然后右键单击该设备 - 选择属性,在新的对话框中转到细节选项卡>物业下拉菜单中选择硬件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:

USB\VID_2207&PID_0000&REV_0222&MI_01
USB\VID_2207&PID_0000&MI_01

取此数值为复合亚行设备并取出MI单亚行的设备,你得到

take this value for composite adb device and remove MI for single adb device, you get

;MSI WindPad Enjoy 7 plus
%SingleAdbInterface%        = USB_Install, USB\VID_2207&PID_0000
%CompositeAdbInterface%     = USB_Install, USB\VID_2207&PID_0000&REV_0222&MI_01
;

复制此2线两次,一次是[Google.NTx86]部分和另一[Google.NTamd64]部分

copy this 2 line TWICE , once to [Google.NTx86] section and another to [Google.NTamd64] section

REPEAT对于要支持的每个设备

REPEAT for every device you want to support

现在可选的编辑为[strings]部分:编辑

Now an optional edit for [Strings] Section: edit

[Strings]
ProviderName                = "Google, Inc."
SingleAdbInterface          = "Android ADB Interface"
CompositeAdbInterface       = "Android Composite ADB Interface"
SingleBootLoaderInterface   = "Android Bootloader Interface"
WinUSB_SvcDesc              = "Android USB Driver"
DISK_NAME                   = "Android WinUsb installation disk"
ClassName                   = "Android Device"

要:

[Strings]
ProviderName                = "Google, Inc."
SingleAdbInterface          = "MSI ADB Interface"
CompositeAdbInterface       = "MSI Composite ADB Interface"
SingleBootLoaderInterface   = "MSI Bootloader Interface"
WinUSB_SvcDesc              = "MSI USB Driver"
DISK_NAME                   = "MSI WinUsb installation disk"
ClassName                   = "MSI Tablet"

2 - 注册驱动程序: 尽管最初的谷歌USB驱动程序是由谷歌签署,修改android_winusb.inf将prevent在Windows 8 showning错误消息安装它

2- Sign the 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

The hash file is not present in the specified catalog file. The file is likely
corrupt    or the    victim of tampering.

这是仅在Windows 8的Windows 7或更早版本不显示此错误消息。你必须重新编录文件(可能与Windows SDK),并签订

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:

暂时

转到屏幕的左上或右下角打开的魅力栏,然后单击设置魅力。

Go to left upper or lower corner of screen to open charms bar and click settings charm.

选择更改电脑设置

选择常规

向下滚动,然后单击立即重新启动下的高级启动。

Scroll down, and click ‘Restart now’ under ‘Advanced startup’.

点击故障排除。 点击高级选项 点击Windows启动设置 单击重新启动。

Click ‘Troubleshoot’. Click ‘Advanced Options’ Click ‘Windows Startup Settings’ Click Restart.

运行CMD  然后键入:

run cmd and type:

shutdown -o -r -t 0

然后重新启动后,从列表中选择禁用强制驱动程序签名。重新启动之前安装的驱动程序。

then after restarting choose ‘Disable driver signature enforcement‘ from the list . install your driver before restarting.

永久:

preSS窗口+ Q

press Window+Q

搜索CMD

右键单击cmd

选择以管理员身份运行,从操作栏

choose run as administrator from action bar

在cmd中输入:

bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON

3修改亚行:

3- modify adb:

在亚洲开发银行的一个错误使它无法连接到一些设备供应商。添加USB厂商ID给它,并重新编译。修改后的广告可供选择: <一href="http://www.slatedroid.com/topic/37692-adb-drivers-problem/">http://www.slatedroid.com/topic/37692-adb-drivers-problem/

a bug in adb make it doesn’t connect to some device vendors. add usb vendor id to it and recompile. modified ad are available: http://www.slatedroid.com/topic/37692-adb-drivers-problem/

解决方法:

在命令行:

echo 0x2207 >> "%USERPROFILE%\.android\adb_usb.ini"

这增加了供应商ID到一个名为adb_usb.ini在用户文件的文件

this adds the vendor id to a file named adb_usb.ini in the user files

,其中2207是在本实施例的USB供应商ID

where 2207 is the usb vendor id in this example

最后,你可以测试安装方式:

At last you can test installation by :

adb kill-server
adb start-server
adb devices

和启用调试选项,开发人员在Android设备

and enabling debugging in developer options on android device

这应该重新启动亚行Server和清单的设备。如果驱动程序工作正常,该设备应该被列出。

This should restart ADB Server and list devices. If driver is working ok, the device should be listed.

这篇关于谷歌Android的USB驱动程序和亚洲开发银行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆