From 661efc8f3a724fdd38174f3a886fd3aeb26fde37 Mon Sep 17 00:00:00 2001 From: Luis Duran Date: Wed, 16 Jan 2019 04:56:22 +0100 Subject: restore: Add TZ0RequiredCapacity to restore options to fix iPhone8/8+ boot loop issue --- src/restore.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/restore.c b/src/restore.c index 5e5bcec..6652aa0 100644 --- a/src/restore.c +++ b/src/restore.c @@ -2479,6 +2479,20 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit } // FIXME: does this have any effect actually? plist_dict_set_item(opts, "UpdateBaseband", plist_new_bool(0)); + + plist_t sep = plist_access_path(build_identity, 3, "Manifest", "SEP", "Info"); + if (sep) { + node = plist_dict_get_item(sep, "RequiredCapacity"); + if (node && plist_get_node_type(node) == PLIST_STRING) { + char* sval = NULL; + plist_get_string_val(node, &sval); + debug("TZ0RequiredCapacity: %s\n", sval); + plist_dict_set_item(opts, "TZ0RequiredCapacity", plist_copy(node)); + free(sval); + sval = NULL; + } + } + // FIXME: not required for iOS 5? //plist_dict_set_item(opts, "UserLocale", plist_new_string("en_US")); -- cgit v1.1-32-gdbae