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
564 stars 209 forks source link

M1 iRecovery Libraries Cutting Off End of sended File #118

Open usdtportal opened 1 year ago

usdtportal commented 1 year ago

Hi there,

I'm facing an issue that I can't seem to resolve on my own. I've developed an application using Xcode that utilizes irecovery libraries for sending files to Apple devices in pwndfu mode.

The problem specifically arises when working with M series CPU devices. When I run the application on these devices, it fails to send the complete file, cutting off 5889 lenght from the end of the file.

Here's a screenshot of the application running on an Intel T2 Mac, where it successfully sends the entire file: Screenshot Link

However, on M series CPU MacBooks, it sends everything except for this 5889-lenght segment of the file.

Does anyone have any suggestions on how I can resolve this issue? Currently, I'm using some irecovery dylib in conjunction with Objective-C files bridged to Swift code.

Any help or guidance would be greatly appreciated.

I would like to say that if I sent this file from irecovery binary then everything seems to working fine at M series as well.