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

Example of rebooting to OR from recovery? #64

Open
WHots opened this issue Jun 1, 2020 · 2 comments
Open

Example of rebooting to OR from recovery? #64

WHots opened this issue Jun 1, 2020 · 2 comments

Comments

@WHots
Copy link

WHots commented Jun 1, 2020

So basically my device is in Recovery 0x1281 and i want to be able to exit recovery.
irecv_init();
irecv_client_t client;

irecv_open_with_ecid(&client, (unsigned long long)0xMYECID);
irecv_reboot(client);

at irecv_reboot(client); i'm getting an Access Violation. Not really sure what happens, cause sometimes the phone will reboot during this "break", but right back into recovery lol.

Any examples would be much love!
I

@nikias
Copy link
Member

nikias commented Jun 1, 2020

Well the irecovery tool can do it:
https://github.com/libimobiledevice/libirecovery/blob/master/tools/irecovery.c#L543-L562

Can you run it in gdb/lldb and get a backtrace when it crashes?

@WHots
Copy link
Author

WHots commented Jun 1, 2020

The error i'm getting is
Exception thrown at 0x78FC1B21 (irecovery.dll) in myprogram.exe: 0xC0000005: Access violation reading location 0xCCCCCD24.

both irecv_send_command(client, (const char*)"reboot") and irecv_reboot(client) gives this.

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