summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-12-07 16:53:31 +0700
committerGravatar Nikias Bassen2017-12-07 16:53:31 +0700
commit8b2e1679a8ce64a88640cb6722c2d00ad4b14d2e (patch)
tree232d259dd8817f7df5426e5e242d4c51f4f76d0f /tools
parent53ace7d7cdbf9b9ba3f67b15be7e703699a82faa (diff)
downloadlibideviceactivation-8b2e1679a8ce64a88640cb6722c2d00ad4b14d2e.tar.gz
libideviceactivation-8b2e1679a8ce64a88640cb6722c2d00ad4b14d2e.tar.bz2
ideviceactivation: Fix iOS 11.2+ activation by passing response headers with activation command
Diffstat (limited to 'tools')
-rw-r--r--tools/ideviceactivation.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c
index f54ce1f..561450c 100644
--- a/tools/ideviceactivation.c
+++ b/tools/ideviceactivation.c
@@ -361,11 +361,15 @@ int main(int argc, char *argv[])
}
if (session_mode) {
- if (MOBILEACTIVATION_E_SUCCESS != mobileactivation_activate_with_session(ma, record)) {
+ plist_t headers = NULL;
+ idevice_activation_response_get_headers(response, &headers);
+ if (MOBILEACTIVATION_E_SUCCESS != mobileactivation_activate_with_session(ma, record, headers)) {
+ plist_free(headers);
fprintf(stderr, "Failed to activate device with record.\n");
result = EXIT_FAILURE;
goto cleanup;
}
+ plist_free(headers);
} else {
if (MOBILEACTIVATION_E_SUCCESS != mobileactivation_activate(ma, record)) {
fprintf(stderr, "Failed to activate device with record.\n");