summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c18
-rw-r--r--src/restore.c3
2 files changed, 21 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 8ad6684..1bdd769 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1304,6 +1304,24 @@ int check_device(struct idevicerestore_client_t* client) {
}
break;
+ case CPID_IPHONE5:
+ if (get_bdid(client, &bdid) < 0) {
+ error("ERROR: Unable to get device BDID\n");
+ break;
+ }
+ switch (bdid) {
+ case BDID_IPHONE51:
+ device = DEVICE_IPHONE51;
+ break;
+ case BDID_IPHONE52:
+ device = DEVICE_IPHONE52;
+ break;
+ default:
+ device = DEVICE_UNKNOWN;
+ break;
+ }
+ break;
+
default:
device = DEVICE_UNKNOWN;
break;
diff --git a/src/restore.c b/src/restore.c
index c6b41cc..227918a 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -923,6 +923,9 @@ static const char* restore_get_bbfw_fn_for_element(const char* elem)
// Phoenix/Mav4 firmware files
{ "DBL", "dbl.mbn" },
{ "ENANDPRG", "ENPRG.mbn" },
+ // Mav5 firmware files
+ { "RestoreSBL1", "restoresbl1.mbn" },
+ { "SBL1", "sbl1.mbn" },
{ NULL, NULL }
};