From 52f8db759040a1ee1d6ffbb694b50b646c9c41e2 Mon Sep 17 00:00:00 2001 From: Benjamin BOURGEAIS Date: Thu, 6 May 2021 17:37:01 +0200 Subject: recovery: Update restore boot args to match Apple Configurator 2 --- src/recovery.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/recovery.c b/src/recovery.c index db489b2..13d273d 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -149,6 +149,8 @@ int recovery_set_autoboot(struct idevicerestore_client_t* client, int enable) { int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build_identity) { if (client->build_major >= 8) { client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress"); + } else if (client->build_major >= 20) { + client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress -restore"); } /* upload data to make device boot restore mode */ -- cgit v1.1-32-gdbae