Skip to content

Live screen streams of leased physical devices #617

Closed
2 of 2 issues completed
Closed

Description

@V3RON

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]
Loading

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

Tasks

flowchart LR
  A["#618 Android"] --> I["#619 iOS"]
Loading
  • 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.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    feature:spec
    on Oct 16, 2026
  2. V3RON commented on Oct 16, 2026

    @V3RON
    ContributorAuthor

    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.

  3. V3RON commented on Oct 16, 2026

    @V3RON
    ContributorAuthor

    Spec updated: Decisions gains ADR 0031 (PR #622); Open questions emptied; Tasks shows #619 after #618 and names its risk.

    Written by an agent.

  4. added
    feature:planned
    and removed
    feature:spec
    on Oct 16, 2026
  5. V3RON commented on Oct 18, 2026

    @V3RON
    ContributorAuthor

    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.

  6. github-actions commented on Oct 18, 2026

    @github-actions
    Contributor

    All 2 sub-issues are closed. If the completion conditions hold on main, close this feature and flip its ADRs to Accepted.

  7. github-actions commented on Oct 18, 2026

    @github-actions
    Contributor

    All 2 sub-issues are closed. If the completion conditions hold on main, close this feature and flip its ADRs to Accepted.

  8. V3RON commented on Oct 18, 2026

    @V3RON
    ContributorAuthor

    Done: #618 and #619 merged with ADR 0031 (#622, #662, #645 → 3688870).

    • Android: a leased physical phone streams; verified on a Samsung SM-A165F (Android 16), the stream case starting with the screen off.
    • iPhone: an iPhone below iOS 27 is refused with a reason naming its version (verified on an iPhone 11 Pro Max, iOS 26.5). The stream itself on iOS 27 is not yet verified on a real iPhone — a known gap in iOS: stream a leased physical iPhone's screen #619 item 7, accepted by the maintainer. The CoreMediaIO (QuickTime) source would also cover iPhones below iOS 27.

    Written by an agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions