diff options
author | BALATON Zoltan | 2014-10-22 22:51:21 +0200 |
---|---|---|
committer | BALATON Zoltan | 2014-11-03 21:38:49 +0100 |
commit | aa4e3ff482972521213ad7505fea8a4627e22804 (patch) | |
tree | 48a168549a5c2ce92f8e82a12ac5aa4610c66ecc /src | |
parent | 861f45c04185fac6dbbd2dea76f9e217b39003ff (diff) | |
download | idevicerestore-aa4e3ff482972521213ad7505fea8a4627e22804.tar.gz idevicerestore-aa4e3ff482972521213ad7505fea8a4627e22804.tar.bz2 |
tss: Add missing values to fix baseband TSS request
Diffstat (limited to 'src')
-rw-r--r-- | src/restore.c | 9 |
1 files changed, 9 insertions, 0 deletions
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); |