libimobiledevice / libimobiledevice

A cross-platform protocol library to communicate with iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
6.57k stars 1.32k forks source link

Exit recovery? #1018

Open iambenmitchell opened 4 years ago

iambenmitchell commented 4 years ago

Hi, I noticed you can make the device enter recovery mode with ideviceenterrecovery however, I cannot figure out how to make it exit recovery through command line.

Do you know how I would go about doing that?

Also, is it possible to send the device to DFU mode rather than recovery and also exit?

nikias commented 4 years ago

Use the irecovery tool from libirecovery (https://github.com/libimobiledevice/libirecovery) and then run

irecovery -n
iambenmitchell commented 4 years ago

Thank you, I'm on macOS though, are there any compiled releases? I've tried installing dependencies myself but I'm never successful

iambenmitchell commented 4 years ago

Never mind, figured out what I was doing wrong :)

iambenmitchell commented 4 years ago

Is entering DFU mode possible?

nikias commented 4 years ago

Not programmatically.

iambenmitchell commented 4 years ago

Okay thanks, I am trying to make a simple app which has a "enter recovery" and "exit recovery" button but I can't figure out how to embed irecovery inside the project and then run it

nikias commented 4 years ago

Not sure why you need an app for that but you should link against libimobiledevice and libirecovery and have your code call the appropriate API functions. But this is out of scope of this ticket. Check the code in ideviceenterrecovery and irecovery how it works.