IOKitPersonalities for dext problem

Hi, sir

I am developing a dext for HID Device. The status is as follows

1. My demo app can use OSSystemExtensionRequest Api load and unload my dext (but codesign is incorrect).

2. I turned off SIP. And load my dext. I can see my dext in System report-> extension.

3. However, I feel that dext does not match my HID device.


The following are the parameters of IOKitPersonalities in my dext info.plist

Does anyone understand that the parameter is wrong?


IOKitPersonalities:

CFBundleIdentifierKernel ---> com.apple.iokit.IOHIDFamily

IOClass-> AppleUserHIDEventService

IOProviderClass-> IOHIDInterface

IOResourceMatch-> IOKit

IOUserClass-> TouchEventDextDriver (just my custom class name)

IOUserServerName-> com.apple.HIDTouchDriver(How to fill in the information here?)

PrimaryUsage-> 5

PrimaryUsagePage-> 13

ProductID-> PID of my HID device

VendorID-> VID of my HID device

IOUserServerName should have the bundle identifier that you use for your DEXT. If you are using a standard Xcode setup, you can put $(PRODUCT_BUNDLE_IDENTIFIER) to have it filled in during the build.


You can see an example here: https://github.com/knightsc/USBApp/blob/master/MyUserUSBInterfaceDriver/Info.plist

IOKitPersonalities for dext problem
 
 
Q