From a0cec3b34fb112168aaae9fbb024e15302563b34 Mon Sep 17 00:00:00 2001 From: H-Sofie Date: Sun, 14 Sep 2025 00:48:11 +0800 Subject: Fix boot-args string and handling The logging refactoring introduced a spelling error in the boot-args string. This commit fixes that, and also changes the boot-args handling code to priotize Apple Silicon/MacOS recovery path before the generic iOS path. --- src/recovery.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/recovery.c b/src/recovery.c index ccea423..4f7520a 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -125,11 +125,11 @@ 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=1rogress"); - } else if (client->macos_variant) { - client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress -restore"); - } + if (client->macos_variant) { + client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress -restore"); + } else if (client->build_major >= 8) { + client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress"); + } /* upload data to make device boot restore mode */ -- cgit v1.1-32-gdbae