I think you are over-specifying your matching dictionary. You want to use
only those criteria in Table 1 here:
https://developer.apple.com/library/mac/qa/qa1076/_index.html
and no more.

Stuart
>
>Message: 2
>Date: Fri, 18 Mar 2016 18:29:03 +0000 (GMT)
>From: David Gatwood <[email protected]>
>To: [email protected]
>Subject: Codeless kexts and disabling USB Mass Storage
>Message-ID: <[email protected]>
>Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>I'm trying to get a codeless kext to prevent the USB Mass Storage stack
>from attaching to a device, and for some reason, it isn't having any
>effect.  To the best of my understanding:
>
>  * CFBundleIdentifier should be set to something that will match
>passively without loading code, e.g. com.apple.kpi.iokit
>  * IOProviderClass should be IOUSBInterface because I'm matching to a
>single interface on a device that has several.
>
>  * For maximum match score, I'm matching against idProduct, idVendor,
>bcdDevice, bInterfaceClass, and bInterfaceNumber.
>
>Despite this, the USB Mass Storage driver is still matching the device.
>I've pasted my info.plist and an abbreviated copy of the device tree
>entry for the device in question.
>
>Any idea what could be going wrong here?
>
>
>David
>
> <key>IOKitPersonalities</key>
> <dict>
>     <key>SampleUSBFTDIDevice</key>
>     <dict>
>         <key>CFBundleIdentifier</key>
>         <string>com.apple.kpi.iokit</string>
>         <key>IOClass</key>
>         <string>IOService</string>
>         <key>IOProviderClass</key>
>         <string>IOUSBInterface</string>
>         <key>bInterfaceClass</key>
>         <integer>8</integer>
>         <key>bInterfaceNumber</key>
>         <integer>2</integer>
>         <key>bcdDevice</key>
>         <integer>0</integer>
>         <key>idProduct</key>
>         <integer>130</integer>
>         <key>idVendor</key>
>         <integer>8236</integer>
>     </dict>
> </dict>
>
>    | | | |   +-o Transformer Composite Device@14100000  <class
>IOUSBDevice, id 0x100000542, registered, matched, active, busy 0 (6989
>ms), retain 13>
>    | | | |     | {
>...
>    | | | |     | }
>    | | | |     | 
>...
>    | | | |     +-o IOUSBInterface@2  <class IOUSBInterface, id
>0x100000549, registered, matched, active, busy 0 (6646 ms), retain 7>
>    | | | |     |   {
>    | | | |     |     "IOCFPlugInTypes" =
>{"2d9786c6-9ef3-11d4-ad51-000a27052861"="IOUSBFamily.kext/Contents/PlugIns
>/IOUSBLib.bundle"}
>    | | | |     |     "IOUSBMassStorageClass Detached" = 6
>    | | | |     |     "bcdDevice" = 0
>    | | | |     |     "IOUserClientClass" = "IOUSBInterfaceUserClientV3"
>    | | | |     |     "idProduct" = 130
>    | | | |     |     "bConfigurationValue" = 1
>    | | | |     |     "bInterfaceSubClass" = 6
>    | | | |     |     "locationID" = 336592896
>    | | | |     |     "idVendor" = 8236
>    | | | |     |     "iInterface" = 0
>    | | | |     |     "bAlternateSetting" = 0
>    | | | |     |     "bInterfaceProtocol" = 80
>    | | | |     |     "bInterfaceNumber" = 2
>    | | | |     |     "bInterfaceClass" = 8
>    | | | |     |     "bNumEndpoints" = 2
>    | | | |     |   }
>
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: 
><https://lists.apple.com/mailman/private/usb/attachments/20160318/2d6cc504
>/attachment.html>
>
>------------------------------
>
>_______________________________________________
>Usb mailing list
>[email protected]
>https://lists.apple.com/mailman/listinfo/usb
>
>End of Usb Digest, Vol 13, Issue 12
>***********************************



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to