Skip to content

Update android_winusb.inf , add compatible ID#23

Open
alongL wants to merge 4 commits intokoush:masterfrom
alongL:master
Open

Update android_winusb.inf , add compatible ID#23
alongL wants to merge 4 commits intokoush:masterfrom
alongL:master

Conversation

@alongL
Copy link
Copy Markdown

@alongL alongL commented Jul 10, 2014

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

You can get some information from http://msdn.microsoft.com/en-us/library/windows/hardware/ff728853(v=vs.85).aspx

The adb interface is always defined as USB\Class_FF&SubClass_42&Prot_01 in adb.h as follow:

define ADB_CLASS 0xff

define ADB_SUBCLASS 0x42

define ADB_PROTOCOL 0x1

see https://github.com/jcs/adb/blob/master/adb.h#L436

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

You can get some information from http://msdn.microsoft.com/en-us/library/windows/hardware/ff553356(v=vs.85).aspx

The adb interface is always defined as USB\Class_FF&SubClass_42&Prot_01 in adb.h as follow:
#define ADB_CLASS              0xff
#define ADB_SUBCLASS           0x42
#define ADB_PROTOCOL           0x1

see https://github.com/jcs/adb/blob/master/adb.h#L436
@koush
Copy link
Copy Markdown
Owner

koush commented Jul 10, 2014

Oh, is this a catch all then?

@alongL
Copy link
Copy Markdown
Author

alongL commented Jul 11, 2014

Yes, if we just keep this in .inf file, windows can also use the driver when you plug in an Adb device.
But all the device descriptor shown in device manager will be the same as "CompositeAdbInterface".
The adb driver is "common driver" like the usb storage.

@alongL
Copy link
Copy Markdown
Author

alongL commented Jul 12, 2014

I found there is a bug if you add these two lines in .inf file. info2cat will report some error.
I don't know how to solve this problem.But I think this won't be too hard to handle.

@alongL
Copy link
Copy Markdown
Author

alongL commented Jul 12, 2014

Please look at this universal driver , it has only these two lines in the .inf files and is signed.
http://cdnpic.mgyun.com/files/wdj_drivers/mgyun_driver_32_1.zip
This software can generate .cat file from .inf file with compatible IDs. http://www.trustasia.com/solutions/signtools
You should add a certificate at first.
I don't know how they implement it.

@BENALI31
Copy link
Copy Markdown

it works very well thank you

@SZRabinowitz
Copy link
Copy Markdown

@koush if you are still interested I figured out a very easy way to generate the cat and sign/install the driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants