libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ reverse_proxy_client_create_with_service()

LIBIMOBILEDEVICE_API reverse_proxy_error_t reverse_proxy_client_create_with_service ( idevice_t  device,
reverse_proxy_client_t client,
const char *  label 
)

Create a reverse proxy client using com.apple.PurpleReverseProxy.Ctrl and com.apple.PurpleReverseProxy.Conn lockdown services.

This will open a port 1083 on the device that iOS apps could connect to; however that is only allowed if an app has the com.apple.private.PurpleReverseProxy.allowed entitlement, which currently only /usr/libexec/fdrhelper holds.

Note
This function only creates and initializes the reverse proxy; to make it operational, call reverse_proxy_client_start_proxy().
Parameters
deviceThe device to connect to.
clientPointer that will be set to a newly allocated reverse_proxy_client_t upon successful return.
labelA label to pass to lockdownd when creating the service connections, usually the program name.
Returns
REVERSE_PROXY_E_SUCCESS on success, or a REVERSE_PROXY_E_* error code otherwise.