From 73438a6ff3fe5758e927c05d389d0e9587dcbb50 Mon Sep 17 00:00:00 2001 From: Clément Decoodt Date: Tue, 25 Jul 2023 15:12:32 +0200 Subject: Add support for incoherent iBoot parameters Some firmwares to load during iBoot stage 1 can have both: - isLoadedByiBoot = false - isLoadedByiBootStage1 = true This allows to load it at stage 1 --- src/dfu.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/dfu.c') diff --git a/src/dfu.c b/src/dfu.c index cb4d2b3..0c3c480 100644 --- a/src/dfu.c +++ b/src/dfu.c @@ -349,11 +349,13 @@ int dfu_send_iboot_stage1_components(struct idevicerestore_client_t* client, pli uint8_t b = 0; plist_get_bool_val(iboot_node, &b); if (b) { - debug("DEBUG: %s is loaded by iBoot Stage 1.\n", key); - if (dfu_send_component_and_command(client, build_identity, key, "firmware") < 0) { - error("ERROR: Unable to send component '%s' to device.\n", key); - err++; - } + debug("DEBUG: %s is loaded by iBoot Stage 1 and iBoot.\n", key); + } else { + debug("DEBUG: %s is loaded by iBoot Stage 1 but not iBoot...\n", key); + } + if (dfu_send_component_and_command(client, build_identity, key, "firmware") < 0) { + error("ERROR: Unable to send component '%s' to device.\n", key); + err++; } } free(key); -- cgit v1.1-32-gdbae