How does VirtualHere create virtual USB devices on macOS?
Asked Answered
W

1

9

How is VirtualHere able to virtualize USB devices on macOS without requiring the user to install kernel extensions?

As far as I am aware, there's no documented way to virtualize USB devices on macOS.

The USB/IP project, for example, only supports clients on Windows and Linux.

I understand this is proprietary software but it must be using some technique available to userspace?

Thanks

Wigwam answered 23/1, 2022 at 16:25 Comment(0)
D
7

Really interesting.

Seems they are using the IOUSBHost.framework, which is at most undocumented.

Using it requires getting custom entitlement from Apple: com.apple.usb.hostcontrollerinterface, which could possibly take a lot of time.

There are some traces that it could be used to create virtual devices, but no details about it.

You could try to use tools like classdump to get some information directly from the framework, or read some headers on github.

It would be great if someone could share any information about it with community, as Apple seems to be very lazy about doing this.

Damick answered 23/1, 2022 at 23:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.