From 9d28108baff00cc52570ed820c4cfad0706a54f2 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 23 Sep 2013 16:03:01 +0200 Subject: ipsw: Add a temporary workaround to support iOS 7 firmware lookups It appears that iTunes does no longer parse the version XML structure as currently implemented in idevicerestore. We'll need to modify the lookup for the latest firmware in the future, this will do for a while. --- src/ipsw.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ipsw.c') diff --git a/src/ipsw.c b/src/ipsw.c index 8bb5512..2965100 100644 --- a/src/ipsw.c +++ b/src/ipsw.c @@ -336,6 +336,11 @@ int ipsw_get_latest_fw(plist_t version_data, const char* product, char** fwurl, return -1; } + if (major == 11) { + /* FIXME workaround as with the iOS 7 release, Apple broke their own XML structure and logic */ + major = 12; + } + char majstr[32]; // should be enough for a uint64_t value sprintf(majstr, FMT_qu, (long long unsigned int)major); n1 = plist_access_path(version_data, 7, "MobileDeviceSoftwareVersionsByVersion", majstr, "MobileDeviceSoftwareVersions", product, "Unknown", "Universal", "Restore"); -- cgit v1.1-32-gdbae