summaryrefslogtreecommitdiffstats
path: root/src/libirecovery.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-02-05 18:36:52 +0100
committerGravatar Martin Szulecki2012-02-05 18:36:52 +0100
commit1f08d426ac7c845c58d65d45e03bcae9b6dd63bf (patch)
tree1f230727ebfa1afbfef1b575e64a11cca2c84d14 /src/libirecovery.c
parentb6f8f0324e3bec1e0dd959a2c41b6a3386aa7d3c (diff)
downloadidevicerestore-1f08d426ac7c845c58d65d45e03bcae9b6dd63bf.tar.gz
idevicerestore-1f08d426ac7c845c58d65d45e03bcae9b6dd63bf.tar.bz2
libirecovery: Add detection for A5 devices and remove obsolete firmware urls
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r--src/libirecovery.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index d5f3767..45efa85 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1289,6 +1289,35 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) {
}
break;
+ case CPID_IPAD21:
+ // All the A5 devices are the same too...
+ if (irecv_get_bdid(client, &bdid) < 0) {
+ break;
+ }
+
+ switch (bdid) {
+ case BDID_IPAD21:
+ device_id = DEVICE_IPAD21;
+ break;
+
+ case BDID_IPAD22:
+ device_id = DEVICE_IPAD22;
+ break;
+
+ case BDID_IPAD23:
+ device_id = DEVICE_IPAD23;
+ break;
+
+ case BDID_IPHONE4S:
+ device_id = DEVICE_IPHONE4S;
+ break;
+
+ default:
+ device_id = DEVICE_UNKNOWN;
+ break;
+ }
+ break;
+
default:
device_id = DEVICE_UNKNOWN;
break;