diff options
author | Martin Szulecki | 2012-11-08 02:26:47 +0100 |
---|---|---|
committer | Martin Szulecki | 2012-11-08 02:26:47 +0100 |
commit | 364ce205e3428fbc6ccb73c6e94437c083d73406 (patch) | |
tree | 8016da79f0bb31afe499a4fe922ade6f92bbeff7 /src | |
parent | d9527466753ef6a15a89dfbacc26aaeccd2fdea3 (diff) | |
download | libirecovery-364ce205e3428fbc6ccb73c6e94437c083d73406.tar.gz libirecovery-364ce205e3428fbc6ccb73c6e94437c083d73406.tar.bz2 |
add support for iPad2,5 and iPad3,4
Diffstat (limited to 'src')
-rw-r--r-- | src/libirecovery.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index e8ce634..63072c6 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -1609,7 +1609,7 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { break; case CPID_APPLETV31: - // AppleTV 3rd gen. iPad2,4 and iPod5,1 share the same ChipID, so we need to check the BoardID + // AppleTV 3rd gen. iPad2,4, iPad 2,5 and iPod5,1 share the same ChipID, so we need to check the BoardID if (irecv_get_bdid(client, &bdid) < 0) { break; } @@ -1620,6 +1620,9 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { case BDID_IPAD24: device_id = DEVICE_IPAD24; break; + case BDID_IPAD25: + device_id = DEVICE_IPAD25; + break; case BDID_IPOD5G: device_id = DEVICE_IPOD5G; break; @@ -1646,6 +1649,20 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { } break; + case CPID_IPAD34: + if (irecv_get_bdid(client, &bdid) < 0) { + break; + } + switch (bdid) { + case BDID_IPAD34: + device_id = DEVICE_IPAD34; + break; + default: + device_id = DEVICE_UNKNOWN; + break; + } + break; + default: device_id = DEVICE_UNKNOWN; break; |