From 85a62da6ab6f0181d746ea6d83cbd07aec3a7937 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 20 Sep 2012 22:06:13 +0200 Subject: idevicerestore: Send ApTicket if applicable before iBEC --- src/idevicerestore.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 3ed0f7e..0749fe0 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -741,6 +741,13 @@ int idevicerestore_start(struct idevicerestore_client_t* client) if (client->mode->index == MODE_DFU) { client->mode = &idevicerestore_modes[MODE_RECOVERY]; } else { + if ((client->build_major > 8) && !(client->flags & FLAG_CUSTOM)) { + /* send ApTicket */ + if (recovery_send_ticket(client) < 0) { + error("WARNING: Unable to send APTicket\n"); + } + } + /* now we load the iBEC */ if (recovery_send_ibec(client, build_identity) < 0) { error("ERROR: Unable to send iBEC\n"); -- cgit v1.1-32-gdbae