How Lockdown and RemoteXPC/RSD work
masteridevice interacts with multiple stacked layers of Apple's protocols:
Lockdown Protocol
- A lockdown service is accessible via a specific port.
- Lockdown is accessible via USB or TCP using TLS.
- USB access is facilitated via
usbmuxd. usbmuxdis accessed through a Unix socket using its own protocol.
RemoteXPC / RSD (Remote Service Discovery)
- An RSD service is discovered through a RemoteXPC handshake response.
- RemoteXPC is transferred over non-compliant HTTP/2.
- This HTTP/2 connection is accessed through an NCM USB interface or
CoreDeviceProxy. CoreDeviceProxyis itself a lockdown service.