Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update android_winusb.inf , add compatible ID #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,22 @@ A single Windows driver that supports the ADB (and fastboot) interface for most


[Download Windows Installer](http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi)

本项目是从其他项目fork过来的,他的做法是把各种手机型号的 硬件ID写进.inf这样做会使 .inf非常庞大,并且并不能保证全面。
%Samsung% = USB_Install_17, USB\VID_04E8&PID_685E&REV_0400&MI_03
%Samsung% = USB_Install_17, USB\VID_04E8&PID_6866&REV_0228&MI_01


Adb 驱动本身就是通用的,不同的设备的区别在于 .inf 文件中的 VID 和PID 以及接口不同,如果你使用compatible ID 的话就可以把驱动变成通用驱动。
如下所示:

%CompositeAdbInterface% = USB_Install, USB\Class_FF&SubClass_42&Prot_01
%SingleAdbInterface% = USB_Install, USB\Class_FF&SubClass_42&Prot_03

这样做存在的不足是,在用inf2cat.exe 从inf生成cat的时候,会出错,但是有一个工具可以完成。
亚信数字签名:http://www.trustasia.com/solutions/signtools/
需要导入证书 并添加证书规则才可以使用。

生成证书参考:
http://www.cnblogs.com/bearhb/archive/2012/07/03/2574206.html

11 changes: 10 additions & 1 deletion usb_driver/android_winusb.inf
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,11 @@ HKR,,Icon,,-1
%ZteValet% = USB_Install, USB\VID_19D2&PID_0310&REV_0233&MI_01
%ZteValet% = USB_Install, USB\VID_19D2&PID_0310&MI_01

;If there is no suitable configuration up here, compatible ID is also useable
%CompositeAdbInterface% = USB_Install, USB\Class_FF&SubClass_42&Prot_01
%SingleAdbInterface% = USB_Install, USB\Class_FF&SubClass_42&Prot_03


[ClockworkMod.NTamd64]

;Nook
Expand Down Expand Up @@ -1727,6 +1732,10 @@ HKR,,Icon,,-1
%ZteValet% = USB_Install, USB\VID_19D2&PID_0310&REV_0233&MI_01
%ZteValet% = USB_Install, USB\VID_19D2&PID_0310&MI_01

;If there is no suitable configuration up here, compatible ID is also useable
%CompositeAdbInterface% = USB_Install, USB\Class_FF&SubClass_42&Prot_01
%SingleAdbInterface% = USB_Install, USB\Class_FF&SubClass_42&Prot_03


[USB_Install]
Include = winusb.inf
Expand Down Expand Up @@ -1895,4 +1904,4 @@ GoogleGlassBootLoaderInterface = "Google Glass Bootloader Interface
GoogleGlassADBInterface = "Google Glass ADB Interface"

;ZTE
ZTEValet = "ZTE Valet/Z665C ADB Interface"
ZTEValet = "ZTE Valet/Z665C ADB Interface"