summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
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/idevicerestore.c
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/idevicerestore.c')
-rw-r--r--src/idevicerestore.c18
1 files changed, 18 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;