From aa4e3ff482972521213ad7505fea8a4627e22804 Mon Sep 17 00:00:00 2001 From: BALATON Zoltan Date: Wed, 22 Oct 2014 22:51:21 +0200 Subject: tss: Add missing values to fix baseband TSS request --- src/restore.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/restore.c b/src/restore.c index 6418497..3d70017 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1451,6 +1451,15 @@ int restore_send_baseband_data(restored_client_t restore, struct idevicerestore_ tss_request_add_common_tags(request, parameters, NULL); tss_request_add_baseband_tags(request, parameters, NULL); + plist_t node = plist_access_path(build_identity, 2, "Info", "FDRSupport"); + if (node && plist_get_node_type(node) == PLIST_BOOLEAN) { + uint8_t b = 0; + plist_get_bool_val(node, &b); + if (b) { + plist_dict_set_item(request, "ApProductionMode", plist_new_bool(1)); + plist_dict_set_item(request, "ApSecurityMode", plist_new_bool(1)); + } + } if (idevicerestore_debug) debug_plist(request); -- cgit v1.1-32-gdbae