doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.46k stars 199 forks source link

FEATURE REQUEST: Use `setupapi` when using `restore` subcommands on windows #1150

Open yinyajiang opened 2 months ago

yinyajiang commented 2 months ago

Is your feature request related to a problem? Please describe. NO

Describe the solution you'd like Currently flashing firmware with resotre on windows requires libusb to be installed, should I be able to get away with not relying on it if I already have ituens device services installed? For example, idevicerestore.exe is fine, but pymobiledeviace3 still needs to install the libusb driver for the device again. The idevicerestore is working fine as long as the device service for itunes is installed, would it be possible for pymobiledeviace3 to do the same?

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

doronz88 commented 2 months ago

libusb is the backend for the USB communication. idevicerestore is statically linked with the same libusb. I don't see any other option

yinyajiang commented 2 months ago

libusb is the backend for the USB communication. idevicerestore is statically linked with the same libusb. I don't see any other option

I've roughly skimmed through it, and src/libirecovery.c uses setupapi instead of libusb in windows, so it works fine in windows without relying on libusb.

doronz88 commented 2 months ago

I'm not familiar with setupapi, but feel free to submit a PR