Skip to content

docs: add the Wi-Fi control design - #179

Merged
Derrors merged 1 commit into
mainfrom
docs/wifi-design
Nov 24, 2026
Merged

Derrors merged 1 commit into
mainfrom
docs/wifi-design

Conversation

@Derrors

@Derrors Derrors commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What and why

Adds docs/dev/wifi.md, the design for controlling a USB-paired iPhone over Wi-Fi (no code change):

  • Transport: network lockdown, then the same CoreDeviceProxy tunnel and RSD as over USB; on macOS the system usbmuxd discovers network devices and holds the heartbeat.
  • First version: macOS, iOS 27+ native control (everything already runs inside the tunnel, no WDA). iOS 17–26 over WDA comes second; Linux discovery/heartbeat and cable-free pairing later.
  • Security preconditions: pin lockdown TLS to the pair record's DeviceCertificate public key and verify handshake signatures (idevice's sni.rs currently accepts anything); confine WDA to loopback / the tunnel address (today it listens on every interface when launched in the background).
  • Handoff: USB preferred, per-device opt-in (wifi_udids), reuses the existing "usbmuxd id changed → rebuild" path, a grace window that never switches to another phone, touch sequences bound to their connection.

Tests

1. Unit tests

  • Not applicable: docs only, no code change
  • No existing test removed, ignored or loosened
  • #[ignore] tests of the changed area run by hand: none apply

2. Real-device regression

  • Not needed: the change doesn't touch code that talks to a phone (design doc only)

3. Regression cases (docs/dev/regression-cases.md)

  • All cases still hold; none apply (no code change)

🤖 Generated with Claude Code

Plan for controlling a paired iPhone over Wi-Fi: network lockdown then the
CoreDeviceProxy tunnel, TLS pinning to the pair record's DeviceCertificate as
a precondition, USB/Wi-Fi handoff, and confining WDA to loopback/the tunnel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Derrors
Derrors merged commit e1e196a into main Nov 24, 2026
7 checks passed
@Derrors
Derrors deleted the docs/wifi-design branch November 24, 2026 07:36
@Derrors Derrors mentioned this pull request Nov 24, 2026
12 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant