From 8b2e1679a8ce64a88640cb6722c2d00ad4b14d2e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 7 Dec 2017 16:53:31 +0700 Subject: ideviceactivation: Fix iOS 11.2+ activation by passing response headers with activation command --- tools/ideviceactivation.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"); -- cgit v1.1-32-gdbae