summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-02-05 17:34:53 +0100
committerGravatar Martin Szulecki2012-02-05 17:34:53 +0100
commitab833564d5557db4e73f888a70edf436b974da3f (patch)
tree37cb6282057ecc805e552fe634fb757404742193 /src
parent4aa787d322720b613a28ac1d7b1434fb3c3963fa (diff)
downloadidevicerestore-ab833564d5557db4e73f888a70edf436b974da3f.tar.gz
idevicerestore-ab833564d5557db4e73f888a70edf436b974da3f.tar.bz2
Add basic code to detect and process iPhone 4S devices
Diffstat (limited to 'src')
-rw-r--r--src/common.h4
-rw-r--r--src/idevicerestore.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index d710e69..793ba05 100644
--- a/src/common.h
+++ b/src/common.h
@@ -47,6 +47,7 @@ extern "C" {
#define CPID_IPAD21 8940
#define CPID_IPAD22 8940
#define CPID_IPAD23 8940
+#define CPID_IPHONE4S 8940
#define BDID_UNKNOWN -1
#define BDID_IPHONE2G 0
@@ -63,6 +64,7 @@ extern "C" {
#define BDID_IPAD21 4
#define BDID_IPAD22 6
#define BDID_IPAD23 2
+#define BDID_IPHONE4S 8
#define DEVICE_UNKNOWN -1
#define DEVICE_IPHONE2G 0
@@ -79,6 +81,7 @@ extern "C" {
#define DEVICE_IPAD21 11
#define DEVICE_IPAD22 12
#define DEVICE_IPAD23 13
+#define DEVICE_IPHONE4S 14
#define MODE_UNKNOWN -1
#define MODE_DFU 0
@@ -167,6 +170,7 @@ static struct idevicerestore_device_t idevicerestore_devices[] = {
{ 11, "iPad2,1", "K93AP", 4, 8940 },
{ 12, "iPad2,2", "K94AP", 6, 8940 },
{ 13, "iPad2,3", "K95AP", 2, 8940 },
+ { 14, "iPhone4,1", "N94AP", 8, 8940 },
{ -1, NULL, NULL, -1, -1 }
};
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 3b67175..23e49f5 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -740,6 +740,10 @@ int check_device(struct idevicerestore_client_t* client) {
device = DEVICE_IPAD23;
break;
+ case BDID_IPHONE4S:
+ device = DEVICE_IPHONE4S;
+ break;
+
default:
device = DEVICE_UNKNOWN;
break;