Skip to content

Commit 02eb941

Browse files
kamatam9nikias
authored andcommitted
recovery: set bRequest to 1 when sending bootx command
In macOS 13 beta 8 or newer release, bootx seems to fail if bRequest is 0 in the control transfer setup. Then, the device fails to enter restore mode. Seems like something has changed in iBEC since beta 8 and Apple Configurator 2 has set it to 1, so do the same thing. While this could be applied for all *OS variants, it's limited to macOS for now just to be safe. Signed-off-by: Munehisa Kamata <kamatam@amazon.com>
1 parent a4f5a0c commit 02eb941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ int recovery_send_kernelcache(struct idevicerestore_client_t* client, plist_t bu
498498
recovery_error = irecv_send_command(client->recovery->client, setba);
499499
}
500500

501-
recovery_error = irecv_send_command(client->recovery->client, "bootx");
501+
recovery_error = irecv_send_command_breq(client->recovery->client, "bootx", client->macos_variant ? 1 : 0);
502502
if (recovery_error != IRECV_E_SUCCESS) {
503503
error("ERROR: Unable to execute %s\n", component);
504504
return -1;

0 commit comments

Comments
 (0)