diff options
author | Benjamin BOURGEAIS | 2021-06-07 18:47:51 +0200 |
---|---|---|
committer | Benjamin BOURGEAIS | 2021-06-07 18:47:51 +0200 |
commit | 5cdf0a64c51e0c9f1d784bf17ed74d8311dc423d (patch) | |
tree | f13909f017f07b25cbc4b7aa9fcf002867527089 | |
parent | d2fc0a88fa1219c71247afadf54da2a214521226 (diff) | |
download | idevicerestore-5cdf0a64c51e0c9f1d784bf17ed74d8311dc423d.tar.gz idevicerestore-5cdf0a64c51e0c9f1d784bf17ed74d8311dc423d.tar.bz2 |
tss: fix restore rules not applied for recoveryos
-rw-r--r-- | src/idevicerestore.c | 3 | ||||
-rw-r--r-- | src/tss.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index b0a89a3..2f2b643 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -2392,6 +2392,9 @@ int get_recoveryos_root_ticket_tss_response(struct idevicerestore_client_t* clie /* ApSecurityMode */ if (client->image4supported) { plist_dict_set_item(parameters, "ApSecurityMode", plist_new_bool(1)); + plist_dict_set_item(parameters, "ApSupportsImg4", plist_new_bool(1)); + } else { + plist_dict_set_item(parameters, "ApSupportsImg4", plist_new_bool(0)); } tss_parameters_add_from_manifest(parameters, build_identity); @@ -880,10 +880,6 @@ int tss_request_add_ap_recovery_tags(plist_t request, plist_t parameters, plist_ /* copy this entry */ plist_t tss_entry = plist_copy(manifest_entry); - // ac2 TSS recoveryOSRootTicket needs EPRO and ESEC to be true - plist_dict_set_item(tss_entry, "EPRO", plist_new_bool(1)); - plist_dict_set_item(tss_entry, "ESEC", plist_new_bool(1)); - /* remove obsolete Info node */ plist_dict_remove_item(tss_entry, "Info"); |