diff options
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; |