Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yinyajiang opened this issue Aug 5, 2024 · 3 comments
Open

Comments

@yinyajiang
Copy link
Contributor

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
Copy link
Owner

doronz88 commented Aug 5, 2024

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

@doronz88 doronz88 closed this as completed Aug 5, 2024
@yinyajiang
Copy link
Contributor Author

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
Copy link
Owner

doronz88 commented Aug 5, 2024

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

@doronz88 doronz88 reopened this Aug 5, 2024
@doronz88 doronz88 changed the title FEATURE REQUEST: Wish the restore service on windows didn't depend on libusb FEATURE REQUEST: Use setupapi when using restore subcommands on windows Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants