summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
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;