UTM icon indicating copy to clipboard operation
UTM copied to clipboard

LibUSB port for iOS IOKit

Open bao3 opened this issue 6 years ago • 21 comments

I tried UTM ,it’s great . My iPad Pro was jailbroken already , so whether would UTM to support usb type-c ? That would be wonderful.

bao3 avatar Feb 23 '20 10:02 bao3

No, such support is not planned because there's no libusb on iOS even if jailbroken.

osy avatar Feb 24 '20 06:02 osy

Whichever developers wants to add usb support for UTM. Can do it using ported iOS libusb https://github.com/Brandon-T/iOUSB/tree/master/libusb.

professorUnknown avatar Apr 08 '20 19:04 professorUnknown

I’ll reopen this as it seems possible to port for jailbroken devices.

osy avatar Apr 08 '20 19:04 osy

Thank you for reopening it osy

professorUnknown avatar Apr 08 '20 19:04 professorUnknown

@osy86 Thank you for taged it as enhancement.

bao3 avatar Apr 09 '20 02:04 bao3

I managed to get the dylib for libusb already complied for IOS here is the download link https://mega.nz/file/FPJVDIJY#pRh_U3JxAQ1Wqk4_CnvalwPuCtzT1e1OEfgjB8tXya4

professorUnknown avatar Apr 27 '20 23:04 professorUnknown

Also a easier to implement, non jailbreak alternative to libusb, would be dark lightning https://github.com/jamiebishop/DarkLightning it is a swift library, that lets you transmit at 480MBit using usb, but the only caveat is you could only transmit data to macOS.

professorUnknown avatar Apr 28 '20 20:04 professorUnknown

There is a new sandbox escape exploit that works on 13.4.1 this may work for libusb

professorUnknown avatar May 01 '20 21:05 professorUnknown

The sandbox escape has no relevance here.

osy avatar May 01 '20 21:05 osy

Maybe it does since I opened a issue with the developer that ported libusb to IOS and he got his app that runs on libusb to work using the sandbox escape as you can see here https://github.com/Brandon-T/iOUSB/issues/4

professorUnknown avatar May 06 '20 00:05 professorUnknown

Whichever developers wants to add usb support for UTM. Can do it using ported iOS libusb https://github.com/Brandon-T/iOUSB/tree/master/libusb.

You say that but it hasn't been updated since 2018, so I doubt it supports ios 13, or probably even 12, as it was updated in june.

There have to be people working on this out there, but I don't think this would be possible without a hardcore dev thats willing to rewrite libusb. I don't think osy is willing to do that, and I'd rather he works on UTM first.

Edit: darkLightning could work, but again, it will need osy to work on it, or have some help from a hardcore dev

SarKaa avatar Jun 29 '20 12:06 SarKaa

I am just saying you can try.

professorUnknown avatar Jun 29 '20 12:06 professorUnknown

I would love it if someone tried too, but its harder than it looks

SarKaa avatar Jun 29 '20 12:06 SarKaa

That’s true

professorUnknown avatar Jun 29 '20 12:06 professorUnknown

I wonder if UTM can use USB in macOS. (especially M1 devices)

obbcth avatar Nov 22 '20 07:11 obbcth

What is needed on a jailbroken iPad to enable USB pass through? This guide isn't listed anywhere

ap46281 avatar May 26 '22 17:05 ap46281

You need to be on iOS 14 or higher. Then you press the usb button on the toolbar.

osy avatar May 26 '22 17:05 osy

What version UTM? I'm on newest and don't have this on my toolbar.

ap46281 avatar May 27 '22 20:05 ap46281

If you’re jailbroken, running iOS 14 or higher, and have UTM (not SE) v2.0 or higher it should show up. If it doesn’t then you don’t meet the requirements.

osy avatar May 27 '22 20:05 osy

Maybe now with the new DriverKit for iPad OS 16 it will be possible to have it ?

eladshu avatar Jun 08 '22 18:06 eladshu