diff options
author | Nikias Bassen | 2013-11-19 23:20:54 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-11-19 23:20:54 +0100 |
commit | b97925506da666f1e75a1bdb80fee37414758ad1 (patch) | |
tree | 1af6efa14b18a08411655ec14265ec96f41299d6 /src | |
parent | 85bd0230696f7f50dbc5ec15f1d00a047053e981 (diff) | |
download | idevicerestore-b97925506da666f1e75a1bdb80fee37414758ad1.tar.gz idevicerestore-b97925506da666f1e75a1bdb80fee37414758ad1.tar.bz2 |
tss: only add EPRO/ESEC if we are sending an Image4 request
Diffstat (limited to 'src')
-rw-r--r-- | src/tss.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -330,9 +330,10 @@ int tss_request_add_ap_tags_from_manifest(plist_t request, plist_t build_identit /* remove obsolete Info node */ plist_dict_remove_item(tss_entry, "Info"); - /* FIXME: If ApSupportsImg4 */ - plist_dict_insert_item(tss_entry, "EPRO", plist_new_bool(1)); - plist_dict_insert_item(tss_entry, "ESEC", plist_new_bool(1)); + if (plist_access_path(manifest_entry, 2, "Info", "RestoreRequestRules")) { + plist_dict_insert_item(tss_entry, "EPRO", plist_new_bool(1)); + plist_dict_insert_item(tss_entry, "ESEC", plist_new_bool(1)); + } plist_dict_insert_item(request, key, tss_entry); |