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§
- Device
Entry - 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§
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).Nonewhen 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.