summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-09-21 13:53:44 +0200
committerGravatar Martin Szulecki2012-11-07 22:25:05 +0100
commit448c022bf009a42f63783ca0f4310fd143118f11 (patch)
tree3627c781deac76942470ddce0d648a3857cac548 /src
parent66c76d59062ca23146aceb1d5093f8a135526637 (diff)
downloadidevicerestore-448c022bf009a42f63783ca0f4310fd143118f11.tar.gz
idevicerestore-448c022bf009a42f63783ca0f4310fd143118f11.tar.bz2
Added support for iPhone5,1 and iPhone5,2 (including baseband update)
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 }
};