libimobiledevice / libirecovery

Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux
https://libimobiledevice.org
GNU Lesser General Public License v2.1
550 stars 207 forks source link

Add the option to choose the b_request usb param when sending commands #82

Closed sywesk closed 3 years ago

sywesk commented 3 years ago

Hello !

This pull request goes hand in hand with the new one that i'm going to open on idevicerestore.

While reverse engineering the protocol (for educational purposes), i discovered that commands were sent using a b_req of 1. This PR adds the ability to supply a value for it if needed.

nikias commented 3 years ago

Merged with commit 47934949e0015165a4562b08e824adb3f664c0ea.