Closed Duy-Thanh closed 2 years ago
if you are using iPhone 11, try this patch:
diff --git a/src/restore.c b/src/restore.c
index 862bb75..8467938 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -292,27 +292,8 @@ irecv_device_t restore_get_irecv_device(struct idevicerestore_client_t* client)
node = NULL;
}
- restore_error = restored_get_value(restore, "HardwareModel", &node);
- restored_client_free(restore);
- idevice_free(device);
- if (restore_error != RESTORE_E_SUCCESS || !node || plist_get_node_type(node) != PLIST_STRING) {
- error("ERROR: Unable to get HardwareModel from restored\n");
- plist_free(node);
- return NULL;
- }
-
- plist_get_string_val(node, &model);
- fprintf(stderr, "%s: Found model %s\n", __func__, model);
-
- /* HACK: Replace DEV devices with AP equivalent devices
- * So that it can enjoy FDR-less restore
- */
- if (strstr(model, "DEV")) {
- strncpy(strstr(model, "DEV"), "AP\0", 3);
- }
- irecv_devices_get_device_by_hardware_model(model, &irecv_device);
- free(model);
+ irecv_devices_get_device_by_hardware_model("N104AP", &irecv_device);
return irecv_device;
}
It's totally a hack that will not work with any other model. YMMV. HTH.
@nstarke Thank you, I will try it right away and let you know the results
Okay, I fixed the bug, but I keep having new problems. I will create a new issue and set it as Closed
Hi, I'm getting an error while restoring my iPhone using idevicerestore cloned from your repository.
Specifically, I am using a Linux distribution in a virtual machine called Lubuntu 22.04.1, and have fully installed the dependencies
But when I do restore, this error appears on my Linux distro:
Contents of file
restore.sh
:idevicerestore -P --erase --restore-mode -i 0x1122334455667788 iPhone11,8,iPhone12,1_14.0_18A5351d_Restore.ipsw -T root_ticket.der
And here is the log of the iOS emulator:
In it, here is the log of the iOS simulator every time I run
irestoredevice
:I did exactly as instructed. So what's going on. Sorry for my poor English.
Please help. Thank you very much.