Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CDMA iPhone 4 support (exploit inject only)

  • Loading branch information...
commit 3143eb3eb0bfb156d1adb958d9d0cafaad7aa803 1 parent 1bf8f5b
msftguy authored
Showing with 12 additions and 4 deletions.
  1. +8 −4 include/libirecovery.h
  2. +4 −0 syringe/libirecovery.c
12 include/libirecovery.h
View
@@ -82,6 +82,7 @@ extern "C" {
#define BDID_IPOD3G 2
#define BDID_IPAD1G 2
#define BDID_IPHONE4 0
+#define BDID_IPHONE4_CDMA 6
#define BDID_IPOD4G 8
#define BDID_APPLETV2 10
@@ -94,8 +95,9 @@ extern "C" {
#define DEVICE_IPOD3G 5
#define DEVICE_IPAD1G 6
#define DEVICE_IPHONE4 7
-#define DEVICE_IPOD4G 8
-#define DEVICE_APPLETV2 9
+#define DEVICE_IPHONE4_CDMA 8
+#define DEVICE_IPOD4G 9
+#define DEVICE_APPLETV2 10
enum {
kRecoveryMode1 = 0x1280,
@@ -194,9 +196,11 @@ static const struct irecv_device irecv_devices[] = {
"http://appldnld.apple.com/iPad/061-8801.20100811.CvfR5/iPad1,1_3.2.2_7B500_Restore.ipsw" },
{ 7, "iPhone3,1", "n90ap", 0, 8930,
"http://appldnld.apple.com/iPhone4/061-7939.20100908.Lcyg3/iPhone3,1_4.1_8B117_Restore.ipsw" },
- { 8, "iPod4,1", "n81ap", 8, 8930,
+ { 8, "iPhone3,3", "n92ap", 6, 8930,
+ "" },
+ { 9, "iPod4,1", "n81ap", 8, 8930,
"http://appldnld.apple.com/iPhone4/061-8490.20100901.hyjtR/iPod4,1_4.1_8B117_Restore.ipsw" },
- { 9, "AppleTV2,1", "k66ap", 10, 8930,
+ { 10, "AppleTV2,1", "k66ap", 10, 8930,
"http://appldnld.apple.com/AppleTV/061-8940.20100926.Tvtnz/AppleTV2,1_4.1_8M89_Restore.ipsw" },
{ -1, NULL, NULL, -1, -1,
NULL }
4 syringe/libirecovery.c
View
@@ -1192,6 +1192,10 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) {
case BDID_IPHONE4:
device_id = DEVICE_IPHONE4;
break;
+
+ case BDID_IPHONE4_CDMA:
+ device_id = DEVICE_IPHONE4_CDMA;
+ break;
case BDID_IPOD4G:
device_id = DEVICE_IPOD4G;
Please sign in to comment.
Something went wrong with that request. Please try again.