kernel-extension

Getting OSSystemExtensionErrorCodeSignatureInvalid After Codeless DEXT is Activated

社会主义新天地 提交于 2021-01-29 08:40:58
问题 I built a codeless DEXT to replace a working codeless KEXT - Migrating a codeless KEXT to a codeless DEXT. I referenced a few sites and GitHub repositories to put it together and had help from other SO users. I am running with SIP turned off, developer mode is on (systemextensionsctl developer on). I am following the advice outlined here https://github.com/knightsc/USBApp/issues/1 for signing the app and dext. When I run the app it is embedded in and request activation for the extension, that

Migrating from codeless KEXT to DEXT. Usb interfaces disappeared

杀马特。学长 韩版系。学妹 提交于 2020-08-19 10:38:29
问题 I'm trying to migrate from KEXT to DEXT. My USB device should not be matched by the classic driver (in the other case, it does not allow to open the device and interface). I am using a sample USB application for testing. So, before installing the system extension, I was able to see 1 device and 3 interfaces. However, when I install the system extension (next), I can not find any interfaces. They seem to be lost. To search for interfaces I use the command “ioreg -lirc IOUSBHostInterface”. Any

Performance issue after migrating from codeless KEXT to DEXT

混江龙づ霸主 提交于 2020-08-08 06:08:32
问题 I am working on migrating a codeless KEXT to DriverKit. It is used to disable the IOKit HID driver for USB devices that present themselves as HID compliant in firmware upgrade mode. So far I have managed to match an empty subclass of IOService to the relevant devices. Here's an example of the IOKitPersonalities entries I'm using: <dict> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleIdentifierKernel</key> <string>com.apple.kpi.iokit</string> <key

Performance issue after migrating from codeless KEXT to DEXT

无人久伴 提交于 2020-08-08 06:08:11
问题 I am working on migrating a codeless KEXT to DriverKit. It is used to disable the IOKit HID driver for USB devices that present themselves as HID compliant in firmware upgrade mode. So far I have managed to match an empty subclass of IOService to the relevant devices. Here's an example of the IOKitPersonalities entries I'm using: <dict> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleIdentifierKernel</key> <string>com.apple.kpi.iokit</string> <key

Migrating a codeless KEXT to a codeless DEXT

那年仲夏 提交于 2020-08-05 13:11:14
问题 I am migrating a codeless KEXT to a codeless DEXT. I have watched the WWDC video and read much of the information on the Apple Developer site. The difficulty I am having is finding not what to do but how to get started. A nice tutorial with an example project would help. In my codeless KEXT, for 4 separate devices I have IOKitPersonalities for IOUSBDevice and IOUSBInterface for each device. The KEXT allowed me to match my devices to my "driver" so the Apple HID driver wouldn't grab them. I

Migrating a codeless KEXT to a codeless DEXT

一个人想着一个人 提交于 2020-08-05 13:08:09
问题 I am migrating a codeless KEXT to a codeless DEXT. I have watched the WWDC video and read much of the information on the Apple Developer site. The difficulty I am having is finding not what to do but how to get started. A nice tutorial with an example project would help. In my codeless KEXT, for 4 separate devices I have IOKitPersonalities for IOUSBDevice and IOUSBInterface for each device. The KEXT allowed me to match my devices to my "driver" so the Apple HID driver wouldn't grab them. I

Creating virtual USB device in Mac OS X

北慕城南 提交于 2020-08-02 05:05:55
问题 I tried to add virtual usb device with driver in Mac OS programmatically. IOKit documentations says: Traditionally, drivers of virtual devices match on IOResources because virtual devices do not publish nubs of their own. Another example of such a driver is the HelloIOKit KEXT (described in “Creating a Device Driver with Xcode”) which matches on IOResources because it does not control any hardware. But I don't found way to add virtual device in system. How can I do that? 回答1: What are you

What is /Library/StagedExtensions for and how to remove extensions

时光毁灭记忆、已成空白 提交于 2020-05-24 20:26:16
问题 I'm trying to uninstall Parallels completely from macOS High Sierra. I removed everything from the disk except some Parallels extensions that are stored under /Library/StagedExtensions/Parallel Desktop.app I think the location has to do with user approved extensions, but I'd like to find a way to remove/uninstall those too. If I try to delete the extensions it says operation not permitted despite the root rights. Any idea? 回答1: There is new way to clear the StageExtensions folder as following