Skip to content

Commit

Permalink
ideviceactivation: Fix iOS 11.2+ activation by passing response heade…
Browse files Browse the repository at this point in the history
…rs with activation command
  • Loading branch information
nikias committed Dec 7, 2017
1 parent 53ace7d commit 8b2e167
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/ideviceactivation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

1 comment on commit 8b2e167

@Phi1758
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could somebody post a way for novices like me so that I can get the updates to work. I cannot get the version installed on my system to run without returning errors: idevice_activation_request_new_from_lockdownd: Unable to get IMSI from lockdownd
idevice_activation_request_new_from_lockdownd: Unable to get ActivationInfo from lockdownd
Failed to create activation request.

Please sign in to comment.