summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-09-29 10:49:25 +0200
committerGravatar Nikias Bassen2023-09-29 10:49:25 +0200
commitcf22a1c0fa5994be2f02ed431461524499b06267 (patch)
treee1ec566ebdf6d307ef11483eb93e1003251c1b0a /src
parentdbe7313260ddef6b2eb60b3772d1595bfd91f24c (diff)
downloadidevicerestore-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.
Diffstat (limited to 'src')
-rw-r--r--src/tss.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tss.c b/src/tss.c
index 0fa1740..5fd1804 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -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;
}