summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-10-11 12:46:12 +0200
committerGravatar Nikias Bassen2022-10-11 12:46:12 +0200
commitf6950c2461b28333bcef84a98f2132e93b216faf (patch)
treebb0daffb23f8dc5d5c49bc2ac7ca94ae75ab4242 /src
parent961077074cf4f113d685ce19f3e0b18d343a74d6 (diff)
downloadidevicerestore-f6950c2461b28333bcef84a98f2132e93b216faf.tar.gz
idevicerestore-f6950c2461b28333bcef84a98f2132e93b216faf.tar.bz2
recovery: Also send "go" and "reset" commands with bRequest set to 1
Diffstat (limited to 'src')
-rw-r--r--src/recovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 59cce62..a9d6b61 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -344,7 +344,7 @@ int recovery_send_ibec(struct idevicerestore_client_t* client, plist_t build_ide
return -1;
}
- recovery_error = irecv_send_command(client->recovery->client, "go");
+ recovery_error = irecv_send_command_breq(client->recovery->client, "go", 1);
if (recovery_error != IRECV_E_SUCCESS) {
error("ERROR: Unable to execute %s\n", component);
return -1;
@@ -575,7 +575,7 @@ int recovery_get_sep_nonce(struct idevicerestore_client_t* client, unsigned char
int recovery_send_reset(struct idevicerestore_client_t* client)
{
- irecv_send_command(client->recovery->client, "reset");
+ irecv_send_command_breq(client->recovery->client, "reset", 1);
return 0;
}