libimobiledevice  1.3.0
API Documentation - Return to Homepage
Macros | Typedefs | Enumerations | Functions
afc.h File Reference

Description

Access the filesystem on the device.

Macros

#define AFC_SERVICE_NAME   "com.apple.afc"
 

Typedefs

typedef struct afc_client_private afc_client_private
 
typedef afc_client_private * afc_client_t
 The client handle.
 

Enumerations

enum  afc_error_t {
  AFC_E_SUCCESS = 0,
  AFC_E_UNKNOWN_ERROR = 1,
  AFC_E_OP_HEADER_INVALID = 2,
  AFC_E_NO_RESOURCES = 3,
  AFC_E_READ_ERROR = 4,
  AFC_E_WRITE_ERROR = 5,
  AFC_E_UNKNOWN_PACKET_TYPE = 6,
  AFC_E_INVALID_ARG = 7,
  AFC_E_OBJECT_NOT_FOUND = 8,
  AFC_E_OBJECT_IS_DIR = 9,
  AFC_E_PERM_DENIED = 10,
  AFC_E_SERVICE_NOT_CONNECTED = 11,
  AFC_E_OP_TIMEOUT = 12,
  AFC_E_TOO_MUCH_DATA = 13,
  AFC_E_END_OF_DATA = 14,
  AFC_E_OP_NOT_SUPPORTED = 15,
  AFC_E_OBJECT_EXISTS = 16,
  AFC_E_OBJECT_BUSY = 17,
  AFC_E_NO_SPACE_LEFT = 18,
  AFC_E_OP_WOULD_BLOCK = 19,
  AFC_E_IO_ERROR = 20,
  AFC_E_OP_INTERRUPTED = 21,
  AFC_E_OP_IN_PROGRESS = 22,
  AFC_E_INTERNAL_ERROR = 23,
  AFC_E_MUX_ERROR = 30,
  AFC_E_NO_MEM = 31,
  AFC_E_NOT_ENOUGH_DATA = 32,
  AFC_E_DIR_NOT_EMPTY = 33,
  AFC_E_FORCE_SIGNED_TYPE = -1
}
 Error Codes.
 
enum  afc_file_mode_t {
  AFC_FOPEN_RDONLY = 0x00000001,
  AFC_FOPEN_RW = 0x00000002,
  AFC_FOPEN_WRONLY = 0x00000003,
  AFC_FOPEN_WR = 0x00000004,
  AFC_FOPEN_APPEND = 0x00000005,
  AFC_FOPEN_RDAPPEND = 0x00000006
}
 Flags for afc_file_open. More...
 
enum  afc_link_type_t {
  AFC_HARDLINK = 1,
  AFC_SYMLINK = 2
}
 Type of link for afc_make_link() calls.
 
enum  afc_lock_op_t {
  AFC_LOCK_SH = 1 | 4,
  AFC_LOCK_EX = 2 | 4,
  AFC_LOCK_UN = 8 | 4
}
 Lock operation flags. More...
 

Functions

afc_error_t afc_client_new (idevice_t device, lockdownd_service_descriptor_t service, afc_client_t *client)
 Makes a connection to the AFC service on the device. More...
 
afc_error_t afc_client_start_service (idevice_t device, afc_client_t *client, const char *label)
 Starts a new AFC service on the specified device and connects to it. More...
 
afc_error_t afc_client_free (afc_client_t client)
 Frees up an AFC client. More...
 
afc_error_t afc_get_device_info (afc_client_t client, char ***device_information)
 Get device information for a connected client. More...
 
afc_error_t afc_read_directory (afc_client_t client, const char *path, char ***directory_information)
 Gets a directory listing of the directory requested. More...
 
afc_error_t afc_get_file_info (afc_client_t client, const char *path, char ***file_information)
 Gets information about a specific file. More...
 
afc_error_t afc_file_open (afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle)
 Opens a file on the device. More...
 
afc_error_t afc_file_close (afc_client_t client, uint64_t handle)
 Closes a file on the device. More...
 
afc_error_t afc_file_lock (afc_client_t client, uint64_t handle, afc_lock_op_t operation)
 Locks or unlocks a file on the device. More...
 
afc_error_t afc_file_read (afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read)
 Attempts to the read the given number of bytes from the given file. More...
 
afc_error_t afc_file_write (afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written)
 Writes a given number of bytes to a file. More...
 
afc_error_t afc_file_seek (afc_client_t client, uint64_t handle, int64_t offset, int whence)
 Seeks to a given position of a pre-opened file on the device. More...
 
afc_error_t afc_file_tell (afc_client_t client, uint64_t handle, uint64_t *position)
 Returns current position in a pre-opened file on the device. More...
 
afc_error_t afc_file_truncate (afc_client_t client, uint64_t handle, uint64_t newsize)
 Sets the size of a file on the device. More...
 
afc_error_t afc_remove_path (afc_client_t client, const char *path)
 Deletes a file or directory. More...
 
afc_error_t afc_rename_path (afc_client_t client, const char *from, const char *to)
 Renames a file or directory on the device. More...
 
afc_error_t afc_make_directory (afc_client_t client, const char *path)
 Creates a directory on the device. More...
 
afc_error_t afc_truncate (afc_client_t client, const char *path, uint64_t newsize)
 Sets the size of a file on the device without prior opening it. More...
 
afc_error_t afc_make_link (afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname)
 Creates a hard link or symbolic link on the device. More...
 
afc_error_t afc_set_file_time (afc_client_t client, const char *path, uint64_t mtime)
 Sets the modification time of a file on the device. More...
 
afc_error_t afc_remove_path_and_contents (afc_client_t client, const char *path)
 Deletes a file or directory including possible contents. More...
 
afc_error_t afc_get_device_info_key (afc_client_t client, const char *key, char **value)
 Get a specific key of the device info list for a client connection. More...
 
afc_error_t afc_dictionary_free (char **dictionary)
 Frees up a char dictionary as returned by some AFC functions. More...
 
instproxy_status_get_error
instproxy_error_t instproxy_status_get_error(plist_t status, char **name, char **description, uint64_t *code)
Gets error name, code and description from a response if available.
diagnostics_relay_sleep
diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client)
Puts the device into deep sleep mode and disconnects from host.
np_client_start_service
np_error_t np_client_start_service(idevice_t device, np_client_t *client, const char *label)
Starts a new notification proxy service on the specified device and connects to it.
AFC_LOCK_EX
exclusive lock
Definition: afc.h:88
house_arrest_error_t
house_arrest_error_t
Error Codes.
Definition: house_arrest.h:38
afc_read_directory
afc_error_t afc_read_directory(afc_client_t client, const char *path, char ***directory_information)
Gets a directory listing of the directory requested.
debugserver_client_free
debugserver_error_t debugserver_client_free(debugserver_client_t client)
Disconnects a debugserver client from the device and frees up the debugserver client data.
AFC_FOPEN_WRONLY
w O_WRONLY | O_CREAT | O_TRUNC
Definition: afc.h:73
mobile_image_mounter_upload_cb_t
ssize_t(* mobile_image_mounter_upload_cb_t)(void *buffer, size_t length, void *user_data)
callback for image upload
Definition: mobile_image_mounter.h:51
mobilesync_client_new
mobilesync_error_t mobilesync_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilesync_client_t *client)
Connects to the mobilesync service on the specified device.
lockdownd_set_value
lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value)
Sets a preferences value using a plist and optional by domain and/or key name.
lockdownd_enter_recovery
lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client)
Tells the device to immediately enter recovery mode.
afc_make_link
afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const char *target, const char *linkname)
Creates a hard link or symbolic link on the device.
mobileactivation_get_activation_state
mobileactivation_error_t mobileactivation_get_activation_state(mobileactivation_client_t client, plist_t *state)
Retrieves the device's activation state.
screenshotr_error_t
screenshotr_error_t
Error Codes.
Definition: screenshotr.h:38
debugserver_client_t
debugserver_client_private * debugserver_client_t
The client handle.
Definition: debugserver.h:47
mobilesync_start
mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data_class, mobilesync_anchors_t anchors, uint64_t computer_data_class_version, mobilesync_sync_type_t *sync_type, uint64_t *device_data_class_version, char **error_description)
Requests starting synchronization of a data class with the device.
preboard_client_start_service
preboard_error_t preboard_client_start_service(idevice_t device, preboard_client_t *client, const char *label)
Starts a new preboard service on the specified device and connects to it.
restored_client_set_label
void restored_client_set_label(restored_client_t client, const char *label)
Sets the label to send for requests to restored.
instproxy_browse
instproxy_error_t instproxy_browse(instproxy_client_t client, plist_t client_options, plist_t *result)
List installed applications.
mobilebackup2_client_start_service
mobilebackup2_error_t mobilebackup2_client_start_service(idevice_t device, mobilebackup2_client_t *client, const char *label)
Starts a new mobilebackup2 service on the specified device and connects to it.
lockdownd_client_t
lockdownd_client_private * lockdownd_client_t
The client handle.
Definition: lockdown.h:84
idevice_options
idevice_options
Options for idevice_new_with_options()
Definition: libimobiledevice.h:56
afc_remove_path_and_contents
afc_error_t afc_remove_path_and_contents(afc_client_t client, const char *path)
Deletes a file or directory including possible contents.
mobilesync_get_changes_from_device
mobilesync_error_t mobilesync_get_changes_from_device(mobilesync_client_t client)
Requests to receive only changed records of the currently set data class from the device.
lockdownd_query_type
lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type)
Query the type of the service daemon.
mobilebackup2_version_exchange
mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t client, double local_versions[], char count, double *remote_version)
Performs the mobilebackup2 protocol version exchange.
instproxy_status_get_name
void instproxy_status_get_name(plist_t status, char **name)
Gets the name of a status.
house_arrest_client_start_service
house_arrest_error_t house_arrest_client_start_service(idevice_t device, house_arrest_client_t *client, const char *label)
Starts a new house_arrest service on the specified device and connects to it.
idevice_get_device_list
idevice_error_t idevice_get_device_list(char ***devices, int *count)
Get a list of UDIDs of currently available devices (USBMUX devices only).
mobilebackup2_error_t
mobilebackup2_error_t
Error Codes.
Definition: mobilebackup2.h:37
lockdownd_pair_record::system_buid
char * system_buid
A unique system id.
Definition: lockdown.h:91
instproxy_install
instproxy_error_t instproxy_install(instproxy_client_t client, const char *pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
Install an application on the device.
syslog_relay_receive
syslog_relay_error_t syslog_relay_receive(syslog_relay_client_t client, char *data, uint32_t size, uint32_t *received)
Receives data from the service.
lockdownd_client_set_label
void lockdownd_client_set_label(lockdownd_client_t client, const char *label)
Sets the label to send for requests to lockdownd.
debugserver_command_t
debugserver_command_private * debugserver_command_t
The command handle.
Definition: debugserver.h:50
house_arrest_client_t
house_arrest_client_private * house_arrest_client_t
The client handle.
Definition: house_arrest.h:48
companion_proxy_client_free
companion_proxy_error_t companion_proxy_client_free(companion_proxy_client_t client)
Disconnects a companion_proxy client from the device and frees up the companion_proxy client data.
np_error_t
np_error_t
Error Codes.
Definition: notification_proxy.h:37
restored_client_new
restored_error_t restored_client_new(idevice_t device, restored_client_t *client, const char *label)
Creates a new restored client for the device.
property_list_service_receive_plist_with_timeout
property_list_service_error_t property_list_service_receive_plist_with_timeout(property_list_service_client_t client, plist_t *plist, unsigned int timeout)
Receives a plist using the given property list service client with specified timeout.
companion_proxy_get_device_registry
companion_proxy_error_t companion_proxy_get_device_registry(companion_proxy_client_t client, plist_t *paired_devices)
Retrieves a list of paired devices.
idevice_get_device_list_extended
idevice_error_t idevice_get_device_list_extended(idevice_info_t **devices, int *count)
Get a list of currently available devices.
debugserver_error_t
debugserver_error_t
Error Codes.
Definition: debugserver.h:36
service_client_new
service_error_t service_client_new(idevice_t device, lockdownd_service_descriptor_t service, service_client_t *client)
Creates a new service for the specified service descriptor.
mobilesync_sync_type_t
mobilesync_sync_type_t
The sync type of the current sync session.
Definition: mobilesync.h:56
syslog_relay_client_free
syslog_relay_error_t syslog_relay_client_free(syslog_relay_client_t client)
Disconnects a syslog_relay client from the device and frees up the syslog_relay client data.
idevice_event_cb_t
void(* idevice_event_cb_t)(const idevice_event_t *event, void *user_data)
Callback to notifiy if a device was added or removed.
Definition: libimobiledevice.h:93
mobilebackup_client_free
mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client)
Disconnects a mobilebackup client from the device and frees up the mobilebackup client data.
debugserver_command_free
debugserver_error_t debugserver_command_free(debugserver_command_t command)
Frees memory of command object.
lockdownd_error_t
lockdownd_error_t
Error Codes.
Definition: lockdown.h:37
service_error_t
service_error_t
Error Codes.
Definition: service.h:34
lockdownd_client_free
lockdownd_error_t lockdownd_client_free(lockdownd_client_t client)
Closes the lockdownd client session if one is running and frees up the lockdownd_client struct.
mobilesync_send_changes
mobilesync_error_t mobilesync_send_changes(mobilesync_client_t client, plist_t entities, uint8_t is_last_record, plist_t actions)
Sends changed entities of the currently set data class to the device.
mobilebackup2_send_raw
mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, const char *data, uint32_t length, uint32_t *bytes)
Send binary data to the device.
afc_error_t
afc_error_t
Error Codes.
Definition: afc.h:37
afc_link_type_t
afc_link_type_t
Type of link for afc_make_link() calls.
Definition: afc.h:80
instproxy_command_get_name
void instproxy_command_get_name(plist_t command, char **name)
Gets the name from a command dictionary.
idevice_device_list_free
idevice_error_t idevice_device_list_free(char **devices)
Free a list of device UDIDs.
np_client_free
np_error_t np_client_free(np_client_t client)
Disconnects a notification_proxy client from the device and frees up the notification_proxy client da...
AFC_FOPEN_RDONLY
r O_RDONLY
Definition: afc.h:71
lockdownd_start_service
lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service)
Requests to start a service and retrieve it's port on success.
webinspector_receive_with_timeout
webinspector_error_t webinspector_receive_with_timeout(webinspector_client_t client, plist_t *plist, uint32_t timeout_ms)
Receives a plist using the given webinspector client.
file_relay_request_sources
file_relay_error_t file_relay_request_sources(file_relay_client_t client, const char **sources, idevice_connection_t *connection)
Request data for the given sources.
service_client_factory_start_service
service_error_t service_client_factory_start_service(idevice_t device, const char *service_name, void **client, const char *label, int32_t(*constructor_func)(idevice_t, lockdownd_service_descriptor_t, void **), int32_t *error_code)
Starts a new service on the specified device with given name and connects to it.
debugserver_client_start_service
debugserver_error_t debugserver_client_start_service(idevice_t device, debugserver_client_t *client, const char *label)
Starts a new debugserver service on the specified device and connects to it.
instproxy_client_free
instproxy_error_t instproxy_client_free(instproxy_client_t client)
Disconnects an installation_proxy client from the device and frees up the installation_proxy client d...
sbservices_client_t
sbservices_client_private * sbservices_client_t
The client handle.
Definition: sbservices.h:57
instproxy_error_t
instproxy_error_t
Error Codes.
Definition: installation_proxy.h:39
afc_file_read
afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read)
Attempts to the read the given number of bytes from the given file.
mobilebackup_request_restore
mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t client, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto_version)
Request that a backup should be restored to the connected device.
preboard_create_stashbag
preboard_error_t preboard_create_stashbag(preboard_client_t client, plist_t manifest, preboard_status_cb_t status_cb, void *user_data)
Tells the preboard service to create a stashbag.
afc_get_file_info
afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***file_information)
Gets information about a specific file.
sbservices_set_icon_state
sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, plist_t newstate)
Sets the icon state of the connected device.
mobilesync_cancel
mobilesync_error_t mobilesync_cancel(mobilesync_client_t client, const char *reason)
Cancels a running synchronization session with a device at any time.
mobilebackup_send_backup_file_received
mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_client_t client)
Sends a confirmation to the device that a backup file has been received.
AFC_FOPEN_RDAPPEND
a+ O_RDWR | O_APPEND | O_CREAT
Definition: afc.h:76
service_disable_bypass_ssl
service_error_t service_disable_bypass_ssl(service_client_t client, uint8_t sslBypass)
Disable SSL for the given service client without sending SSL terminate messages.
idevice_connection_disable_ssl
idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection)
Disable SSL for the given connection.
instproxy_uninstall
instproxy_error_t instproxy_uninstall(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
Uninstall an application from the device.
lockdownd_pair_record::device_certificate
char * device_certificate
The device certificate.
Definition: lockdown.h:87
idevice_connection_enable_ssl
idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection)
Enables SSL for the given connection.
idevice_t
idevice_private * idevice_t
The device handle.
Definition: libimobiledevice.h:50
mobile_image_mounter_error_t
mobile_image_mounter_error_t
Error Codes.
Definition: mobile_image_mounter.h:37
sbservices_get_home_screen_wallpaper_pngdata
sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_client_t client, char **pngdata, uint64_t *pngsize)
Get the home screen wallpaper as PNG data.
afc_client_start_service
afc_error_t afc_client_start_service(idevice_t device, afc_client_t *client, const char *label)
Starts a new AFC service on the specified device and connects to it.
idevice_set_debug_level
void idevice_set_debug_level(int level)
Set the level of debugging.
mobileactivation_client_new
mobileactivation_error_t mobileactivation_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobileactivation_client_t *client)
Connects to the mobileactivation service on the specified device.
misagent_install
misagent_error_t misagent_install(misagent_client_t client, plist_t profile)
Installs the given provisioning profile.
sbservices_client_start_service
sbservices_error_t sbservices_client_start_service(idevice_t device, sbservices_client_t *client, const char *label)
Starts a new sbservices service on the specified device and connects to it.
libimobiledevice.h
Device/Connection handling and communication.
debugserver_decode_string
void debugserver_decode_string(const char *encoded_buffer, size_t encoded_length, char **buffer)
Decodes a hex encoded string.
MOBILESYNC_SYNC_TYPE_SLOW
Slow-sync requires that all data from the computer needs to be synchronized/sent.
Definition: mobilesync.h:58
lockdownd_unpair
lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pair_record_t pair_record)
Unpairs the device with the given HostID and removes the pairing records from the device and host if ...
misagent_client_t
misagent_client_private * misagent_client_t
The client handle.
Definition: misagent.h:47
instproxy_status_get_current_list
void instproxy_status_get_current_list(plist_t status, uint64_t *total, uint64_t *current_index, uint64_t *current_amount, plist_t *list)
Gets total and current item information from a browse response if available.
misagent_copy
misagent_error_t misagent_copy(misagent_client_t client, plist_t *profiles)
Retrieves all installed provisioning profiles (iOS 9.2.1 or below).
sbservices_error_t
sbservices_error_t
Error Codes.
Definition: sbservices.h:37
diagnostics_relay_client_start_service
diagnostics_relay_error_t diagnostics_relay_client_start_service(idevice_t device, diagnostics_relay_client_t *client, const char *label)
Starts a new diagnostics_relay service on the specified device and connects to it.
screenshotr_client_t
screenshotr_client_private * screenshotr_client_t
The client handle.
Definition: screenshotr.h:50
restored_error_t
restored_error_t
Error Codes.
Definition: restore.h:35
restored_client_free
restored_error_t restored_client_free(restored_client_t client)
Closes the restored client session if one is running and frees up the restored_client struct.
webinspector_error_t
webinspector_error_t
Error Codes.
Definition: webinspector.h:37
preboard_error_t
preboard_error_t
Error Codes.
Definition: preboard.h:36
misagent_remove
misagent_error_t misagent_remove(misagent_client_t client, const char *profileID)
Removes a given provisioning profile.
sbservices_get_icon_state
sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, plist_t *state, const char *format_version)
Gets the icon state of the connected device.
lockdownd_deactivate
lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client)
Deactivates the device, returning it to the locked “Activate with iTunes” screen.
restored_get_value
restored_error_t restored_get_value(restored_client_t client, const char *key, plist_t *value)
Retrieves a value from information plist specified by a key.
screenshotr_client_start_service
screenshotr_error_t screenshotr_client_start_service(idevice_t device, screenshotr_client_t *client, const char *label)
Starts a new screenshotr service on the specified device and connects to it.
file_relay_client_new
file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, file_relay_client_t *client)
Connects to the file_relay service on the specified device.
mobileactivation_error_t
mobileactivation_error_t
Error Codes.
Definition: mobileactivation.h:36
mobileactivation_create_activation_info
mobileactivation_error_t mobileactivation_create_activation_info(mobileactivation_client_t client, plist_t *info)
Retrieves the activation info required for device activation.
file_relay_client_free
file_relay_error_t file_relay_client_free(file_relay_client_t client)
Disconnects a file_relay client from the device and frees up the file_relay client data.
mobilebackup2_client_free
mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t client)
Disconnects a mobilebackup2 client from the device and frees up the mobilebackup2 client data.
mobilesync_client_start_service
mobilesync_error_t mobilesync_client_start_service(idevice_t device, mobilesync_client_t *client, const char *label)
Starts a new mobilesync service on the specified device and connects to it.
np_notify_cb_t
void(* np_notify_cb_t)(const char *notification, void *user_data)
Reports which notification was received.
Definition: notification_proxy.h:90
afc_client_free
afc_error_t afc_client_free(afc_client_t client)
Frees up an AFC client.
heartbeat_receive
heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t *plist)
Receives a plist from the service.
afc_dictionary_free
afc_error_t afc_dictionary_free(char **dictionary)
Frees up a char dictionary as returned by some AFC functions.
diagnostics_relay_restart
diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, diagnostics_relay_action_t flags)
Restart the device and optionally show a user notification.
lockdownd_stop_session
lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char *session_id)
Closes the lockdownd session by sending the StopSession request.
mobilebackup2_receive_message
mobilebackup2_error_t mobilebackup2_receive_message(mobilebackup2_client_t client, plist_t *msg_plist, char **dlmessage)
Receives a DL* message plist from the device.
property_list_service_disable_ssl
property_list_service_error_t property_list_service_disable_ssl(property_list_service_client_t client)
Disable SSL for the given property list service client.
afc_file_open
afc_error_t afc_file_open(afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle)
Opens a file on the device.
afc_lock_op_t
afc_lock_op_t
Lock operation flags.
Definition: afc.h:86
lockdownd_service_descriptor
Definition: lockdown.h:96
np_observe_notifications
np_error_t np_observe_notifications(np_client_t client, const char **notification_spec)
Tells the device to send a notification on specified events.
restored_receive
restored_error_t restored_receive(restored_client_t client, plist_t *plist)
Receives a plist from restored.
diagnostics_relay_shutdown
diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t client, diagnostics_relay_action_t flags)
Shutdown of the device and optionally show a user notification.
mobilebackup_error_t
mobilebackup_error_t
Error Codes.
Definition: mobilebackup.h:37
mobilesync_get_all_records_from_device
mobilesync_error_t mobilesync_get_all_records_from_device(mobilesync_client_t client)
Requests to receive all records of the currently set data class from the device.
companion_proxy_stop_listening_for_devices
companion_proxy_error_t companion_proxy_stop_listening_for_devices(companion_proxy_client_t client)
Stops listening for paired devices.
sbservices_client_new
sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_service_descriptor_t service, sbservices_client_t *client)
Connects to the springboardservices service on the specified device.
debugserver_client_send
debugserver_error_t debugserver_client_send(debugserver_client_t client, const char *data, uint32_t size, uint32_t *sent)
Sends raw data using the given debugserver service client.
lockdownd_get_value
lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value)
Retrieves a preferences plist using an optional domain and/or key name.
file_relay_request_sources_timeout
file_relay_error_t file_relay_request_sources_timeout(file_relay_client_t client, const char **sources, idevice_connection_t *connection, unsigned int timeout)
Request data for the given sources.
idevice_device_list_extended_free
idevice_error_t idevice_device_list_extended_free(idevice_info_t *devices)
Free an extended device list retrieved through idevice_get_device_list_extended().
property_list_service_client_new
property_list_service_error_t property_list_service_client_new(idevice_t device, lockdownd_service_descriptor_t service, property_list_service_client_t *client)
Creates a new property list service for the specified port.
instproxy_status_get_percent_complete
void instproxy_status_get_percent_complete(plist_t status, int *percent)
Gets progress in percentage from a status if available.
mobilesync_anchors_new
mobilesync_anchors_t mobilesync_anchors_new(const char *device_anchor, const char *computer_anchor)
Allocates memory for a new anchors struct initialized with the passed anchors.
service_send
service_error_t service_send(service_client_t client, const char *data, uint32_t size, uint32_t *sent)
Sends data using the given service client.
IDEVICE_LOOKUP_PREFER_NETWORK
prefer network connection if device is available via USBMUX and network
Definition: libimobiledevice.h:59
afc_remove_path
afc_error_t afc_remove_path(afc_client_t client, const char *path)
Deletes a file or directory.
mobile_image_mounter_mount_image
mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mounter_client_t client, const char *image_path, const char *signature, uint16_t signature_size, const char *image_type, plist_t *result)
Mounts an image on the device.
lockdownd_get_device_udid
lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t client, char **udid)
Returns the unique id of the device from lockdownd.
idevice_info
Definition: libimobiledevice.h:68
mobile_image_mounter_client_t
mobile_image_mounter_client_private * mobile_image_mounter_client_t
The client handle.
Definition: mobile_image_mounter.h:48
instproxy_lookup
instproxy_error_t instproxy_lookup(instproxy_client_t client, const char **appids, plist_t client_options, plist_t *result)
Lookup information about specific applications from the device.
idevice_event_unsubscribe
idevice_error_t idevice_event_unsubscribe(void)
Release the event callback function that has been registered with idevice_event_subscribe().
file_relay_error_t
file_relay_error_t
Error Codes.
Definition: file_relay.h:38
sbservices_client_free
sbservices_error_t sbservices_client_free(sbservices_client_t client)
Disconnects an sbservices client from the device and frees up the sbservices client data.
mobilebackup2_send_request
mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t client, const char *request, const char *target_identifier, const char *source_identifier, plist_t options)
Send a request to the connected mobilebackup2 service.
mobilebackup2_client_t
mobilebackup2_client_private * mobilebackup2_client_t
The client handle.
Definition: mobilebackup2.h:51
property_list_service_receive_plist
property_list_service_error_t property_list_service_receive_plist(property_list_service_client_t client, plist_t *plist)
Receives a plist using the given property list service client.
heartbeat_client_start_service
heartbeat_error_t heartbeat_client_start_service(idevice_t device, heartbeat_client_t *client, const char *label)
Starts a new heartbeat service on the specified device and connects to it.
mobile_image_mounter_lookup_image
mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_mounter_client_t client, const char *image_type, plist_t *result)
Tells if the image of ImageType is already mounted.
mobile_image_mounter_new
mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, lockdownd_service_descriptor_t service, mobile_image_mounter_client_t *client)
Connects to the mobile_image_mounter service on the specified device.
preboard_send
preboard_error_t preboard_send(preboard_client_t client, plist_t plist)
Sends a plist to the service.
heartbeat_client_t
heartbeat_client_private * heartbeat_client_t
The client handle.
Definition: heartbeat.h:48
lockdownd_pair
lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record)
Pairs the device using the supplied pair record.
restored_reboot
restored_error_t restored_reboot(restored_client_t client)
Requests device to reboot.
property_list_service_send_xml_plist
property_list_service_error_t property_list_service_send_xml_plist(property_list_service_client_t client, plist_t plist)
Sends an XML plist.
preboard_receive
preboard_error_t preboard_receive(preboard_client_t client, plist_t *plist)
Receives a plist from the service.
syslog_relay_start_capture
syslog_relay_error_t syslog_relay_start_capture(syslog_relay_client_t client, syslog_relay_receive_cb_t callback, void *user_data)
Starts capturing the syslog of the device using a callback.
file_relay_client_start_service
file_relay_error_t file_relay_client_start_service(idevice_t device, file_relay_client_t *client, const char *label)
Starts a new file_relay service on the specified device and connects to it.
heartbeat_send
heartbeat_error_t heartbeat_send(heartbeat_client_t client, plist_t plist)
Sends a plist to the service.
mobilesync_client_t
mobilesync_client_private * mobilesync_client_t
The client handle.
Definition: mobilesync.h:63
afc_client_new
afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t service, afc_client_t *client)
Makes a connection to the AFC service on the device.
lockdown.h
Manage device preferences, start services, pairing and activation.
webinspector_receive
webinspector_error_t webinspector_receive(webinspector_client_t client, plist_t *plist)
Receives a plist from the service.
misagent_get_status_code
int misagent_get_status_code(misagent_client_t client)
Retrieves the status code from the last operation.
debugserver_client_set_ack_mode
debugserver_error_t debugserver_client_set_ack_mode(debugserver_client_t client, int enabled)
Controls status of ACK mode when sending commands or receiving responses.
mobilebackup_client_new
mobilebackup_error_t mobilebackup_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilebackup_client_t *client)
Connects to the mobilebackup service on the specified device.
mobilesync_finish
mobilesync_error_t mobilesync_finish(mobilesync_client_t client)
Finish a synchronization session of a data class on the device.
webinspector_client_new
webinspector_error_t webinspector_client_new(idevice_t device, lockdownd_service_descriptor_t service, webinspector_client_t *client)
Connects to the webinspector service on the specified device.
debugserver_client_set_environment_hex_encoded
debugserver_error_t debugserver_client_set_environment_hex_encoded(debugserver_client_t client, const char *env, char **response)
Adds or sets an environment variable.
afc.h
Access the filesystem on the device.
companion_proxy_error_t
companion_proxy_error_t
Error Codes.
Definition: companion_proxy.h:36
mobilebackup_receive_restore_file_received
mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebackup_client_t client, plist_t *result)
Receive a confirmation from the device that it successfully received a restore file.
mobilebackup_client_t
mobilebackup_client_private * mobilebackup_client_t
The client handle.
Definition: mobilebackup.h:50
idevice_event_type
idevice_event_type
The event type for device add or removal.
Definition: libimobiledevice.h:77
restored_goodbye
restored_error_t restored_goodbye(restored_client_t client)
Sends the Goodbye request to restored signaling the end of communication.
MOBILESYNC_SYNC_TYPE_FAST
Fast-sync requires that only the changes made since the last synchronization should be reported by th...
Definition: mobilesync.h:57
service_receive
service_error_t service_receive(service_client_t client, char *data, uint32_t size, uint32_t *received)
Receives data using the given service client.
idevice_get_udid
idevice_error_t idevice_get_udid(idevice_t device, char **udid)
Gets the unique id for the device.
afc_file_write
afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written)
Writes a given number of bytes to a file.
debugserver_command_new
debugserver_error_t debugserver_command_new(const char *name, int argc, char *argv[], debugserver_command_t *command)
Creates and initializes a new command object.
companion_proxy_start_listening_for_devices
companion_proxy_error_t companion_proxy_start_listening_for_devices(companion_proxy_client_t client, companion_proxy_device_event_cb_t callback, void *userdata)
Starts listening for paired devices.
idevice_connection_type
idevice_connection_type
Type of connection a device is available on.
Definition: libimobiledevice.h:63
sbservices_get_icon_pngdata
sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize)
Get the icon of the specified app as PNG data.
mobile_image_mounter_upload_image
mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_mounter_client_t client, const char *image_type, size_t image_size, const char *signature, uint16_t signature_size, mobile_image_mounter_upload_cb_t upload_cb, void *userdata)
Uploads an image with an optional signature to the device.
webinspector_client_t
webinspector_client_private * webinspector_client_t
The client handle.
Definition: webinspector.h:49
screenshotr_take_screenshot
screenshotr_error_t screenshotr_take_screenshot(screenshotr_client_t client, char **imgdata, uint64_t *imgsize)
Get a screen shot from the connected device.
instproxy_lookup_archives
instproxy_error_t instproxy_lookup_archives(instproxy_client_t client, plist_t client_options, plist_t *result)
List archived applications.
idevice_new
idevice_error_t idevice_new(idevice_t *device, const char *udid)
Creates an idevice_t structure for the device specified by UDID, if the device is available (USBMUX d...
lockdownd_pair_with_options
lockdownd_error_t lockdownd_pair_with_options(lockdownd_client_t client, lockdownd_pair_record_t pair_record, plist_t options, plist_t *response)
Pairs the device using the supplied pair record and passing the given options.
mobileactivation_deactivate
mobileactivation_error_t mobileactivation_deactivate(mobileactivation_client_t client)
Deactivates the device.
diagnostics_relay_client_t
diagnostics_relay_client_private * diagnostics_relay_client_t
The client handle.
Definition: diagnostics_relay.h:57
np_client_new
np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client)
Connects to the notification_proxy on the specified device.
companion_proxy_stop_forwarding_service_port
companion_proxy_error_t companion_proxy_stop_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port)
Stop forwarding a service port between companion device and idevice.
lockdownd_send
lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist)
Sends a plist to lockdownd.
instproxy_client_get_path_for_bundle_identifier
instproxy_error_t instproxy_client_get_path_for_bundle_identifier(instproxy_client_t client, const char *bundle_id, char **path)
Queries the device for the path of an application.
diagnostics_relay_client_free
diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client)
Disconnects a diagnostics_relay client from the device and frees up the diagnostics_relay client data...
instproxy_upgrade
instproxy_error_t instproxy_upgrade(instproxy_client_t client, const char *pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
Upgrade an application on the device.
lockdownd_get_device_name
lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name)
Retrieves the name of the device from lockdownd set by the user.
idevice_error_t
idevice_error_t
Error Codes.
Definition: libimobiledevice.h:39
mobilebackup2_send_message
mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t client, const char *message, plist_t options)
Sends a backup message plist.
lockdownd_activate
lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t activation_record)
Activates the device.
afc_rename_path
afc_error_t afc_rename_path(afc_client_t client, const char *from, const char *to)
Renames a file or directory on the device.
mobilesync_ready_to_send_changes_from_computer
mobilesync_error_t mobilesync_ready_to_send_changes_from_computer(mobilesync_client_t client)
Verifies if the device is ready to receive changes from the computer.
syslog_relay_client_start_service
syslog_relay_error_t syslog_relay_client_start_service(idevice_t device, syslog_relay_client_t *client, const char *label)
Starts a new syslog_relay service on the specified device and connects to it.
mobilebackup_receive_restore_application_received
mobilebackup_error_t mobilebackup_receive_restore_application_received(mobilebackup_client_t client, plist_t *result)
Receive a confirmation from the device that it successfully received application data file.
companion_proxy_client_t
companion_proxy_client_private * companion_proxy_client_t
The client handle.
Definition: companion_proxy.h:52
IDEVICE_LOOKUP_NETWORK
include network devices during lookup
Definition: libimobiledevice.h:58
property_list_service_send_binary_plist
property_list_service_error_t property_list_service_send_binary_plist(property_list_service_client_t client, plist_t plist)
Sends a binary plist.
instproxy_restore
instproxy_error_t instproxy_restore(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
Restore a previously archived application on the device.
misagent_client_free
misagent_error_t misagent_client_free(misagent_client_t client)
Disconnects an misagent client from the device and frees up the misagent client data.
heartbeat_receive_with_timeout
heartbeat_error_t heartbeat_receive_with_timeout(heartbeat_client_t client, plist_t *plist, uint32_t timeout_ms)
Receives a plist using the given heartbeat client.
mobilesync_acknowledge_changes_from_device
mobilesync_error_t mobilesync_acknowledge_changes_from_device(mobilesync_client_t client)
Acknowledges to the device that the changes have been merged on the computer.
idevice_event_subscribe
idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data)
Register a callback function that will be called when device add/remove events occur.
property_list_service_client_free
property_list_service_error_t property_list_service_client_free(property_list_service_client_t client)
Frees a PropertyList service.
mobilesync_client_free
mobilesync_error_t mobilesync_client_free(mobilesync_client_t client)
Disconnects a mobilesync client from the device and frees up the mobilesync client data.
preboard_status_cb_t
void(* preboard_status_cb_t)(plist_t message, void *user_data)
Reports the status response of the given command.
Definition: preboard.h:52
screenshotr_client_new
screenshotr_error_t screenshotr_client_new(idevice_t device, lockdownd_service_descriptor_t service, screenshotr_client_t *client)
Connects to the screenshotr service on the specified device.
instproxy_check_capabilities_match
instproxy_error_t instproxy_check_capabilities_match(instproxy_client_t client, const char **capabilities, plist_t client_options, plist_t *result)
Checks a device for certain capabilities.
instproxy_archive
instproxy_error_t instproxy_archive(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
Archive an application on the device.
mobile_image_mounter_free
mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter_client_t client)
Disconnects a mobile_image_mounter client from the device and frees up the mobile_image_mounter clien...
misagent_client_new
misagent_error_t misagent_client_new(idevice_t device, lockdownd_service_descriptor_t service, misagent_client_t *client)
Connects to the misagent service on the specified device.
IDEVICE_LOOKUP_USBMUX
include USBMUX devices during lookup
Definition: libimobiledevice.h:57
debugserver_encode_string
void debugserver_encode_string(const char *buffer, char **encoded_buffer, uint32_t *encoded_length)
Encodes a string into hex notation.
lockdownd_remove_value
lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *domain, const char *key)
Removes a preference node by domain and/or key name.
debugserver_client_receive
debugserver_error_t debugserver_client_receive(debugserver_client_t client, char *data, uint32_t size, uint32_t *received)
Receives raw data from the debugserver service.
syslog_relay_client_new
syslog_relay_error_t syslog_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, syslog_relay_client_t *client)
Connects to the syslog_relay service on the specified device.
mobilesync_clear_all_records_on_device
mobilesync_error_t mobilesync_clear_all_records_on_device(mobilesync_client_t client)
Requests the device to delete all records of the current data class.
companion_proxy_start_forwarding_service_port
companion_proxy_error_t companion_proxy_start_forwarding_service_port(companion_proxy_client_t client, uint16_t remote_port, const char *service_name, uint16_t *forward_port, plist_t options)
Start forwarding a service port on the companion device to a port on the idevice.
syslog_relay_start_capture_raw
syslog_relay_error_t syslog_relay_start_capture_raw(syslog_relay_client_t client, syslog_relay_receive_cb_t callback, void *user_data)
Starts capturing the raw syslog of the device using a callback.
restored_send
restored_error_t restored_send(restored_client_t client, plist_t plist)
Sends a plist to restored.
lockdownd_validate_pair
lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record)
Validates if the device is paired with the given HostID.
idevice_connection_receive_timeout
idevice_error_t idevice_connection_receive_timeout(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout)
Receive data from a device via the given connection.
service_enable_ssl
service_error_t service_enable_ssl(service_client_t client)
Enable SSL for the given service client.
afc_set_file_time
afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mtime)
Sets the modification time of a file on the device.
np_post_notification
np_error_t np_post_notification(np_client_t client, const char *notification)
Sends a notification to the device's notification_proxy.
webinspector_client_free
webinspector_error_t webinspector_client_free(webinspector_client_t client)
Disconnects a webinspector client from the device and frees up the webinspector client data.
mobilebackup2_client_new
mobilebackup2_error_t mobilebackup2_client_new(idevice_t device, lockdownd_service_descriptor_t service, mobilebackup2_client_t *client)
Connects to the mobilebackup2 service on the specified device.
mobilesync_anchors
Definition: mobilesync.h:65
webinspector_send
webinspector_error_t webinspector_send(webinspector_client_t client, plist_t plist)
Sends a plist to the service.
mobilebackup_request_backup
mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t client, plist_t backup_manifest, const char *base_path, const char *proto_version)
Request a backup from the connected device.
lockdownd_service_descriptor_free
lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descriptor_t service)
Frees memory of a service descriptor as returned by lockdownd_start_service()
mobilebackup_send_error
mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason)
Sends a backup error message to the device.
instproxy_status_cb_t
void(* instproxy_status_cb_t)(plist_t command, plist_t status, void *user_data)
Reports the status response of the given command.
Definition: installation_proxy.h:114
idevice_free
idevice_error_t idevice_free(idevice_t device)
Cleans up an idevice structure, then frees the structure itself.
lockdownd_start_service_with_escrow_bag
lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service)
Requests to start a service and retrieve it's port on success.
mobilesync_actions_free
void mobilesync_actions_free(plist_t actions)
Free actions plist.
property_list_service_client_t
property_list_service_private * property_list_service_client_t
The client handle.
Definition: property_list_service.h:46
mobilebackup_client_start_service
mobilebackup_error_t mobilebackup_client_start_service(idevice_t device, mobilebackup_client_t *client, const char *label)
Starts a new mobilebackup service on the specified device and connects to it.
lockdownd_client_new
lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, const char *label)
Creates a new lockdownd client for the device.
AFC_FOPEN_APPEND
a O_WRONLY | O_APPEND | O_CREAT
Definition: afc.h:75
syslog_relay_client_t
syslog_relay_client_private * syslog_relay_client_t
The client handle.
Definition: syslog_relay.h:48
companion_proxy_client_new
companion_proxy_error_t companion_proxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, companion_proxy_client_t *client)
Connects to the companion_proxy service on the specified device.
np_observe_notification
np_error_t np_observe_notification(np_client_t client, const char *notification)
Tells the device to send a notification on the specified event.
misagent_error_t
misagent_error_t
Error Codes.
Definition: misagent.h:37
lockdownd_get_sync_data_classes
lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client, char ***classes, int *count)
Calculates and returns the data classes the device supports from lockdownd.
debugserver_client_receive_response
debugserver_error_t debugserver_client_receive_response(debugserver_client_t client, char **response, size_t *response_size)
Receives and parses response of debugserver service.
afc_file_seek
afc_error_t afc_file_seek(afc_client_t client, uint64_t handle, int64_t offset, int whence)
Seeks to a given position of a pre-opened file on the device.
preboard_receive_with_timeout
preboard_error_t preboard_receive_with_timeout(preboard_client_t client, plist_t *plist, uint32_t timeout_ms)
Receives a plist from the service with the specified timeout.
lockdownd_goodbye
lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client)
Sends the Goodbye request to lockdownd signaling the end of communication.
debugserver_client_new
debugserver_error_t debugserver_client_new(idevice_t device, lockdownd_service_descriptor_t service, debugserver_client_t *client)
Connects to the debugserver service on the specified device.
instproxy_remove_archive
instproxy_error_t instproxy_remove_archive(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
Removes a previously archived application from the device.
lockdownd_data_classes_free
lockdownd_error_t lockdownd_data_classes_free(char **classes)
Frees memory of an allocated array of data classes as returned by lockdownd_get_sync_data_classes()
syslog_relay_receive_with_timeout
syslog_relay_error_t syslog_relay_receive_with_timeout(syslog_relay_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout)
Receives data using the given syslog_relay client with specified timeout.
mobilesync_anchors_free
void mobilesync_anchors_free(mobilesync_anchors_t anchors)
Free memory used by anchors.
service_client_free
service_error_t service_client_free(service_client_t client)
Frees a service instance.
mobilebackup_send_restore_complete
mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client_t client)
Tells the device that the restore process is complete and waits for the device to close the connectio...
webinspector_client_start_service
webinspector_error_t webinspector_client_start_service(idevice_t device, webinspector_client_t *client, const char *label)
Starts a new webinspector service on the specified device and connects to it.
idevice_event_t
Provides information about the occurred event.
Definition: libimobiledevice.h:85
restored_client_t
restored_client_private * restored_client_t
The client handle.
Definition: restore.h:46
debugserver_client_set_argv
debugserver_error_t debugserver_client_set_argv(debugserver_client_t client, int argc, char *argv[], char **response)
Sets the argv which launches an app.
preboard_client_t
preboard_client_private * preboard_client_t
The client handle.
Definition: preboard.h:49
mobileactivation_client_free
mobileactivation_error_t mobileactivation_client_free(mobileactivation_client_t client)
Disconnects a mobileactivation client from the device and frees up the mobileactivation client data.
afc_truncate
afc_error_t afc_truncate(afc_client_t client, const char *path, uint64_t newsize)
Sets the size of a file on the device without prior opening it.
afc_file_truncate
afc_error_t afc_file_truncate(afc_client_t client, uint64_t handle, uint64_t newsize)
Sets the size of a file on the device.
debugserver_client_send_command
debugserver_error_t debugserver_client_send_command(debugserver_client_t client, debugserver_command_t command, char **response, size_t *response_size)
Sends a command to the debugserver service.
mobile_image_mounter_hangup
mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mounter_client_t client)
Hangs up the connection to the mobile_image_mounter service.
mobileactivation_activate
mobileactivation_error_t mobileactivation_activate(mobileactivation_client_t client, plist_t activation_record)
Activates the device with the given activation record.
afc_make_directory
afc_error_t afc_make_directory(afc_client_t client, const char *path)
Creates a directory on the device.
afc_get_device_info
afc_error_t afc_get_device_info(afc_client_t client, char ***device_information)
Get device information for a connected client.
mobilesync_receive
mobilesync_error_t mobilesync_receive(mobilesync_client_t client, plist_t *plist)
Polls the device for mobilesync data.
property_list_service_enable_ssl
property_list_service_error_t property_list_service_enable_ssl(property_list_service_client_t client)
Enable SSL for the given property list service client.
house_arrest_send_request
house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict)
Sends a generic request to the connected house_arrest service.
idevice_connection_receive
idevice_error_t idevice_connection_receive(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes)
Receive data from a device via the given connection.
heartbeat_client_new
heartbeat_error_t heartbeat_client_new(idevice_t device, lockdownd_service_descriptor_t service, heartbeat_client_t *client)
Connects to the heartbeat service on the specified device.
diagnostics_relay_request_diagnostics
diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, const char *type, plist_t *diagnostics)
Shutdown of the device and optionally show a user notification.
mobileactivation_client_start_service
mobileactivation_error_t mobileactivation_client_start_service(idevice_t device, mobileactivation_client_t *client, const char *label)
Starts a new mobileactivation service on the specified device and connects to it.
mobilesync_actions_new
plist_t mobilesync_actions_new(void)
Create a new actions plist to use in mobilesync_send_changes().
instproxy_browse_with_callback
instproxy_error_t instproxy_browse_with_callback(instproxy_client_t client, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
List pages of installed applications in a callback.
service_client_t
service_client_private * service_client_t
The client handle.
Definition: service.h:46
idevice_connect
idevice_error_t idevice_connect(idevice_t device, uint16_t port, idevice_connection_t *connection)
Set up a connection to the given device.
afc_file_lock
afc_error_t afc_file_lock(afc_client_t client, uint64_t handle, afc_lock_op_t operation)
Locks or unlocks a file on the device.
diagnostics_relay_error_t
diagnostics_relay_error_t
Error Codes.
Definition: diagnostics_relay.h:36
screenshotr_client_free
screenshotr_error_t screenshotr_client_free(screenshotr_client_t client)
Disconnects a screenshotr client from the device and frees up the screenshotr client data.
companion_proxy_send
companion_proxy_error_t companion_proxy_send(companion_proxy_client_t client, plist_t plist)
Sends a plist to the service.
afc_file_mode_t
afc_file_mode_t
Flags for afc_file_open.
Definition: afc.h:70
afc_client_t
afc_client_private * afc_client_t
The client handle.
Definition: afc.h:93
np_set_notify_callback
np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb, void *userdata)
This function allows an application to define a callback function that will be called when a notifica...
mobilebackup2_receive_raw
mobilebackup2_error_t mobilebackup2_receive_raw(mobilebackup2_client_t client, char *data, uint32_t length, uint32_t *bytes)
Receive binary from the device.
mobileactivation_client_t
mobileactivation_client_private * mobileactivation_client_t
The client handle.
Definition: mobileactivation.h:47
lockdownd_pair_record::host_id
char * host_id
A unique HostID for the host computer.
Definition: lockdown.h:90
afc_file_close
afc_error_t afc_file_close(afc_client_t client, uint64_t handle)
Closes a file on the device.
syslog_relay_error_t
syslog_relay_error_t
Error Codes.
Definition: syslog_relay.h:37
mobilesync_receive_changes
mobilesync_error_t mobilesync_receive_changes(mobilesync_client_t client, plist_t *entities, uint8_t *is_last_record, plist_t *actions)
Receives changed entitites of the currently set data class from the device.
lockdownd_pair_record::host_certificate
char * host_certificate
The host certificate.
Definition: lockdown.h:88
preboard_client_free
preboard_error_t preboard_client_free(preboard_client_t client)
Disconnects a preboard client from the device and frees up the preboard client data.
mobilesync_anchors_t
mobilesync_anchors * mobilesync_anchors_t
Anchors used by the device and computer.
Definition: mobilesync.h:69
heartbeat_error_t
heartbeat_error_t
Error Codes.
Definition: heartbeat.h:36
preboard_client_new
preboard_error_t preboard_client_new(idevice_t device, lockdownd_service_descriptor_t service, preboard_client_t *client)
Connects to the preboard service on the specified device.
idevice_connection_disable_bypass_ssl
idevice_error_t idevice_connection_disable_bypass_ssl(idevice_connection_t connection, uint8_t sslBypass)
Disable bypass SSL for the given connection without sending out terminate messages.
idevice_event_t::udid
const char * udid
The device unique id.
Definition: libimobiledevice.h:87
mobilesync_send
mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist)
Sends mobilesync data to the device.
misagent_copy_all
misagent_error_t misagent_copy_all(misagent_client_t client, plist_t *profiles)
Retrieves all installed provisioning profiles (iOS 9.3 or higher).
mobilesync_remap_identifiers
mobilesync_error_t mobilesync_remap_identifiers(mobilesync_client_t client, plist_t *mapping)
Receives any remapped identifiers reported after the device merged submitted changes.
idevice_connection_get_fd
idevice_error_t idevice_connection_get_fd(idevice_connection_t connection, int *fd)
Get the underlying file descriptor for a connection.
mobilebackup_receive
mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, plist_t *plist)
Polls the device for mobilebackup data.
instproxy_client_start_service
instproxy_error_t instproxy_client_start_service(idevice_t device, instproxy_client_t *client, const char *label)
Starts a new installation_proxy service on the specified device and connects to it.
syslog_relay_stop_capture
syslog_relay_error_t syslog_relay_stop_capture(syslog_relay_client_t client)
Stops capturing the syslog of the device.
idevice_connection_send
idevice_error_t idevice_connection_send(idevice_connection_t connection, const char *data, uint32_t len, uint32_t *sent_bytes)
Send data to a device via the given connection.
house_arrest_client_new
house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_service_descriptor_t service, house_arrest_client_t *client)
Connects to the house_arrest service on the specified device.
instproxy_client_options_add
void instproxy_client_options_add(plist_t client_options,...)
Adds one or more new key:value pairs to the given client_options.
instproxy_client_new
instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_descriptor_t service, instproxy_client_t *client)
Connects to the installation_proxy service on the specified device.
AFC_LOCK_SH
shared lock
Definition: afc.h:87
service_disable_ssl
service_error_t service_disable_ssl(service_client_t client)
Disable SSL for the given service client.
np_client_t
np_client_private * np_client_t
The client handle.
Definition: notification_proxy.h:87
instproxy_client_options_free
void instproxy_client_options_free(plist_t client_options)
Frees client_options plist.
preboard_commit_stashbag
preboard_error_t preboard_commit_stashbag(preboard_client_t client, plist_t manifest, preboard_status_cb_t status_cb, void *user_data)
Instructs the preboard service to commit a previously created stashbag.
afc_get_device_info_key
afc_error_t afc_get_device_info_key(afc_client_t client, const char *key, char **value)
Get a specific key of the device info list for a client connection.
lockdownd_receive
lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *plist)
Receives a plist from lockdownd.
lockdownd_start_session
lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled)
Opens a session with lockdownd and switches to SSL mode if device wants it.
house_arrest_send_command
house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid)
Send a command to the connected house_arrest service.
idevice_disconnect
idevice_error_t idevice_disconnect(idevice_connection_t connection)
Disconnect from the device and clean up the connection structure.
MOBILESYNC_SYNC_TYPE_RESET
Reset-sync signals that the computer should send all data again.
Definition: mobilesync.h:59
mobilesync_error_t
mobilesync_error_t
Error Codes.
Definition: mobilesync.h:40
lockdownd_pair_record
A pair record holding device, host and root certificates along the host_id.
Definition: lockdown.h:86
lockdownd_pair_record::root_certificate
char * root_certificate
The root certificate.
Definition: lockdown.h:89
restored_start_restore
restored_error_t restored_start_restore(restored_client_t client, plist_t options, uint64_t version)
Requests to start a restore and retrieve it's port on success.
lockdownd_strerror
const char * lockdownd_strerror(lockdownd_error_t err)
Gets a readable error string for a given lockdown error code.
afc_client_new_from_house_arrest_client
afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client)
Creates an AFC client using the given house_arrest client's connection allowing file access to a spec...
restored_query_value
restored_error_t restored_query_value(restored_client_t client, const char *key, plist_t *value)
Queries a value from the device specified by a key.
AFC_FOPEN_RW
r+ O_RDWR | O_CREAT
Definition: afc.h:72
companion_proxy_get_value_from_registry
companion_proxy_error_t companion_proxy_get_value_from_registry(companion_proxy_client_t client, const char *companion_udid, const char *key, plist_t *value)
Returns a value for the given key.
syslog_relay_receive_cb_t
void(* syslog_relay_receive_cb_t)(char c, void *user_data)
Receives each character received from the device.
Definition: syslog_relay.h:51
heartbeat_client_free
heartbeat_error_t heartbeat_client_free(heartbeat_client_t client)
Disconnects a heartbeat client from the device and frees up the heartbeat client data.
instproxy_client_t
instproxy_client_private * instproxy_client_t
The client handle.
Definition: installation_proxy.h:111
AFC_LOCK_UN
unlock
Definition: afc.h:89
mobileactivation_create_activation_info_with_session
mobileactivation_error_t mobileactivation_create_activation_info_with_session(mobileactivation_client_t client, plist_t handshake_response, plist_t *info)
Retrieves the activation info required for device activation in 'session' mode.
sbservices_get_interface_orientation
sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t *interface_orientation)
Gets the interface orientation of the device.
mobile_image_mounter_start_service
mobile_image_mounter_error_t mobile_image_mounter_start_service(idevice_t device, mobile_image_mounter_client_t *client, const char *label)
Starts a new mobile_image_mounter service on the specified device and connects to it.
companion_proxy_receive
companion_proxy_error_t companion_proxy_receive(companion_proxy_client_t client, plist_t *plist)
Receives a plist from the service.
mobileactivation_activate_with_session
mobileactivation_error_t mobileactivation_activate_with_session(mobileactivation_client_t client, plist_t activation_record, plist_t headers)
Activates the device with the given activation record in 'session' mode.
mobilesync_actions_add
void mobilesync_actions_add(plist_t actions,...)
Add one or more new key:value pairs to the given actions plist.
instproxy_client_options_new
plist_t instproxy_client_options_new(void)
Creates a new client_options plist.
idevice_new_with_options
idevice_error_t idevice_new_with_options(idevice_t *device, const char *udid, enum idevice_options options)
Creates an idevice_t structure for the device specified by UDID, if the device is available,...
instproxy_client_options_set_return_attributes
void instproxy_client_options_set_return_attributes(plist_t client_options,...)
Adds attributes to the given client_options to filter browse results.
idevice_get_handle
idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle)
Gets the handle or (usbmux device id) of the device.
debugserver_client_receive_with_timeout
debugserver_error_t debugserver_client_receive_with_timeout(debugserver_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout)
Receives raw data using the given debugserver client with specified timeout.
companion_proxy_client_start_service
companion_proxy_error_t companion_proxy_client_start_service(idevice_t device, companion_proxy_client_t *client, const char *label)
Starts a new companion_proxy service on the specified device and connects to it.
mobilebackup2_send_status_response
mobilebackup2_error_t mobilebackup2_send_status_response(mobilebackup2_client_t client, int status_code, const char *status1, plist_t status2)
Sends a DLMessageStatusResponse to the device.
house_arrest_get_result
house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict)
Retrieves the result of a previously sent house_arrest_request_* request.
service_receive_with_timeout
service_error_t service_receive_with_timeout(service_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout)
Receives data using the given service client with specified timeout.
AFC_FOPEN_WR
w+ O_RDWR | O_CREAT | O_TRUNC
Definition: afc.h:74
afc_file_tell
afc_error_t afc_file_tell(afc_client_t client, uint64_t handle, uint64_t *position)
Returns current position in a pre-opened file on the device.
restored_query_type
restored_error_t restored_query_type(restored_client_t client, char **type, uint64_t *version)
Query the type of the service daemon.
diagnostics_relay_goodbye
diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client)
Sends the Goodbye request signaling the end of communication.
lockdownd_client_new_with_handshake
lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdownd_client_t *client, const char *label)
Creates a new lockdownd client for the device and starts initial handshake.
misagent_client_start_service
misagent_error_t misagent_client_start_service(idevice_t device, misagent_client_t *client, const char *label)
Starts a new misagent service on the specified device and connects to it.
mobilebackup_send
mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_t plist)
Sends mobilebackup data to the device.
mobileactivation_create_activation_session_info
mobileactivation_error_t mobileactivation_create_activation_session_info(mobileactivation_client_t client, plist_t *blob)
Retrieves a session blob required for 'drmHandshake' via albert.apple.com.
idevice_connection_t
idevice_connection_private * idevice_connection_t
The connection handle.
Definition: libimobiledevice.h:53
house_arrest_client_free
house_arrest_error_t house_arrest_client_free(house_arrest_client_t client)
Disconnects an house_arrest client from the device and frees up the house_arrest client data.
file_relay_client_t
file_relay_client_private * file_relay_client_t
The client handle.
Definition: file_relay.h:50
diagnostics_relay_client_new
diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, diagnostics_relay_client_t *client)
Connects to the diagnostics_relay service on the specified device.