diff options
author | Benjamin BOURGEAIS | 2021-05-06 17:37:01 +0200 |
---|---|---|
committer | Benjamin BOURGEAIS | 2021-05-08 14:16:50 +0200 |
commit | 52f8db759040a1ee1d6ffbb694b50b646c9c41e2 (patch) | |
tree | 4c9c0c9d8e5ae2c54ff4d6101edd61c9eb0a9e0b | |
parent | cf05ffdbf6129b7bd223c102cfb2a0888ad2dcb2 (diff) | |
download | idevicerestore-52f8db759040a1ee1d6ffbb694b50b646c9c41e2.tar.gz idevicerestore-52f8db759040a1ee1d6ffbb694b50b646c9c41e2.tar.bz2 |
recovery: Update restore boot args to match Apple Configurator 2
-rw-r--r-- | src/recovery.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |