From e4762be790b53dbd9ed679233584b8ee14d7c36f Mon Sep 17 00:00:00 2001 From: Nicolas Haunold Date: Wed, 9 Feb 2011 00:53:25 +0100 Subject: Verizon iPhone support --- include/libirecovery.h | 5 +++++ libirecovery.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/libirecovery.h b/include/libirecovery.h index 3220669..8f3208a 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h @@ -45,6 +45,7 @@ extern "C" { #define CPID_IPHONE4 8930 #define CPID_IPOD4G 8930 #define CPID_APPLETV2 8930 +#define CPID_IPHONE42 8930 #define BDID_UNKNOWN -1 #define BDID_IPHONE2G 0 @@ -57,6 +58,7 @@ extern "C" { #define BDID_IPHONE4 0 #define BDID_IPOD4G 8 #define BDID_APPLETV2 10 +#define BDID_IPHONE42 6 #define DEVICE_UNKNOWN -1 #define DEVICE_IPHONE2G 0 @@ -69,6 +71,7 @@ extern "C" { #define DEVICE_IPHONE4 7 #define DEVICE_IPOD4G 8 #define DEVICE_APPLETV2 9 +#define DEVICE_IPHONE42 10 enum { kRecoveryMode1 = 0x1280, @@ -171,6 +174,8 @@ static struct irecv_device irecv_devices[] = { "http://appldnld.apple.com/iPhone4/061-8490.20100901.hyjtR/iPod4,1_4.1_8B117_Restore.ipsw" }, { 9, "AppleTV2,1", "k66ap", 10, 8930, "http://appldnld.apple.com/AppleTV/061-8940.20100926.Tvtnz/AppleTV2,1_4.1_8M89_Restore.ipsw" }, + { 10, "iPhone3,3", "n92ap", 6, 8930, + "http://appldnld.apple.com/iPhone4/041-0177.20110131.Pyvrz/iPhone3,3_4.2.6_8E200_Restore.ipsw" }, { -1, NULL, NULL, -1, -1, NULL } }; diff --git a/libirecovery.c b/libirecovery.c index c186f41..a323386 100644 --- a/libirecovery.c +++ b/libirecovery.c @@ -1151,7 +1151,7 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { break; case CPID_IPAD1G: - // iPhone3,1 iPad4,1 and iPad1,1 all share the same ChipID + // iPhone3,1 iPhone3,3 iPad4,1 and iPad1,1 all share the same ChipID // so we need to check the BoardID if (irecv_get_bdid(client, &bdid) < 0) { break; @@ -1174,6 +1174,10 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { device_id = DEVICE_APPLETV2; break; + case BDID_IPHONE42: + device_id = DEVICE_IPHONE42; + break; + default: device_id = DEVICE_UNKNOWN; break; -- cgit v1.1-32-gdbae