diff options
author | Martin Szulecki | 2012-11-08 02:36:09 +0100 |
---|---|---|
committer | Martin Szulecki | 2012-11-08 02:36:09 +0100 |
commit | 1afbf0c4e6d46920c5ae5c882d4dfdbdb3a33030 (patch) | |
tree | 1234cafbdf7253dc2a8d17e92b86bf5758b1ba55 | |
parent | f68eaf7cb3c0c682699ff08ffdec33a0cc6fbb28 (diff) | |
download | idevicerestore-1afbf0c4e6d46920c5ae5c882d4dfdbdb3a33030.tar.gz idevicerestore-1afbf0c4e6d46920c5ae5c882d4dfdbdb3a33030.tar.bz2 |
Add basic support for iPad3,4 and iPad2,5 (untested)
-rw-r--r-- | src/idevicerestore.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 0678ac6..be7c252 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1262,6 +1262,12 @@ int check_device(struct idevicerestore_client_t* client) { case BDID_IPAD24: device = DEVICE_IPAD24; break; + case BDID_IPAD25: + device = DEVICE_IPAD25; + break; + case BDID_IPOD5G: + device_id = DEVICE_IPOD5G; + break; default: device = DEVICE_UNKNOWN; break; @@ -1308,6 +1314,21 @@ int check_device(struct idevicerestore_client_t* client) { } break; + case CPID_IPAD34: + if (get_bdid(client, &bdid) < 0) { + error("ERROR: Unable to get device BDID\n"); + break; + } + switch (bdid) { + case BDID_IPAD34: + device_id = DEVICE_IPAD34; + break; + default: + device_id = DEVICE_UNKNOWN; + break; + } + break; + default: device = DEVICE_UNKNOWN; break; |