Repository navigation
Description
Request: none
Problem
A lease on an emulator or a simulator can show its live screen in the console and over GET /v1/stream/leases/{leaseId}. A lease on a physical phone cannot: the stream answers 415 STREAM_NOT_SUPPORTED, and the console says the device's screen cannot be shown. Physical devices are leased the same way as virtual ones, so their screen is the one thing a person watching them is missing.
Who it is for
An operator or a developer watching what an agent does on a leased physical iPhone or Android phone, from the console or through the HTTP API, on a worker or through a gateway.
Outcome
A lease on a physical Android phone or a physical iPhone streams its live screen the same way a lease on an emulator or a simulator does today: same route, same console view, same refusals and time limits, view only.
How it works for the user
Exactly as for emulators and simulators. Nothing new to turn on: capabilities.stream.enabled covers phones too.
flowchart LR
A[Lease a phone] --> B[Open its screen in the console or GET /v1/stream/leases/id]
B --> C{Can it be captured now?}
C -- yes --> D[Live screen]
C -- no --> E[503 with the reason, e.g. the screen does not turn on]
D --> F[Lease ends → stream ends, nothing left on the phone]
Examples
| Lease on | Today | After |
|---|---|---|
| an emulator or a simulator | live screen | live screen |
| a physical Android phone | 415 STREAM_NOT_SUPPORTED |
live screen |
| a physical iPhone | 415 STREAM_NOT_SUPPORTED |
live screen |
| a phone whose screen is off | 415 | woken, then live screen |
| a phone that cannot be captured right now (for example its screen does not turn on) | 415 | 503 STREAM_UNAVAILABLE with the reason |
What could go wrong
- A phone whose screen is off or locked shows nothing useful, and the viewer cannot tell why. An Android phone whose screen is off is woken, and kept awake while it charges and the stream is open.
- A stream leaves something running or installed on the phone after the viewer leaves or the lease ends.
- Watching a phone changes a setting on it (brightness, screen timeout, touches shown). One exception, on Android: the stay-awake setting is on while a stream is open, and put back when it ends.
Words used
- Physical device: a real phone plugged into a worker and enrolled in simlock, as opposed to an emulator or a simulator.
Non-goals
- Touch or key input from the viewer. Streams stay view only, as for emulators and simulators.
- Audio.
- Waking a physical iPhone whose screen is off; unlocking any phone.
Completion conditions
- A lease on a physical Android phone streams its screen in the console and over the HTTP API, on a worker and through a gateway.
- A lease on a physical iPhone does the same.
- When a lease ends, nothing of the capture is left running on the phone or the host.
Open questions
None.
Decisions
- ADR 0031 — A physical iPhone streams through CoreDevice's media stream, behind a screen-source seam (PR docs(adr): 0031 a physical iPhone streams through CoreDevice's media stream, behind a screen-source seam #622): how a physical iPhone's screen is captured, why it needs Xcode 27 on the worker, and the CoreMediaIO (QuickTime) path named as its replacement.
Tasks
flowchart LR
A["#618 Android"] --> I["#619 iOS"]
- Android: stream a leased physical phone's screen #618 Android: stream a leased physical phone's screen — a lease on a physical Android phone shows its live screen. Risk: a phone that never streams, or a shared adb server restarted under another tool.
- iOS: stream a leased physical iPhone's screen #619 iOS: stream a leased physical iPhone's screen — a lease on a physical iPhone shows its live screen, on a worker with Xcode 27. Risk: an iPhone that never streams, or simulator streams broken by the package restructure.
Written by an agent.
Activity
V3RON commentedon Oct 16, 2026
Spec updated: added How it works for the user, Examples, Words used and Tasks; one Non-goal (waking the screen); Open questions now points to #619.
Written by an agent.
V3RON commentedon Oct 16, 2026
Spec updated: Decisions gains ADR 0031 (PR #622); Open questions emptied; Tasks shows #619 after #618 and names its risk.
Written by an agent.
V3RON commentedon Oct 18, 2026
Spec updated: an Android phone whose screen is off is now woken and kept awake while it streams and charges, and the stay-awake setting is put back afterwards (#618). Waking an iPhone and unlocking any phone stay non-goals.
Written by an agent.
docs(adr): 0031 a physical iPhone streams through CoreDevice's media …
github-actions commentedon Oct 18, 2026
All 2 sub-issues are closed. If the completion conditions hold on
main, close this feature and flip its ADRs to Accepted.github-actions commentedon Oct 18, 2026
All 2 sub-issues are closed. If the completion conditions hold on
main, close this feature and flip its ADRs to Accepted.V3RON commentedon Oct 18, 2026
Done: #618 and #619 merged with ADR 0031 (#622, #662, #645 → 3688870).
Written by an agent.