Skip to main content

Module conn

Module conn 

Source
Expand description

Device discovery and the rootless userspace tunnel.

lockdown (USB via usbmuxd, Wi-Fi via direct TCP) → CoreDeviceProxy → CDTunnel → software TCP stack → RSD. Nothing here needs root or a utun interface, and nothing depends on Xcode’s own CoreDevice tunnel.

Structs§

DeviceEntry
Heartbeat
Answers the phone’s heartbeat for as long as it lives. Over Wi-Fi the phone closes the connections to its services (CoreDeviceProxy, AMFI, the image mounter) unless some client answers its Marco. iph owns this for every Wi-Fi address, regardless of where the address was discovered.
Route
Tunnel

Constants§

LABEL

Functions§

conn_name
describe_raw
list
Connected devices, one entry per phone, USB preferred.
list_raw
Every (udid, transport) pair usbmuxd knows about. A phone reachable over both USB and Wi-Fi shows up twice.
mux_addr
mux_connect
open_tunnel
Open the userspace tunnel and read the RSD service list.
open_tunnel_with_provider
Test each transport independently, including Wi-Fi while USB is present.
passcode_locked
What lockdown says about the passcode lock (PasswordProtected: true while the phone is locked). None when lockdown did not say. Read-only.
route
Prefer USB, then verified direct TCP candidates. A failed discovery query does not suppress a saved address; pairing still comes from Apple’s store.