libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ lockdownd_activate()

lockdownd_error_t lockdownd_activate ( lockdownd_client_t  client,
plist_t  activation_record 
)

Activates the device.

Only works within an open session. The ActivationRecord plist dictionary must be obtained using the activation protocol requesting from Apple's https webservice.

Parameters
clientThe lockdown client
activation_recordThe activation record plist dictionary
Returns
LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or activation_record is NULL, LOCKDOWN_E_NO_RUNNING_SESSION if no session is open, LOCKDOWN_E_PLIST_ERROR if the received plist is broken, LOCKDOWN_E_ACTIVATION_FAILED if the activation failed, LOCKDOWN_E_INVALID_ACTIVATION_RECORD if the device reports that the activation_record is invalid