diff options
author | Nikias Bassen | 2023-09-29 10:49:25 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-09-29 10:49:25 +0200 |
commit | cf22a1c0fa5994be2f02ed431461524499b06267 (patch) | |
tree | e1ec566ebdf6d307ef11483eb93e1003251c1b0a | |
parent | dbe7313260ddef6b2eb60b3772d1595bfd91f24c (diff) | |
download | idevicerestore-cf22a1c0fa5994be2f02ed431461524499b06267.tar.gz idevicerestore-cf22a1c0fa5994be2f02ed431461524499b06267.tar.bz2 |
tss: Add Ap,SikaFuse to TSS request as seen for iPhone 14/15 devices
This is currently implemented as a workaround as the evaluation of
when this value should be set is unclear. Right now we set it when
UID_MODE is set too.
-rw-r--r-- | src/tss.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -305,6 +305,14 @@ int tss_request_add_ap_img4_tags(plist_t request, plist_t parameters) plist_dict_set_item(request, "UID_MODE", plist_new_bool(0)); } + // FIXME: I didn't understand yet when this value is set, so for now we use a workaround + if (plist_dict_get_item(parameters, "ApSikaFuse")) { + _plist_dict_copy_item(request, parameters, "Ap,SikaFuse", "ApSikaFuse"); + } else if (_plist_dict_get_bool(parameters, "RequiresUIDMode")) { + // Workaround: We have only seen Ap,SikaFuse together with UID_MODE + plist_dict_set_item(request, "Ap,SikaFuse", plist_new_int(0)); + } + return 0; } |