simee API reference

Generated from ⁦  ⁦simee call help⁩  ⁩. Transport: unix socket, one JSON request per line, one JSON response per line.

→ {"id": 1, "method": "tap", "params": {"device": "booted", "x": 600, "y": 1300}} ← {"id": 1, "ok": true, "result": null}

A connection may send any number of requests, each answered before the next is read; keep one open rather than connecting per call. Large results (a base64 ⁦  ⁦screenshot⁩  ⁩) are written as one line straight from the result, so read up to the newline before parsing.

⁦Per-call⁩ overhead ⁦(#202)⁩. Measured with ⁦  ⁦cargo run --release -p simee-api --example api_overhead -- before=<old simee> after=target/release/simee⁩  ⁩: a private ⁦  ⁦simee serve⁩  ⁩ and ⁦  ⁦simee mcp⁩  ⁩ per binary, rounds interleaved, the median of 5 (Apple M3 Max, 16 cores, ⁦2026-11-27⁩, host load 19 to 22):

µs per call

kept connection

connection per call

MCP ⁦(stdio)⁩

⁦  ⁦identity⁩  ⁩ ⁦(no-op)⁩

⁦7.2⁩

⁦22.2⁩ (⁦33.5⁩ before)

⁦18.3⁩

⁦  ⁦form_factors⁩  ⁩ (6 KB)

⁦49.4⁩

⁦66.5⁩ (⁦78.9⁩ before)

⁦132.4⁩

⁦  ⁦help⁩  ⁩ (25 KB)

⁦88.6⁩

⁦110.7⁩ (⁦123.2⁩ before)

⁦211.8⁩

⁦  ⁦devices⁩  ⁩ (no boot)

75 560

73 930

75 210

  • On a kept connection the server spends under 1 µs on a ⁦no-op⁩ (parse, dispatch, response line); the rest is the socket round trip. A larger result costs building it and writing it (⁦  ⁦cargo test --release -p simee-api call_overhead -- --ignored --nocapture⁩  ⁩ splits it up).

  • A new connection costs about 15 µs more: the connection thread is reused (a thread whose client disconnected waits 30 s for the next, at most 8 wait), and its session is still made new for it.

  • MCP adds ⁦JSON-RPC⁩ framing, the tool ⁦result's⁩ text and ⁦  ⁦structuredContent⁩  ⁩, and handing each call to a worker thread (⁦  ⁦cargo test --release -p simee-mcp tool_call_overhead -- --ignored --nocapture⁩  ⁩).

  • ⁦  ⁦devices⁩  ⁩ on a host with Android AVDs is the Android listing, not the API: it reads each ⁦AVD's⁩ lock and asks the kernel about the process that holds one. An exact AVD name resolves with one ⁦  ⁦stat⁩  ⁩ and ⁦  ⁦device: "booted"⁩  ⁩ loads only the running AVDs (⁦⁦docs/benchmarks.md⁩⁩ "Android device resolution").

Binary replies. A request may add ⁦  ⁦"binary": true⁩  ⁩ to take a ⁦result's⁩ bytes raw instead of as base64 in the line (a local client that wants the PNG skips the base64 encode, the JSON escaping and a third more bytes on the socket). When the result has a bytes field (today ⁦  ⁦screenshot⁩  ⁩'s ⁦  ⁦png⁩  ⁩ without ⁦  ⁦path⁩  ⁩), the response line carries ⁦  ⁦"binary": <len>⁩  ⁩, the field holds ⁦  ⁦{"binary": <len>}⁩  ⁩, and exactly ⁦  ⁦<len>⁩  ⁩ raw bytes follow the newline before the next response:

→ {"id": 3, "method": "screenshot", "params": {"device": "booted"}, "binary": true} ← {"binary":4383251,"id":3,"ok":true,"result":{"height":2622,"png":{"binary":4383251},"width":1206}}\n ← <4383251 bytes of PNG>

  • It is asked per request, so connections stay stateless, a client can mix both kinds, and every request without the field (every existing client, MCP) gets the same bytes as before.

  • No bytes field (any other method, or ⁦  ⁦screenshot⁩  ⁩ with ⁦  ⁦path⁩  ⁩), or an error: the normal response line, with no ⁦  ⁦binary⁩  ⁩ and nothing after it. A server from before binary replies ignores the field and answers with base64, so a client that asks should accept either.

  • Read the line, then exactly ⁦  ⁦<len>⁩  ⁩ bytes: a stream that ends first is an error (the Rust client, ⁦  ⁦sim_api::Client::call_binary⁩  ⁩, says ⁦  ⁦the reply ended after N of <len> bytes⁩  ⁩).

  • A reply carries at most one attachment. ⁦  ⁦read⁩  ⁩'s ⁦  ⁦base64⁩  ⁩ is not a bytes field yet: it stays base64.

  • ⁦  ⁦simee screenshot <device> -⁩  ⁩ writes the PNG to stdout this way (in its own process, the bytes are never base64 either). ⁦  ⁦simee screenshot <device> <path>⁩  ⁩ keeps sending ⁦  ⁦path⁩  ⁩: whichever process runs the method writes the file, so the PNG ⁦doesn't⁩ cross the socket at all.

  • The MCP server stays base64: its tool results are JSON text.

The CLI and a server. When a matching ⁦  ⁦simee serve⁩  ⁩ is listening on the default socket (⁦  ⁦$SIMEE_SOCKET⁩  ⁩, else ⁦  ⁦$TMPDIR/simee.sock⁩  ⁩), other ⁦  ⁦simee⁩  ⁩ commands run their method on that server instead of in their own process: they skip connecting to the simulator service, reuse the ⁦server's⁩ ⁦per-device⁩ HID and display connections, and drop the ⁦CLI's⁩ 100 ms ⁦post-input⁩ wait (the ⁦server's⁩ HID client outlives the command). The output is byte for byte the same.

  • Handshake. Before forwarding, the CLI calls ⁦  ⁦identity⁩  ⁩ with a 1 s deadline for connecting and answering. It forwards only when the answer equals its own: the same build (crate version and a hash of the method table), the same executable (on macOS its ⁦Mach-O⁩ ⁦  ⁦LC_UUID⁩  ⁩, which the linker derives from the linked code: changed code never matches, a relink or copy of the same code does; elsewhere path, inode, size and mtime unchanged since the server started), and the same environment (a hash of every ⁦  ⁦ANDROID_*⁩  ⁩, ⁦  ⁦EMU_*⁩  ⁩ and ⁦  ⁦SIMEE_*⁩  ⁩ variable, ⁦  ⁦DEVELOPER_DIR⁩  ⁩, ⁦  ⁦HOME⁩  ⁩, ⁦  ⁦TMPDIR⁩  ⁩, and the ⁦  ⁦adb⁩  ⁩ that ⁦  ⁦PATH⁩  ⁩ finds, which the Android backend falls back to). ⁦  ⁦PATH⁩  ⁩ itself is not part of it (a pyenv shim or an extra directory changed it without changing any result), nor are the ⁦client's⁩ own switches (⁦  ⁦SIMEE_SOCKET⁩  ⁩, ⁦  ⁦SIMEE_IN_PROCESS⁩  ⁩, ⁦  ⁦SIMEE_REQUIRE_SERVER⁩  ⁩, ⁦  ⁦SIMEE_VERBOSE⁩  ⁩, ⁦  ⁦SIMEE_E2E_*⁩  ⁩).

  • Fallback. No server, a stale socket file, another build or environment, a server from before the handshake (it answers "unknown method"), or one that ⁦doesn't⁩ answer in time (suspended, wedged): the command runs in the ⁦CLI's⁩ own process. A forwarded command has no timeout after the handshake (a boot can take minutes). ⁦  ⁦--in-process⁩  ⁩ (or ⁦  ⁦SIMEE_IN_PROCESS=1⁩  ⁩) skips the server altogether. Running here costs several times more per call (screenshot 150 ms instead of 30 ms, tap 316 ms instead of 78 ms, measured), so a farm can see or forbid it: ⁦  ⁦--verbose⁩  ⁩ (or ⁦  ⁦SIMEE_VERBOSE=1⁩  ⁩) prints where each command ran and why the server ⁦wasn't⁩ used (⁦  ⁦simee: ⁩  ⁩tap⁦  ⁦ runs in this process: the server on … can't be used: the server is another build or environment: …⁩  ⁩), and ⁦  ⁦SIMEE_REQUIRE_SERVER=1⁩  ⁩ makes such a command fail with that reason instead of running here (methods that never forward still run here).

  • Never forwarded (⁦  ⁦sim_api::IN_CALLER⁩  ⁩): ⁦  ⁦boot⁩  ⁩ and ⁦  ⁦boot_many⁩  ⁩ (on Android both start ⁦  ⁦emu⁩  ⁩ as a child of the calling process; on a server it would be the ⁦server's⁩ child, in its process group, killed by ⁦Ctrl-C⁩ on ⁦  ⁦simee serve⁩  ⁩ and never reaped), ⁦  ⁦network_shape⁩  ⁩, ⁦  ⁦network_state⁩  ⁩, ⁦  ⁦network_flows⁩  ⁩, ⁦  ⁦network_clear⁩  ⁩ (the shaping proxy is a thread of the process that starts it), ⁦  ⁦audio_capture_start⁩  ⁩, ⁦  ⁦audio_capture_stop⁩  ⁩, ⁦  ⁦audio_mute⁩  ⁩ and ⁦  ⁦audio_state⁩  ⁩ (a capture or mute is a helper process its caller owns). These always run in the caller, and need no handshake.

Stopping a server ⁦(#388)⁩. On SIGINT ⁦(Ctrl-C)⁩ or SIGTERM, ⁦  ⁦simee serve⁩  ⁩ shuts down in order. A call in flight stops at its next safe point and gets up to 10 s. Every call after the signal, on a connection already open or one made during the shutdown, ⁦isn't⁩ run. Both answer ⁦  ⁦cancelled: server shutting down⁩  ⁩. Then it stops every stream with its WHIP DELETE, removes its socket and its camera feed sockets, and exits 130 ⁦(SIGINT)⁩ or 143 ⁦(SIGTERM)⁩. It keeps listening until it has removed its socket, so another ⁦  ⁦simee serve⁩  ⁩ ⁦can't⁩ take the path meanwhile. A second signal exits at once. From the signal on, ⁦  ⁦call_cancelled⁩  ⁩ is true for every call in the process.

A shutdown leaves alone the devices the server ⁦didn't⁩ start, but it can stop or delete ones it did:

  • ⁦Ctrl-C⁩ at a terminal goes to the whole process group, so every Android emulator the server started as its child gets the SIGINT too, powers off and exits 130. A SIGTERM sent to the ⁦server's⁩ PID alone ⁦doesn't⁩ reach them.

  • A call cancelled at a safe point undoes what it made: a ⁦  ⁦create⁩  ⁩ or ⁦  ⁦clone⁩  ⁩ that finishes during the drain is deleted, and a ⁦  ⁦boot⁩  ⁩ waiting for admission boots nothing.

⁦  ⁦simee mcp⁩  ⁩ shuts down the same way, over stdio and over HTTP: see "Stopping the server" in ⁦mcp-safety.md⁩. A watched ⁦  ⁦boot⁩  ⁩ that launched its device for a call in flight may shut that device down as it is cancelled. ⁦  ⁦emu⁩  ⁩ stops its guest as the ⁦console's⁩ ⁦  ⁦kill⁩  ⁩ does and exits 130 or 143 too.

Relative ⁦  ⁦path⁩  ⁩ arguments (⁦  ⁦screenshot⁩  ⁩, ⁦  ⁦install⁩  ⁩) are made absolute before they are sent.

⁦  ⁦device⁩  ⁩ is a UDID (an Android ⁦device's⁩ UDID is its AVD name), an exact name, or ⁦  ⁦booted⁩  ⁩ (the default: the only running device). It is resolved across both platforms; pass ⁦  ⁦platform⁩  ⁩ (⁦  ⁦ios⁩  ⁩ or ⁦  ⁦android⁩  ⁩) to look at one. Parameters ending in ⁦  ⁦?⁩  ⁩ are optional.

⁦  ⁦set⁩  ⁩ (iOS: every method that reaches a simulator or the simulator service, as each ⁦one's⁩ parameters say) is the CoreSimulator device set to work in: the directory of simulators ⁦  ⁦simctl --set⁩  ⁩ takes, absolute ⁦(#409)⁩. ⁦  ⁦create⁩  ⁩ makes the directory; every other method refuses one that ⁦doesn't⁩ exist. A set is named by its real directory (symlinks resolved, ⁦  ⁦.⁩  ⁩ and ⁦  ⁦..⁩  ⁩ applied), so its spellings are one set. Without it the set is ⁦  ⁦$SIMEE_IOS_DEVICE_SET⁩  ⁩'s, else the default set (⁦  ⁦~/Library/Developer/CoreSimulator/Devices⁩  ⁩, ⁦Simulator.app's⁩); ⁦  ⁦""⁩  ⁩ is the default set whatever the environment says. The CLI always sends its own: ⁦  ⁦--set⁩  ⁩, else its ⁦  ⁦SIMEE_IOS_DEVICE_SET⁩  ⁩, else ⁦  ⁦""⁩  ⁩. ⁦Simulator.app⁩ opens a window for each device of the default set that boots and never for another ⁦set's⁩, so a device created and booted in a set of its own runs headless. A device is found only in the set the call names. A device a camera source follows (⁦  ⁦device:<name>⁩  ⁩) is found in the ⁦environment's⁩ set, so ⁦  ⁦camera_link⁩  ⁩ (and ⁦  ⁦boot⁩  ⁩'s ⁦  ⁦camera_back⁩  ⁩ / ⁦  ⁦camera_front⁩  ⁩) refuses a ⁦  ⁦device:⁩  ⁩ source from a call on another set.

Platforms says whose devices a method works on. Calling a method on a device of another platform fails with the platforms it does work on, ⁦e.g⁩. ⁦  ⁦`status_bar` isn't available on Android devices (it works on iOS)⁩  ⁩. Every device in a result carries ⁦  ⁦platform⁩  ⁩, ⁦  ⁦form_factor⁩  ⁩ and ⁦  ⁦sub_platform⁩  ⁩.

Method

Platforms

Parameters

Description

⁦  ⁦help⁩  ⁩

Android, iOS

—

List methods with the platforms each supports

⁦  ⁦identity⁩  ⁩

Android, iOS

—

This ⁦process's⁩ build, executable and environment ⁦(hashed)⁩: the CLI forwards a command to a server only when they match its own

⁦  ⁦host⁩  ⁩

Android, iOS

—

Host health, sampled without forking (⁦  ⁦simee-host⁩  ⁩): load averages and CPU count; memory pressure (macOS: the ⁦kernel's⁩ ⁦  ⁦kern.memorystatus_vm_pressure_level⁩  ⁩ and ⁦  ⁦kern.memorystatus_level⁩  ⁩; Linux: MemAvailable and PSI, ⁦  ⁦psi⁩  ⁩ null when the kernel has it off) and swap; free disk on the data volume; thermal (macOS: ⁦  ⁦NSProcessInfo.thermalState⁩  ⁩; Linux: thermal zones with trip margins, the cpufreq cap, Intel throttle counters; ⁦  ⁦available: false⁩  ⁩ and null fields when a host has none); power (source, battery charge, charging, time remaining, Low Power Mode or the ACPI platform profile, cpufreq governor; the macOS energy mode is unavailable because only ⁦  ⁦pmset⁩  ⁩ reads it); ⁦1/5/15-minute⁩ averages from a 1 s ring (including samples spent in each thermal state and throttle events); the load trend; and a verdict (⁦  ⁦admit⁩  ⁩, ⁦  ⁦hold⁩  ⁩, ⁦  ⁦backoff⁩  ⁩) with ⁦  ⁦reason⁩  ⁩ (the deciding signal) and ⁦  ⁦reasons⁩  ⁩ (every signal, each prefixed ⁦  ⁦load:⁩  ⁩, ⁦  ⁦memory:⁩  ⁩, ⁦  ⁦thermal:⁩  ⁩ or ⁦  ⁦power:⁩  ⁩). Thermal ⁦  ⁦serious⁩  ⁩ holds and ⁦  ⁦critical⁩  ⁩ backs off; on battery or Low Power Mode holds, and under ⁦20%⁩ charge on battery backs off; thresholds (load ⁦1.5⁩ per CPU, 8 GiB hold, 4 GiB backoff) are ⁦spectra's⁩, with memory judged by the ⁦kernel's⁩ level on macOS. A CLI call has one sample; a server (⁦  ⁦simee serve⁩  ⁩) keeps the history while something reads it: the sampler runs only while ⁦  ⁦host⁩  ⁩, ⁦  ⁦devices_usage⁩  ⁩, an admission check or the ⁦desktop's⁩ panel read it, and parks 60 s after the last read (an idle server samples nothing). A read on a parked sampler takes one sample at once (two, 250 ms apart, on a Linux host that counts throttle events, so a throttled host holds on its first check) and starts the history over, so the averages cover only the time since, and ⁦  ⁦history_note⁩  ⁩ says so (set while under 15 minutes of history; the verdict then rests on the newest sample and the ⁦kernel's⁩ own load average)

⁦  ⁦devices_usage⁩  ⁩

Android, iOS

iOS: set?

Which running devices load the host, from the same 1 s sampler as ⁦  ⁦host⁩  ⁩ and without forking (⁦  ⁦simee-host⁩  ⁩'s ⁦  ⁦usage⁩  ⁩; one libproc pass over the process table per sample, about ⁦0.7⁩ ms with ⁦~1300⁩ host processes): each ⁦device's⁩ processes are an iOS ⁦simulator's⁩ ⁦  ⁦launchd_sim⁩  ⁩ tree (its UDID from the ⁦  ⁦launchd_bootstrap.plist⁩  ⁩ path), a simee ⁦  ⁦emu⁩  ⁩ started for an AVD with its children, or a stock ⁦emulator's⁩ ⁦  ⁦qemu-system-*⁩  ⁩ that names an AVD, runs from the ⁦SDK's⁩ ⁦  ⁦emulator/qemu/⁩  ⁩ or has an ⁦  ⁦emulator⁩  ⁩ launcher above it (with its children and launchers; a bare qemu from colima or lima is not a device). Each row has ⁦  ⁦id⁩  ⁩ (UDID or AVD name), ⁦  ⁦name⁩  ⁩, ⁦  ⁦platform⁩  ⁩, ⁦  ⁦form_factor⁩  ⁩, ⁦  ⁦sub_platform⁩  ⁩, ⁦  ⁦kind⁩  ⁩ (⁦  ⁦simulator⁩  ⁩, ⁦  ⁦emu⁩  ⁩, ⁦  ⁦emulator⁩  ⁩), ⁦  ⁦pid⁩  ⁩ (the root), ⁦  ⁦pids⁩  ⁩, ⁦  ⁦cpu_pct⁩  ⁩ (percent of one core, ⁦  ⁦{"1s", "1m"}⁩  ⁩, from cumulative ⁦CPU-time⁩ deltas: a call never sleeps to measure), ⁦  ⁦resident_bytes⁩  ⁩, ⁦  ⁦footprint_bytes⁩  ⁩ (Activity ⁦Monitor's⁩ Memory: compressed and swapped pages included; libproc has no ⁦per-process⁩ compressed size), ⁦  ⁦disk_read_bytes_per_s⁩  ⁩ and ⁦  ⁦disk_write_bytes_per_s⁩  ⁩, and ⁦  ⁦energy_w⁩  ⁩ (watts from the ⁦kernel's⁩ ⁦per-process⁩ energy counter; null where it has none, and 0 in a macOS VM, whose counters stay at zero); rows are costliest first (⁦1-minute⁩ CPU, then footprint). ⁦  ⁦simee⁩  ⁩ is ⁦simee's⁩ own processes (⁦  ⁦simee⁩  ⁩ ⁦serve/CLI/MCP⁩, ⁦  ⁦simee-desktop⁩  ⁩, an ⁦  ⁦emu⁩  ⁩ that runs no AVD, and what they started that ⁦isn't⁩ a device); ⁦  ⁦host⁩  ⁩ has ⁦  ⁦cpus⁩  ⁩, ⁦  ⁦cpu_pct⁩  ⁩ (busy, percent of one core), ⁦  ⁦memory_total_bytes⁩  ⁩, the devices' totals and ⁦  ⁦devices_share_pct⁩  ⁩ / ⁦  ⁦simee_share_pct⁩  ⁩ of the busy CPU. A pid is one process only with its start time: a reused pid is a new process, and one that started since the last sample counts whole. A device younger than a minute is rated over its life; ⁦  ⁦window_s⁩  ⁩ says what the windows span. The first call after the sampler starts (a CLI call, the first read of a ⁦  ⁦simee serve⁩  ⁩, or the first after it parked) waits for the second sample; macOS only (⁦  ⁦available: false⁩  ⁩ elsewhere)

⁦  ⁦form_factors⁩  ⁩

Android, iOS

platform?, ⁦form_factor⁩?

Every form factor on every platform: ⁦sub-platform⁩, inputs and reference profile, or why ⁦it's⁩ unsupported

⁦  ⁦devices⁩  ⁩

Android, iOS

booted?, ⁦platform?(android|ios)⁩, ⁦form_factor⁩?; iOS: set?

List devices with their platform, form factor and ⁦sub-platform⁩

⁦  ⁦runtimes⁩  ⁩

Android, iOS

platform?; iOS: set?

List installed runtimes (Android: system images)

⁦  ⁦device_types⁩  ⁩

Android, iOS

platform?; iOS: set?

List device types. Android: the hardware a new AVD follows (phone and tablet, the foldables ⁦pixel_fold⁩ and ⁦surface_duo⁩, and the SDK definitions for Wear OS, TV, Automotive and Android ⁦XR's⁩ headset and glasses), each with its screen, the scale its dpi over 160; ⁦  ⁦create⁩  ⁩ takes its form factor, and a ⁦foldable's⁩ identifier as ⁦  ⁦device⁩  ⁩

⁦  ⁦create⁩  ⁩

Android, iOS

name, ⁦platform?(ios|android)⁩, ⁦form_factor⁩?, ⁦admission?(ignore|refuse)⁩; iOS: ⁦device_type⁩, runtime, set?; Android: ⁦system_image⁩, ⁦device?(pixel_fold|surface_duo)⁩

Create a device. ⁦form_factor⁩ is checked against the device type ⁦(iOS)⁩ or the system image ⁦(Android)⁩ and shapes a new AVD. Returns the device with ⁦  ⁦admission⁩  ⁩, what booting it would do to the host (as ⁦  ⁦admission_check⁩  ⁩); admission refuse fails fast, creating nothing, unless the verdict is admit

⁦  ⁦delete⁩  ⁩

Android, iOS

device; iOS: set?

Delete a device

⁦  ⁦boot⁩  ⁩

Android, iOS

device, ⁦timeout_s⁩?, ⁦admission?(ignore|refuse|wait)⁩, ⁦admission_timeout_s⁩?; iOS: env?, shaped?, settle?, ⁦settle_cpu_pct⁩?, ⁦settle_window_s⁩?, ⁦settle_foreground?(true)⁩, ⁦settle_timeout_s⁩?, ⁦profile?("slim")⁩, set?; Android: ⁦audio?(false)⁩, ⁦camera_back⁩?, ⁦camera_front⁩?

Boot and wait until finished (iOS: env is the device ⁦launchd's⁩ environment, shaped injects the network shaper; settle also waits up to ⁦settle_timeout_s⁩ ⁦(600)⁩ until the ⁦device's⁩ processes use under ⁦settle_cpu_pct⁩ ⁦(10)⁩ % of a core for ⁦settle_window_s⁩ ⁦(10)⁩ s (⁦settle_foreground⁩, the default: counting only ⁦foreground-QoS⁩ CPU) and returns the timings with ⁦cpu_pct⁩, ⁦foreground_cpu_pct⁩, ⁦background_cpu_pct⁩ and ⁦cpu_s⁩ (⁦CPU-seconds⁩ the tree used since the boot; for a device already booted, since the first sample), settled false if it ran out of time; profile turns off a named set of daemons (written before the boot of a ⁦shut-down⁩ device, so they never start); Android: starts emu and waits for ⁦sys.boot_completed⁩, silent unless audio, which plays the device on the ⁦host's⁩ default output; ⁦camera_back⁩ and ⁦camera_front⁩ link a camera source first, as ⁦camera_link⁩ does, saved for later boots too). Returns ⁦  ⁦admission⁩  ⁩, what the device would do to the host (as ⁦  ⁦admission_check⁩  ⁩; nothing for one already booted): admission ignore, the default, only reports it; refuse fails fast unless the verdict is admit; wait waits until it is (at most ⁦admission_timeout_s⁩, 600) and returns ⁦  ⁦pacing⁩  ⁩

⁦  ⁦boot_many⁩  ⁩

Android, iOS

devices, concurrency?, ⁦timeout_s⁩?, ⁦admission?(ignore|refuse|wait)⁩, ⁦admission_timeout_s⁩?; iOS: env?, shaped?, ⁦settle?(default⁩ true), ⁦settle_cpu_pct⁩?, ⁦settle_window_s⁩?, ⁦settle_foreground?(true)⁩, ⁦settle_timeout_s⁩?, ⁦profile?("slim")⁩, set?; Android: ⁦first_port?(5554)⁩

Boot several devices of one platform, at most ⁦  ⁦concurrency⁩  ⁩ at once (default: a quarter of the ⁦host's⁩ CPUs, at least 2), each as ⁦  ⁦boot⁩  ⁩ does (iOS: a slot is held until the device settles, unless settle is false); returns each ⁦device's⁩ timings or error, failed and unsettled counts, and the time until all were done. Android: each on its own console port from ⁦first_port⁩ up. Returns ⁦  ⁦admission⁩  ⁩ for the devices not running yet (as ⁦  ⁦admission_check⁩  ⁩): admission ignore, the default, only reports it; refuse fails fast unless the verdict is admit; wait paces the boots, starting as many as the host admits and asking again every 5 s, and returns ⁦  ⁦pacing⁩  ⁩ (each start and wait); devices not admitted within ⁦admission_timeout_s⁩ ⁦(600)⁩ are not started and fail with the reason

⁦  ⁦admission_check⁩  ⁩

Android, iOS

⁦platform(ios|android)⁩, ⁦form_factor?(phone)⁩, ⁦count?(1)⁩

Whether the host can take ⁦  ⁦count⁩  ⁩ more devices of a platform and form factor now: each ⁦one's⁩ predicted cost while booting and idle (CPU % of a core and memory: ⁦docs/benchmarks.md's⁩ numbers until this process has seen idle devices of the kind running, then this ⁦host's⁩), what they would do to memory used and the ⁦1-minute⁩ load, and an ⁦admit/hold/backoff⁩ verdict (on an idle sampler the check takes one sample, or two 250 ms apart where Linux counts throttle events, and judges that with the ⁦kernel's⁩ own load average; ⁦  ⁦host_basis⁩  ⁩ says so) (the ⁦  ⁦host⁩  ⁩ verdict, which still applies, and the prediction: hold at ⁦85%⁩ memory used or the ⁦host's⁩ load limit, back off at ⁦95%⁩) with every reason and how many of them are admissible now. ⁦  ⁦boot⁩  ⁩, ⁦  ⁦boot_many⁩  ⁩, ⁦  ⁦create⁩  ⁩ and ⁦  ⁦clone⁩  ⁩ return the same as ⁦  ⁦admission⁩  ⁩. See Admission

⁦  ⁦settle⁩  ⁩

Android, iOS

device, ⁦cpu_pct⁩?, ⁦window_s⁩?, ⁦foreground?(true)⁩, ⁦timeout_s?(600)⁩; iOS: set?

Wait until a booted device is quiet: its processes under ⁦cpu_pct⁩ ⁦(10)⁩ % of a core for ⁦window_s⁩ ⁦(10)⁩ s (foreground, the default: only ⁦foreground-QoS⁩ CPU counts), SpringBoard running; returns ⁦settle_s⁩, ⁦cpu_pct⁩, ⁦foreground_cpu_pct⁩ and ⁦background_cpu_pct⁩, and ⁦cpu_s⁩ and ⁦background_cpu_s⁩ (⁦CPU-seconds⁩ used since the first sample). Android: the ⁦guest's⁩ processes and kernel threads from ⁦/proc⁩ over adb, once a second on the ⁦guest's⁩ clock (the ⁦probe's⁩ own shell left out), all of it foreground (no QoS split: ⁦background_cpu_pct⁩ is 0), with ⁦sys.boot_completed⁩ and ⁦system_server⁩ running in place of SpringBoard

⁦  ⁦profile⁩  ⁩

Android, iOS

device, ⁦name(slim)⁩, undo?; iOS: set?

Turn a named set of daemons off on a booted device (iOS: disabled in its launchd database and stopped; Android: packages disabled for user 0, ⁦  ⁦pm disable-user⁩  ⁩; both stay off across reboots), or with undo back on (iOS: from the next boot; Android: at once); returns how many changed, those that failed and those that ⁦weren't⁩ loaded (Android: not on this image). ⁦Android's⁩ slim: Device Health Services, Digital Wellbeing, Data Restore Tool and Google Partner Setup (savings not yet measured)

⁦  ⁦clone⁩  ⁩

Android, iOS

device, name, ⁦admission?(ignore|refuse)⁩; iOS: set?

Create a device as a copy of a ⁦shut-down⁩ one. iOS: a simulator (data, settings, apps; APFS clones of its files); Android: an AVD from a golden that has booted under simee (⁦copy-on-write⁩ clones of its disks). A ⁦booted-once⁩ ⁦template's⁩ copies skip the ⁦first-boot⁩ work. Returns the copy with ⁦  ⁦admission⁩  ⁩, as ⁦  ⁦create⁩  ⁩ does

⁦  ⁦export⁩  ⁩

Android, iOS

device, to; iOS: set?

Pack a ⁦shut-down⁩ device into a portable bundle at ⁦  ⁦to⁩  ⁩ (a ⁦.tar⁩ file, else a new directory) with no host path in it: ⁦manifest.json⁩ and ⁦content-addressed⁩ chunks (1 MiB, BLAKE3, each ⁦LZ4-compressed⁩; zero ranges stored as extents). Android: an AVD that has booted under simee (its simee disks, ⁦config.ini⁩ without host paths, ⁦boot.prop⁩) and its system ⁦image's⁩ identity. iOS: the ⁦simulator's⁩ data directory (settings, apps and their containers, keychain) as ⁦data/⁩, its directories, symlinks and modes in the ⁦manifest's⁩ tree, without the contents of ⁦Library/Caches⁩ and tmp (listed in ⁦  ⁦left_out⁩  ⁩) or symlinks to host paths (in ⁦  ⁦dropped⁩  ⁩), and its device type and runtime (identifier and build); only reads the device, refusing one that is booted or a ⁦  ⁦to⁩  ⁩ inside it. Captures disks, not RAM (resume is a cold boot). Returns sizes, the identity and the secrets inventory

⁦  ⁦import⁩  ⁩

Android, iOS

from, name; iOS: set?; Android: ⁦allow_mismatch?(false)⁩

Create device ⁦  ⁦name⁩  ⁩ from a bundle ⁦  ⁦export⁩  ⁩ wrote, on the platform its manifest names (⁦  ⁦platform⁩  ⁩ only checks it). Checks every chunk and file hash and writes nothing unless it all succeeds. Android: finds the system image by content (API, tag, ABI, revision, BLAKE3 of its images, fingerprint) and refuses, naming what to install, when none matches (⁦allow_mismatch⁩: use another installed revision of the same API, tag and ABI, named in ⁦  ⁦mismatch⁩  ⁩); drops ⁦config.ini⁩ keys holding host paths (listed in ⁦  ⁦dropped⁩  ⁩); keeps the exported ⁦device's⁩ guest identity (⁦ro.serialno⁩, ⁦android_id⁩). iOS: finds the runtime by identifier and build and refuses, naming what to install, when it ⁦isn't⁩ installed; creates a simulator of the ⁦bundle's⁩ device type on that exact build in the set and puts the ⁦bundle's⁩ data directory in as its own (a new UDID; the keychain and app data come along). It refuses a tree with two paths that are one on a ⁦case-insensitive⁩ volume (case and Unicode normalization folded) or a path under a symlink in any such spelling, and a symlink to a host path or out of ⁦data/⁩; it writes nothing through a symlink. An iOS bundle carries app executables and data its apps trust: import one as you would run its code

⁦  ⁦shutdown⁩  ⁩

Android, iOS

device; iOS: set?

Shut down

⁦  ⁦erase⁩  ⁩

Android, iOS

device; iOS: set?

Erase content and settings (shut down first). Android: ⁦simee's⁩ user data (the userdata, cache and metadata disks in ⁦  ⁦<avd>/simee/⁩  ⁩) is removed and cloned again from the ⁦image's⁩ golden when one has the ⁦AVD's⁩ shape, so the next boot is warm; without one the next boot is a first boot. The AVD keeps its name and config, and the stock ⁦emulator's⁩ own files are left alone (its ⁦  ⁦-wipe-data⁩  ⁩ clears them)

⁦  ⁦link⁩  ⁩

Android, iOS

devices?, ⁦kind?(watch-phone|car-phone|headset-phone|network)⁩, ports?, active?, link?; iOS: set?

Link two devices that work together. kind is inferred from the form factors (watch + phone: ⁦watch-phone⁩; vision + phone: ⁦headset-phone⁩); other form factors (two watches, a watch and an iPad) are refused naming what each device is. iOS ⁦watch-phone⁩: a CoreSimulator device pair (as ⁦  ⁦simctl pair⁩  ⁩), kept in the device set, so it outlives the server and a host reboot; a watch already paired with another phone is refused; active true makes it the ⁦phone's⁩ active watch (as ⁦  ⁦pair_activate⁩  ⁩: a phone may have several watches, one of them active). ⁦headset-phone⁩ (a visionOS or Android XR headset with a phone of the same platform): saved in each ⁦member's⁩ ⁦links.json⁩; on iOS mechanism network (simulators share the ⁦host's⁩ network: a port one listens on is ⁦127.0.0.1⁩: in the other); on Android mechanism ⁦net-forward⁩: ports ({"": ⁦[8080]⁩}) names the ports members listen on, each forwarded to a host port (⁦  ⁦adb forward⁩  ⁩) that the other device dials at ⁦10.0.2.2:<host_port>⁩ (the host at ⁦127.0.0.1⁩); a member that ⁦isn't⁩ running gets its forward when the devices are linked again, which also ⁦re-adds⁩ forwards a reboot or an adb server restart dropped. Android XR glasses are refused until the Bluetooth bridge ⁦(#435)⁩; Wear OS and Android Automotive links are not yet (⁦#445⁩, ⁦#439⁩). Linking devices that are linked returns their link; link (an id) names an existing one. Returns ⁦  ⁦link⁩  ⁩: id (a ⁦pair's⁩ UUID, or ⁦lnk-⁩…), kind, mechanism (⁦coresim-pair⁩, network, ⁦net-forward⁩), state (active: both booted and, for a pair, connected; pending: a member is shut down, the pair ⁦isn't⁩ connected yet or a port ⁦isn't⁩ forwarded; broken: a member is gone) with reason, since, active (watch pairs; null otherwise), members (device, name, platform, role, running) and, for ⁦net-forward⁩, forwards (device, port, ⁦host_port⁩)

⁦  ⁦unlink⁩  ⁩

Android, iOS

link?, device?, kind?; iOS: set?

Remove a link (link, an id) or every link of device (of kind). iOS watch pairs: CoreSimulator unpairs it (as ⁦  ⁦simctl unpair⁩  ⁩) and may shut the watch down and erase it while doing so. ⁦headset-phone⁩: its forwards are removed and every ⁦member's⁩ copy. Returns unlinked (the ids) and teardown, one entry per link: id, and for a pair watch and ⁦shut_down⁩ (the watch ran and was shut down); error when a step failed

⁦  ⁦links⁩  ⁩

Android, iOS

device?, kind?, ⁦state?(pending|active|broken)⁩; iOS: set?

Every link (of one device, of a kind, in a state), each as ⁦  ⁦link⁩  ⁩ returns it, its state derived now from the device set, the saved links and whether each member runs (no device ⁦I/O⁩: a forward the adb server dropped shows in ⁦link_status⁩)

⁦  ⁦link_status⁩  ⁩

Android, iOS

link?, device?; iOS: set?

One link (by id, or the one device is in) as ⁦  ⁦links⁩  ⁩ shows it, probed now, with checks, each with ok and detail: whether each member exists and runs; for a watch pair whether CoreSimulator has it connected and whether it is the ⁦phone's⁩ active watch; for a ⁦headset-phone⁩ on iOS the host network; for ⁦net-forward⁩ whether each forward is still the adb ⁦server's⁩ and whether something in the device listens on its port (a forward gone or a port nothing listens on yet leaves it pending)

⁦  ⁦screen⁩  ⁩

Android, iOS

device, ⁦display?(main|outer|inner|carplay|car)⁩; iOS: set?

Screen size in pixels, the space tap, swipe and touch take (a folded Android foldable: the size its guest lays out for, a Pixel ⁦Fold's⁩ 1080x2092, as ⁦uiautomator's⁩ bounds). display ⁦(iOS)⁩: main is the screen in use (an unfolded iPhone ⁦Duo's⁩ inner one), outer and inner an iPhone ⁦Duo's⁩ two, carplay an ⁦iPhone's⁩ CarPlay screen; car: Android ⁦Auto's⁩ head unit ⁦(car_start)⁩

⁦  ⁦screenshot⁩  ⁩

Android, iOS

device, path?, ⁦display?(main|outer|inner|carplay|car)⁩; iOS: set?

PNG to path, else base64 in ⁦  ⁦png⁩  ⁩ (a folded Android foldable: its outer screen as the scanout shows it, a Pixel ⁦Fold's⁩ 949x1840; an iPhone ⁦Duo's⁩ inner screen as its framebuffer holds it, 2007x2853; display car: Android ⁦Auto's⁩ head unit, see ⁦car_start⁩)

⁦  ⁦wait_idle⁩  ⁩

iOS

device, ⁦quiet_ms?(300)⁩, ⁦timeout_ms?(10000)⁩, ⁦screenshot?(false)⁩, path?, ⁦display?(main|outer|inner|carplay)⁩, set?

Wait until the screen is still: no frame has changed it for ⁦quiet_ms⁩, at most ⁦timeout_ms⁩ (fails if it kept changing). Follows the ⁦display's⁩ frame callback and surface seed, reading no pixels while nothing is presented; where the seed ticks on a still screen (iOS ⁦26.5⁩, 10 times a second) a content hash decides. Returns ⁦waited_ms⁩ and frames (seed changes seen), and with screenshot the still screen as screenshot returns it (path, else base64 in ⁦  ⁦png⁩  ⁩)

⁦  ⁦stream_start⁩  ⁩

Android, iOS

device, ⁦whip_url⁩, token?, ⁦fps?(30)⁩, ⁦max_size?(1280)⁩, ⁦bitrate?(2500000)⁩, ⁦audio?(false)⁩, ⁦input?(false)⁩; iOS: set?

Stream the screen as ⁦H.264⁩ over WebRTC to a WHIP endpoint (plaintext http to a loopback host only, ⁦e.g⁩. ⁦MediaMTX's⁩ ⁦  ⁦http://127.0.0.1:8889/<path>/whip⁩  ⁩), with token as its bearer token; ⁦max_size⁩ caps the longest side (0: full size), bitrate is in ⁦bit/s⁩; input offers the ⁦  ⁦simee-input⁩  ⁩ data channel, whose touches, keys, text, buttons, rotations, folds and scrolls reach the device (a server that refuses the data channel, as MediaMTX does, gets the stream without it: the ⁦result's⁩ input is false and ⁦input_note⁩ says why). One stream per device and URL, living in this process (⁦  ⁦simee serve⁩  ⁩) on a 30 s lease that ⁦stream_status⁩ renews: a stream nobody renews is stopped. Returns ⁦stream_id⁩, ⁦whip_resource⁩ and ⁦lease_ttl_s⁩ (and, with input, whether it is on). Encoded on macOS by VideoToolbox (iOS and Android devices) and on Linux by OpenH264 in a build with ⁦  ⁦--features openh264⁩  ⁩ (Android devices only); audio ⁦isn't⁩ streamed yet

⁦  ⁦stream_status⁩  ⁩

Android, iOS

⁦stream_id⁩

A ⁦stream's⁩ state (starting, running, ended and why), its stages in the order reached (requested, ⁦first_encoded_frame⁩, ⁦whip_connected⁩, ended; ms since requested) and stats (encoded, sent, keyframes, bytes, fps, ⁦bitrate_bps⁩, the ⁦publisher's⁩ ⁦bitrate_estimate_bps⁩, the viewers' pli and fir keyframe requests, input events and errors); renews its lease

⁦  ⁦stream_stop⁩  ⁩

Android, iOS

⁦stream_id⁩

Stop a stream: ends its encode loop and sends the WHIP DELETE; its last status, with deleted

⁦  ⁦streams⁩  ⁩

Android, iOS

device?; iOS: set?

This ⁦process's⁩ streams (or one ⁦device's⁩), each as ⁦stream_status⁩ shows it, without renewing a lease

⁦  ⁦contrast_check⁩  ⁩

Android, iOS

device, region?, scale?, ⁦appearance?(current|both)⁩, ⁦restore?(light|dark)⁩, ⁦settle_ms?(500)⁩, path?, ⁦display?(main|outer|inner|carplay)⁩

Text and controls below WCAG contrast in a screenshot, from pixels alone: finds ⁦text-like⁩ regions, estimates each ⁦one's⁩ foreground and background, and reports those under ⁦4.5:1⁩ (normal text) or ⁦3:1⁩ (large text of about 18 pt, icons and controls) with their box, the two colours and the ratio, and the screenshot with the findings boxed (⁦  ⁦png⁩  ⁩, or written to path). Text over a photo or a busy background has no one background and ⁦isn't⁩ judged. appearance both ⁦(iOS)⁩ checks the light and the dark UI (switches, waits ⁦settle_ms⁩, checks) and leaves the device in restore (default light); Android ⁦can't⁩ switch appearance yet. region is {x, y, width, height} in pixels; scale is pixels per point (default: the ⁦device's⁩, else 1)

⁦  ⁦tap⁩  ⁩

Android, iOS

device, x, y, ⁦hold_ms⁩?, ⁦display?(main|outer|inner|carplay|car)⁩

Tap at pixels, held ⁦hold_ms⁩ (default: iOS 10, Android 60) (display, iOS only: an iPhone ⁦Duo's⁩ outer or inner screen, an ⁦iPhone's⁩ CarPlay screen; car: Android ⁦Auto's⁩ head unit, see ⁦car_start⁩)

⁦  ⁦swipe⁩  ⁩

Android, iOS

device, x1, y1, x2, y2, ⁦duration_ms⁩?, settle?, ⁦display?(main|outer|inner|carplay|car)⁩, ⁦edge?(top|bottom|left|right⁩; iOS)

Swipe between pixels over ⁦duration_ms⁩ (default 300; iOS sends its samples on schedule, so a busy host ⁦doesn't⁩ stretch it); with edge ⁦(iOS)⁩ the touch comes in from that screen edge, as a drag from ⁦Simulator.app's⁩ bezel: home and the app switcher from the bottom, Notification Center and Control Center from the top (⁦Android's⁩ edge gestures need only the start point)

⁦  ⁦touch⁩  ⁩

Android, iOS

device, x, y, ⁦phase(down|move|up)⁩, ⁦display?(main|outer|inner|carplay)⁩, ⁦edge?(top|bottom|left|right⁩; iOS)

One raw touch sample

⁦  ⁦button⁩  ⁩

Android, iOS

device, ⁦button(home|lock|side|siri|apple-pay|action⁩ | ⁦back|volume-up|volume-down|recents|menu|up|down|left|right|select|play-pause⁩), ⁦hold_ms⁩?

Press a hardware button, as the ⁦device's⁩ form factor has it: the Siri Remote on Apple TV (⁦menu/back⁩, home, select, ⁦play-pause⁩, arrows) and the ⁦D-pad⁩ on Android TV; on Apple Watch home is the ⁦crown's⁩ press. Held ⁦hold_ms⁩ (default: 10 for home and lock on an iPhone or iPad, else 80)

⁦  ⁦type⁩  ⁩

Android, iOS

device, text

Type on the hardware keyboard (iOS: a key report every 3 ms)

⁦  ⁦key⁩  ⁩

Android, iOS

device, usage

Press a key by HID usage (iOS: down and up 3 ms apart)

⁦  ⁦open_url⁩  ⁩

Android, iOS

device, url

Open a URL (Android: ⁦  ⁦am start -a VIEW⁩  ⁩)

⁦  ⁦install⁩  ⁩

Android, iOS

device, path

Install an ⁦.app⁩ (Android: an ⁦.apk⁩ with ⁦  ⁦adb install -r⁩  ⁩, an ⁦.aab⁩ through bundletool when it is on the PATH)

⁦  ⁦uninstall⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩

Uninstall an app (Android: the package name; ⁦  ⁦pm uninstall⁩  ⁩)

⁦  ⁦launch⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, restart?; iOS: args?, env?, shaped?, ⁦malloc_stack_logging⁩?

Launch (iOS: with arguments and environment, shaped injecting the network shaper, ⁦malloc_stack_logging⁩ setting ⁦MallocStackLogging=1⁩ for ⁦mem_leaks⁩' stacks and ⁦mem_history⁩; Android: the ⁦package's⁩ launcher activity); restart: terminate a running instance first, default true (Android: ⁦  ⁦am start -S⁩  ⁩); false brings a running app to the front; returns pid (Android: and the ⁦  ⁦activity⁩  ⁩ it started)

⁦  ⁦terminate⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩

Terminate an app (Android: ⁦  ⁦am force-stop⁩  ⁩)

⁦  ⁦apps⁩  ⁩

Android, iOS

device; Android: all?

Installed bundle ids (Android: the ⁦third-party⁩ packages, with all the ⁦system's⁩ too)

⁦  ⁦appearance⁩  ⁩

iOS

device, ⁦mode(light|dark)⁩

Light or dark UI

⁦  ⁦location⁩  ⁩

Android, iOS

device, latitude, longitude

Simulated location

⁦  ⁦privacy⁩  ⁩

iOS

device, ⁦action(grant|revoke)⁩, service, ⁦bundle_id⁩

Privacy permission

⁦  ⁦push⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, payload; iOS: set?

Deliver a push to an app. iOS: an APNs payload ⁦(object)⁩. Android: an FCM message, {data, notification}: delivered to the ⁦app's⁩ Firebase receiver ⁦(com.google.android.c2dm.intent.RECEIVE)⁩ as Google Play services delivers one, as root (⁦adbd's⁩ or ⁦  ⁦su 0⁩  ⁩, which ⁦google_apis⁩ images have); data values are sent as strings, and ⁦notification's⁩ fields (FCM ⁦v1's⁩ names: title, body, ⁦channel_id⁩, ..., sent as ⁦gcm.n⁩., ⁦channel_id⁩ as ⁦gcm.n.android_channel_id⁩) make it a notification message the Firebase SDK shows as the ⁦app's⁩ own while the app is in the background. It is delivered as a ⁦normal-priority⁩ message, and a ⁦force-stopped⁩ app gets nothing, as with real FCM

⁦  ⁦status_bar⁩  ⁩

Android, iOS

device, time?, ⁦data_network⁩?, ⁦wifi_mode⁩?, ⁦wifi_bars⁩?, ⁦cellular_mode⁩?, ⁦cellular_bars⁩?, operator?, ⁦battery_state⁩?, ⁦battery_level⁩?; iOS: set?

Override status bar. Android: ⁦SystemUI's⁩ demo mode, which replaces the whole status bar: time as a time of day ⁦(HH:MM)⁩; ⁦data_network⁩ ⁦lte-a⁩ shows ⁦LTE+⁩, ⁦5g-uwb⁩ and ⁦5g-uc⁩ ⁦5G+⁩, hide no type, wifi the ⁦Wi-Fi⁩ icon; ⁦Wi-Fi's⁩ ⁦0-3⁩ bars scale to ⁦Android's⁩ ⁦0-4⁩; searching and failed show no bars; charging and charged show the battery plugged in; no operator (the demo status bar has no carrier name)

⁦  ⁦clear_status_bar⁩  ⁩

Android, iOS

device; iOS: set?

Remove status bar overrides (Android: leaves demo mode)

⁦  ⁦content_size⁩  ⁩

iOS

device, size

Dynamic Type size (name or ⁦0-11⁩)

⁦  ⁦increase_contrast⁩  ⁩

Android, iOS

device, on; iOS: set?

Increase Contrast (Android: ⁦high-contrast⁩ text, ⁦  ⁦high_text_contrast_enabled⁩  ⁩, and from API 34 the color contrast, ⁦  ⁦contrast_level⁩  ⁩ ⁦1.0⁩ or ⁦0.0⁩)

⁦  ⁦dynamic_island⁩  ⁩

iOS

device, suppressed

Hide the Dynamic Island

⁦  ⁦backlight⁩  ⁩

iOS

device, on

Display backlight

⁦  ⁦keyboard_language⁩  ⁩

iOS

device, language, set?

Software keyboard language (not on Android: a ⁦keyboard's⁩ language is its input ⁦method's⁩ subtype, which only that input ⁦method's⁩ settings choose; no host command sets it)

⁦  ⁦hardware_keyboard⁩  ⁩

Android, iOS

device, on; iOS: set?

Connect the hardware keyboard (Android: the ⁦emulator's⁩ keyboard stays attached; off shows the ⁦on-screen⁩ keyboard beside it and on hides it, ⁦  ⁦show_ime_with_hard_keyboard⁩  ⁩)

⁦  ⁦ca_debug⁩  ⁩

iOS

device, option, on

Render overlay (see ⁦ca_debug_state⁩ for names)

⁦  ⁦ca_debug_state⁩  ⁩

iOS

device

Every render overlay and whether it is on

⁦  ⁦reset_keychain⁩  ⁩

iOS

device, set?

Delete every keychain item

⁦  ⁦memory_warning⁩  ⁩

Android, iOS

device; iOS: set?; Android: ⁦bundle_id⁩?

Simulate a memory warning (Android: ⁦  ⁦am send-trim-memory⁩  ⁩ ⁦RUNNING_CRITICAL⁩ to ⁦bundle_id's⁩ process, by default the foreground ⁦app's⁩)

⁦  ⁦notify⁩  ⁩

Android, iOS

device, name; iOS: state?, set?; Android: ⁦bundle_id⁩?, extras?

Post a Darwin notification (optionally setting its state). Android: a broadcast, ⁦  ⁦am broadcast -a <name>⁩  ⁩ as the shell user, to ⁦bundle_id's⁩ receivers or every registered one (since Android 8 a manifest receiver hears an implicit broadcast only with ⁦bundle_id⁩; only an exported receiver hears the shell user, so one with ⁦android:exported="false⁩" or registered ⁦RECEIVER_NOT_EXPORTED⁩ gets nothing while the call still succeeds), with extras by JSON type (string, null, boolean, integer: int or long, other numbers: float); a protected system broadcast is refused, and a broadcast has no state

⁦  ⁦biometric⁩  ⁩

Android, iOS

device, ⁦action(match|nomatch|enroll|unenroll)⁩, face?; iOS: set?; Android: ⁦finger_id⁩?

Touch ID / Face ID. Android: the fingerprint sensor (the ⁦console's⁩ ⁦  ⁦finger touch <id>⁩  ⁩ then ⁦  ⁦finger remove⁩  ⁩): match touches an enrolled finger (⁦finger_id⁩, default 1), nomatch one that ⁦isn't⁩ (default 99); enroll, unenroll and face are ⁦iOS's⁩ (Android enrolls fingers in Settings, each touch a match)

⁦  ⁦exec⁩  ⁩

Android, iOS

device, program, args?, env?; Android: ⁦timeout_s⁩?, ⁦max_bytes⁩?

Run a program inside the device; returns ⁦stdout/stderr⁩. Android: over adb as the shell user, the argv passed through unchanged (quoted, so nothing in it is expanded; a program ⁦can't⁩ start with ⁦  ⁦-⁩  ⁩), with ⁦exit_code⁩; past ⁦timeout_s⁩ (30, at most 86400) it is stopped and the call fails, and a stream that reaches ⁦max_bytes⁩ (8 MiB) is cut there (truncated true) and the program stopped if it still ran (⁦exit_code⁩ null). Stopping it stops its process group, so what it started too

⁦  ⁦logs⁩  ⁩

iOS

device, last?, predicate?

Unified log lines (default last 1m)

⁦  ⁦processes⁩  ⁩

Android, iOS

device

Device processes with CPU and memory. Android: the ⁦guest's⁩ ⁦  ⁦ps -A⁩  ⁩ (cpu is CPU time over the ⁦process's⁩ life), each app process with its package

⁦  ⁦kill⁩  ⁩

Android, iOS

device, pid | ⁦bundle_id⁩, signal?; Android: force?

Signal a device process (default 15, SIGTERM). iOS takes pid only. Android: ⁦bundle_id⁩ stops the app instead (⁦  ⁦am force-stop⁩  ⁩); a process the shell user may not signal is signalled as root (⁦  ⁦su 0⁩  ⁩, on ⁦google_apis⁩ images); init, zygote, zygote64, ⁦system_server⁩, surfaceflinger, servicemanager, hwservicemanager, vndservicemanager, vold, lmkd, logd, adbd, netd, installd, ueventd, keystore2 and statsd are refused unless force

⁦  ⁦connections⁩  ⁩

Android, iOS

device; iOS: set?

Open sockets of device processes (Android: the guest ⁦kernel's⁩ ⁦/proc/net/tcp⁩, tcp6, udp and udp6, matched to processes by the socket inodes in ⁦/proc//fd⁩, as root where the image has su; each row has the ⁦socket's⁩ uid, and pid is null for one no process could be matched to, as another ⁦user's⁩ is without root)

⁦  ⁦traffic⁩  ⁩

Android, iOS

device; iOS: set?

Bytes ⁦in/out⁩ per device process (Android: per app uid since boot, from the ⁦kernel's⁩ eBPF mAppUidStatsMap as dumpsys prints it, or ⁦/proc/net/xt_qtaguid/stats⁩ on Android 9 and older; each row has the uid, and pid is the ⁦app's⁩ own process, null when it ⁦isn't⁩ running or the uid is shared)

⁦  ⁦mem_leaks⁩  ⁩

iOS

device, ⁦bundle_id⁩ | pid, raw?, ⁦timeout_s?(120)⁩

Leaked memory of a running app (the ⁦host's⁩ ⁦  ⁦leaks⁩  ⁩): totals, and the leaks grouped by type and allocation stack, most bytes first, each with its instances and stack (innermost frame first; launch with ⁦malloc_stack_logging⁩ for stacks). raw adds the report as printed. See Memory tools

⁦  ⁦mem_heap⁩  ⁩

iOS

device, ⁦bundle_id⁩ | pid, raw?, ⁦timeout_s?(120)⁩

A running ⁦app's⁩ heap by class (the ⁦host's⁩ ⁦  ⁦heap⁩  ⁩): zones, node and byte totals, and every class with its count, bytes and average size, most instances first. raw adds the report as printed

⁦  ⁦mem_vmmap⁩  ⁩

iOS

device, ⁦bundle_id⁩ | pid, raw?, ⁦timeout_s?(120)⁩

A running ⁦app's⁩ memory regions (the ⁦host's⁩ ⁦  ⁦vmmap --summary⁩  ⁩): each region ⁦type's⁩ virtual, resident, dirty, swapped, volatile and empty bytes and count, the malloc zones with allocations and fragmentation, and the totals. raw adds the report as printed

⁦  ⁦mem_history⁩  ⁩

iOS

device, ⁦bundle_id⁩ | pid, address, raw?, ⁦timeout_s?(120)⁩

The allocation stack of an address in a running app (the ⁦host's⁩ ⁦  ⁦malloc_history⁩  ⁩), as events with their stacks; needs the app launched with ⁦malloc_stack_logging⁩ (⁦MallocStackLogging=1⁩ logs live allocations only). raw adds the report as printed

⁦  ⁦containers⁩  ⁩

Android, iOS

device, sizes?; iOS: set?; Android: root?

App data and bundle containers. Android: each ⁦third-party⁩ ⁦app's⁩ data dir (⁦  ⁦data/user/0/<package>⁩  ⁩) and APK dir; the file methods take paths in one ⁦app's⁩ container (⁦  ⁦data/data/<package>⁩  ⁩, ⁦  ⁦data/user/<n>/<package>⁩  ⁩, ⁦  ⁦sdcard/Android/data/<package>⁩  ⁩, the APK dir read only) and reach it through ⁦run-as⁩ for a debuggable app, otherwise as root when adbd is root or ⁦  ⁦su 0⁩  ⁩ works. None of them runs ⁦  ⁦adb root⁩  ⁩ unless given root: true, since it restarts adbd and drops the ⁦device's⁩ adb forwards and open shells

⁦  ⁦ls⁩  ⁩

Android, iOS

device, path?; iOS: set?; Android: root?

List a directory under the device data dir (Android: in an ⁦app's⁩ container)

⁦  ⁦read⁩  ⁩

Android, iOS

device, path; iOS: set?; Android: root?

Read a file (base64; Android: at most 128 MiB)

⁦  ⁦write⁩  ⁩

Android, iOS

device, path, text | base64; iOS: set?; Android: root?

Write a file

⁦  ⁦rm⁩  ⁩

Android, iOS

device, path; iOS: set?; Android: root?

Remove a file or directory

⁦  ⁦du⁩  ⁩

Android, iOS

device, path?; iOS: set?; Android: root?

Size in bytes (Android: of a path in an ⁦app's⁩ container)

⁦  ⁦clear_container⁩  ⁩

Android, iOS

device, path; iOS: set?; Android: root?, ⁦pm_clear⁩?

Empty a container (an ⁦app's⁩ data) without deleting it (Android: or a directory in one. ⁦pm_clear⁩: true clears an ⁦app's⁩ whole data dir with ⁦  ⁦pm clear --user <n>⁩  ⁩ instead, which reaches a release app without root but also stops the app, wipes its external dir and resets its runtime permissions)

⁦  ⁦defaults_read⁩  ⁩

iOS

device, domain

Read a preferences domain

⁦  ⁦defaults_write⁩  ⁩

iOS

device, domain, key, value, type?

Write a preference (type: ⁦string|int|float|bool⁩)

⁦  ⁦prefs_stores⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩

An ⁦app's⁩ preference stores, each with the id the other ⁦prefs_*⁩ methods take: Android ⁦  ⁦shared_prefs/<name>.xml⁩  ⁩ and DataStore ⁦  ⁦datastore/<name>.preferences_pb⁩  ⁩, iOS the ⁦app's⁩ domain (its bundle id) and its ⁦app-group⁩ suites; any other iOS domain is reachable by its name

⁦  ⁦prefs_read⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, store?, fresh?

Every key of an ⁦app's⁩ preference stores (or one) with its typed value, {type, value}: string, int, long, float, double, bool, ⁦string_set⁩ ⁦(Android)⁩, date (ISO 8601), data ⁦(base64)⁩, array and dictionary (iOS; of typed values), and the ⁦read-only⁩ unsupported {native, raw} for what no type holds exactly. iOS reads integers as long and reals as double. Without store, each store answers {store, values} or {store, error}. fresh ⁦(iOS)⁩: read through cfprefsd, one ⁦in-device⁩ call, for writes it ⁦hasn't⁩ flushed to disk yet (it flushes about every 10 s)

⁦  ⁦prefs_write⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, store, key, value, ⁦type(string|int|long|float|double|bool|string_set|date|data|array|dictionary)⁩

Set one key to a typed value (refused when the value ⁦isn't⁩ of its type or the store ⁦can't⁩ hold the type); visible says whether the app sees it now or ⁦after_relaunch⁩, app what was done to the app for it (untouched, stopped, relaunched: a running Android app writes its old values back over the file), with a note on why

⁦  ⁦prefs_delete⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, store, key

Remove one key; visible and app as ⁦prefs_write's⁩

⁦  ⁦prefs_batch⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, store, ⁦ops([{key⁩, type, value} | {key, delete: true}])

Set and remove several keys of one store, all or nothing: every op is checked first (each key once), then the store is written once or not at all (iOS: a batch refused up front changes nothing, but cfprefsd applies an accepted one key by key, so a reader at that moment can see part of it; if the final synchronize fails after the keys were handed over, the error names them and says some may already be live in the running app)

⁦  ⁦prefs_watch⁩  ⁩

Android, iOS

device, ⁦bundle_id⁩, store?, cursor?, ⁦wait_ms⁩?

Changes to an ⁦app's⁩ preference stores (or one), as ⁦  ⁦logs⁩  ⁩ stream does: the first call starts a feed in this process and returns a cursor; a call with it returns the changes since, {store, key, old, new, at}, oldest first, waiting up to ⁦wait_ms⁩ (at most 60000) for one, and the next cursor (reset: the feed restarted, ⁦re-read⁩; missed: changes dropped unread past its 16 MiB; ended: the device stopped or nobody read it for 5 minutes, and a call without a cursor starts anew)

⁦  ⁦crash_reports⁩  ⁩

iOS

device

Host crash reports for this device

⁦  ⁦info⁩  ⁩

Android, iOS

device

Paths and identity

⁦  ⁦network_shape⁩  ⁩

Android, iOS

device, ⁦preset?(offline|3g|edge|lte|lossy|very-bad|none)⁩, offline?, ⁦latency_ms⁩?, ⁦down_kbps⁩?, ⁦up_kbps⁩?, ⁦loss_pct⁩?; iOS: ⁦port_base⁩?, ⁦port_count⁩?, ⁦rules?([{pattern⁩, offline?, ⁦latency_ms⁩?, ⁦down_kbps⁩?, ⁦up_kbps⁩?, ⁦loss_pct⁩?}]), ⁦proxy?(default⁩ true), ⁦inject?(false|true|"launchd"|"boot")⁩, set?

Shape the ⁦device's⁩ network without root. proxy: a shaping ⁦HTTP/SOCKS⁩ proxy set in the ⁦device's⁩ ⁦configd_sim⁩. inject: an ⁦in-process⁩ socket shaper; "boot" reboots the device with it in ⁦launchd's⁩ environment so every process, WebKit included, is shaped live by the profile. Android: the ⁦emulator's⁩ NAT through its console (⁦  ⁦network speed <up>:<down>⁩  ⁩ ⁦kbit/s⁩, ⁦  ⁦network delay <ms>⁩  ⁩, and ⁦simee's⁩ ⁦  ⁦network loss <pct>⁩  ⁩; what ⁦isn't⁩ given keeps the ⁦device's⁩ value, and only what changes is sent) and offline as airplane mode (⁦  ⁦cmd connectivity airplane-mode⁩  ⁩), returning the commands sent; ⁦loss_pct⁩ means different things per platform: on iOS the percent of new connections that time out, on Android the percent of the ⁦guest's⁩ TCP, UDP and ICMP packets dropped in each direction. On Android it (so lossy and ⁦very-bad⁩) is refused on the stock emulator, whose console has no loss command, and rules, port ranges, proxy and inject are refused on Android

⁦  ⁦network_state⁩  ⁩

Android, iOS

device; iOS: set?

Current profile, proxy port and injection state (Android: the ⁦console's⁩ ⁦  ⁦network status⁩  ⁩, as ⁦network_status⁩, and airplane mode as offline; a latency range set from the console reads as its mean, as does a loss that differs each way; ⁦proxy_port⁩ null, injected false)

⁦  ⁦network_flows⁩  ⁩

iOS

device, set?

Connections through the ⁦device's⁩ shaping proxy: host, bytes, duration, outcome (not on Android: the ⁦emulator's⁩ NAT keeps only its live flows, with no history or byte counts per flow; connections lists the open sockets)

⁦  ⁦network_clear⁩  ⁩

Android, iOS

device; iOS: set?

Remove shaping: clear the device proxy, stop the proxy, remove injection (Android: ⁦  ⁦network speed full⁩  ⁩, ⁦  ⁦network delay none⁩  ⁩, ⁦  ⁦network loss none⁩  ⁩ under ⁦simee's⁩ emu, and airplane mode off)

⁦  ⁦audio_state⁩  ⁩

Android, iOS

device; iOS: set?

Device audio settings. iOS: the routed host UIDs and volume, and every host audio device. Android: from ⁦  ⁦dumpsys audio⁩  ⁩, the media ⁦stream's⁩ volume (as ⁦audio_volume's⁩ level) and mute, every ⁦stream's⁩ index, range, mute and output devices, the ringer mode and the audio focus stack with its owner; no host devices (emu plays on the ⁦host's⁩ default output)

⁦  ⁦audio_volume⁩  ⁩

Android, iOS

device, ⁦level(0-100)⁩; iOS: set?

Device output volume. iOS: 100 = unity, for audio clients started afterwards. Android: the media ⁦stream's⁩ volume index, the level scaled to its range, live (⁦  ⁦cmd media_session volume⁩  ⁩, or ⁦  ⁦media volume⁩  ⁩ on older images)

⁦  ⁦audio_route⁩  ⁩

iOS

device, ⁦scope(input|output)⁩, uid | "default"

Pin the ⁦device's⁩ input or output to a host device (any device, including loopback); applies to clients started afterwards

⁦  ⁦audio_capture_start⁩  ⁩

iOS

device, ⁦path?(.wav)⁩, mute?

Capture this ⁦device's⁩ audio output with a process tap (no driver); mute silences it on the host meanwhile; returns ⁦capture_id⁩

⁦  ⁦audio_capture_stop⁩  ⁩

iOS

⁦capture_id⁩

Stop a capture: frames, ⁦duration_ms⁩, rms, peak, dbfs, path

⁦  ⁦audio_mute⁩  ⁩

Android, iOS

device, on; iOS: set?

Silence (or restore) this ⁦device's⁩ audio; returns whether it is muted. iOS: on the host, a ⁦per-device⁩ null sink. Android: mutes the ⁦guest's⁩ media stream (⁦  ⁦cmd audio adj-mute⁩  ⁩, API 35 and later; earlier images have no command for it)

⁦  ⁦camera_sources⁩  ⁩

Android, iOS

⁦kind?(host|virtual|synthetic)⁩

The sources a device camera can link to, each with the ⁦  ⁦source⁩  ⁩ id ⁦camera_link⁩ takes: the ⁦host's⁩ cameras (⁦built-in⁩, external, Continuity Camera, and virtual cameras such as OBS Virtual Camera, flagged ⁦  ⁦virtual⁩  ⁩) and the synthetic kinds (⁦pattern:testcard⁩, qr:, text:, image:, video: on macOS, solid:); and the ⁦host's⁩ camera permission (macOS: the TCC status of the app that started the server, with the fix when it blocks capture), read without ever prompting

⁦  ⁦camera_link⁩  ⁩

Android, iOS

device, ⁦facing(back|front|both)⁩, source; iOS: set?

Feed a device camera from a source: a source id (webcam:, ⁦pattern:testcard⁩, qr:, text:, image:, video: (macOS, looped), solid:; emulated is the test card, none turns the camera off) or a host ⁦camera's⁩ name, index or part of its name (obs finds OBS Virtual Camera; an ambiguous one fails listing the matches), saved by its stable id. Saved with the device: it comes back on every boot and survives a server restart. Android: a running device is relinked live through ⁦emu's⁩ console (⁦  ⁦camera link⁩  ⁩), a ⁦shut-down⁩ one gets it at boot (⁦-camera-back⁩, ⁦-camera-front⁩); a camera that was off at boot appears only after a reboot (the guest lists its cameras once). iOS: injects the camera shim ⁦device-wide⁩ and serves the source from the running server (needs ⁦  ⁦simee serve⁩  ⁩; one feed per device, so back and front share it; apps already running need a relaunch)

⁦  ⁦camera_unlink⁩  ⁩

Android, iOS

device, ⁦facing?(back|front|both)⁩; iOS: set?

Remove a device ⁦camera's⁩ link (default both): it goes back to the ⁦AVD's⁩ own camera (⁦config.ini⁩ ⁦hw.camera.*⁩), live on a running device and at every boot

⁦  ⁦camera_links⁩  ⁩

Android, iOS

device?; iOS: set?

Each linked device camera (one device, or every device): facing, source (and a host ⁦camera's⁩ name), live (what the running emulator shows) and state: linked, saved (applies at the next boot), relinked (changed from the console; the next boot restores the saved link), unsaved (linked from the console only), off, source missing (the host no longer lists the camera: the device shows the test card until it is back) or permission missing, with the fix

⁦  ⁦network_env⁩  ⁩

iOS

device, set?

Environment that makes one app launch shaped; for simctl, prefix each key with ⁦SIMCTL_CHILD_⁩ (not on Android: an app starts from an intent with ⁦zygote's⁩ environment, and the ⁦emulator's⁩ NAT shapes the whole device, not one app)

⁦  ⁦console⁩  ⁩

Android

device, command | commands

Emulator console commands (⁦  ⁦adb emu⁩  ⁩'s protocol: sensor, geo, sms, gsm, finger, power, ...); reply lines

⁦  ⁦rotate⁩  ⁩

Android, iOS

device, ⁦orientation?(portrait|landscape-right|portrait-upside-down|landscape-left⁩; iOS); iOS: set?

Rotate the device 90° clockwise, or to an orientation ⁦(iOS)⁩

⁦  ⁦fold⁩  ⁩

Android, iOS

device, ⁦folded(true|false)⁩ | ⁦angle(0-180⁩; ⁦0-360⁩ ⁦dual-screen⁩) | ⁦posture(closed|half-opened|opened|flipped|tent)⁩; iOS: set?

Set a ⁦foldable's⁩ hinge. Android: as the ⁦console's⁩ fold, unfold and posture do (the hinge sensor, the posture and, folded, the outer screen). iOS: an iPhone ⁦Duo's⁩ (closed, ⁦half-opened⁩ is the 100° book posture, opened), which SpringBoard sweeps to, moving the content to the inner screen when it opens past its swap boundary. Returns angle, posture, folded and the size the guest lays out for (iOS: of the screen in use, named in display)

⁦  ⁦xr⁩  ⁩

Android

device, ⁦action(recenter⁩ | ⁦rotate|move⁩: x, y, z | options: ⁦environment(day|night)⁩, ⁦passthrough(0-1)⁩ | input: ⁦mode(mouse|hand|eye)⁩ | viewport: ⁦mode(pan|zoom|rotate)⁩ | pointer: x, y, ⁦phase?(move|down|up|click)⁩ | ⁦hand|eye⁩: x, y, ⁦press?(aim|press)⁩ | gesture: ⁦gesture(left-pinch|left-grab|left-poke|right-pinch|right-grab|right-poke))⁩

Android XR: turn ⁦(radians)⁩ or move ⁦(metres)⁩ the head, recenter, set the room and passthrough, the input mode, aim or pinch the hand ray and look or select with gaze at pixels (⁦stock's⁩ gRPC hand and eye events), a hand gesture, or point the ⁦dual-mode⁩ mouse

⁦  ⁦touchpad⁩  ⁩

Android

device, x, y, ⁦phase?(down|move|up|tap)⁩ | x, y, ⁦to_x⁩, ⁦to_y⁩, ⁦duration_ms⁩? (a swipe)

Touch or swipe the touchpad beside the screen, in touchpad units (Android XR display glasses: ⁦  ⁦hw.touchpad0⁩  ⁩)

⁦  ⁦stylus⁩  ⁩

Android, iOS

device, x, y, ⁦phase?(tap|hover|down|move|up|leave)⁩, ⁦pressure?(1-255)⁩, button?, eraser? | x, y, ⁦to_x⁩, ⁦to_y⁩, ⁦duration_ms⁩? (a stroke); iOS: set?

A stylus on the touch screen at pixels. Android: what the stock ⁦emulator's⁩ gRPC pen events send: hover over it, touch, move, lift or leave, with the barrel button or the eraser end; or draw a stroke. iPad: the Apple Pencil (UITouch type ⁦.pencil⁩): tap ⁦(hold_ms?)⁩, down, move, up or a stroke; hover, leave, pressure, button and eraser are refused with the reason (the ⁦simulator's⁩ touch screen has none)

⁦  ⁦rotary⁩  ⁩

Android, iOS

device, ticks | delta (Digital Crown units; iOS); iOS: set?

Turn a ⁦watch's⁩ rotary input: the Wear OS crown or bezel, the Apple Watch Digital Crown

⁦  ⁦vehicle⁩  ⁩

Android

device, ⁦property?(VHAL⁩ name or id: ⁦GEAR_SELECTION⁩, gear, speed, 0x11600207, ...), ⁦area_id⁩?, value?

Android ⁦Automotive's⁩ vehicle HAL: list every ⁦property's⁩ value, read one, or set one when ⁦  ⁦value⁩  ⁩ is given (typed by the property: drive, ⁦12.5⁩, true); through the emulator ⁦console's⁩ ⁦  ⁦car⁩  ⁩ command ⁦(simee)⁩

⁦  ⁦watch_gesture⁩  ⁩

iOS

device, ⁦gesture(double-tap|wrist-flick)⁩, set?

An Apple Watch hand gesture

⁦  ⁦remote_swipe⁩  ⁩

iOS

device, ⁦direction(up|down|left|right)⁩, ⁦duration_ms⁩?, set?

Swipe on the Siri ⁦Remote's⁩ touch surface (Apple TV)

⁦  ⁦pointer⁩  ⁩

iOS

device, x, y, ⁦action?(move|click|down|up)⁩, ⁦button?(primary|secondary)⁩, ⁦hold_ms⁩? | x, y, ⁦to_x⁩, ⁦to_y⁩, button? (a drag), set?

The ⁦iPad's⁩ pointer (a mouse, as ⁦Simulator.app's⁩ pointer capture connects): move it to pixels and hover there, click, press or release a button there, or drag to ⁦to_x⁩, ⁦to_y⁩. Exact on iOS ⁦26.5⁩, within ⁦~20⁩ pt on ⁦27.2⁩. A button held by ⁦  ⁦down⁩  ⁩ keeps the ⁦pointer's⁩ place for the next calls on a server (⁦  ⁦simee serve⁩  ⁩) until a reboot. Refused: ⁦  ⁦down⁩  ⁩ without a server (the process ends with the call: use ⁦  ⁦click⁩  ⁩ or a drag), ⁦  ⁦up⁩  ⁩ with nothing held, and ⁦  ⁦move⁩  ⁩/⁦  ⁦up⁩  ⁩ after a failed call lost the held button (⁦  ⁦click⁩  ⁩, ⁦  ⁦down⁩  ⁩ or a drag lets go and starts over)

⁦  ⁦carplay⁩  ⁩

iOS

device, on, set?

Attach (or detach) the CarPlay display to a booted iPhone (iOS 26 runtimes); then ⁦tap/swipe/screenshot⁩ with ⁦display=carplay⁩

⁦  ⁦car_start⁩  ⁩

Android

device, ⁦input?(touch|rotary|hybrid)⁩, ⁦resolution?(800x480|1280x720|1920x1080)⁩, ⁦dpi?(160)⁩, ⁦headless?(false)⁩

Android Auto projection: run ⁦Google's⁩ Desktop Head Unit (installed by ⁦  ⁦emu -provision-dhu⁩  ⁩) against a booted phone and supervise it (its PID is kept in the ⁦AVD's⁩ simee directory). Needs Android Auto on the phone (⁦6.0⁩ or newer) with its head unit server running (developer mode, then "Start head unit server"); each phone gets its own adb forward to port 5277 and its own head unit. Then ⁦tap/swipe/screenshot⁩ with ⁦display=car⁩, and ⁦  ⁦vehicle⁩  ⁩ sets speed, gear, night and ⁦parking-brake⁩. Returns pid, serial, ⁦forward_port⁩, resolution, dpi, input and headless

⁦  ⁦car_stop⁩  ⁩

Android

device

Stop the ⁦phone's⁩ Desktop Head Unit and remove its adb forward; a head unit that already exited just has its record cleared

Admission

⁦  ⁦boot⁩  ⁩, ⁦  ⁦boot_many⁩  ⁩, ⁦  ⁦create⁩  ⁩ and ⁦  ⁦clone⁩  ⁩ say what the new devices would do to the host before they start ⁦(#275)⁩, from ⁦  ⁦simee-host⁩  ⁩'s ⁦  ⁦admission⁩  ⁩. ⁦  ⁦admission_check⁩  ⁩ asks the same question on its own (here on a 32 GiB host with ⁦42%⁩ of its memory in use):

→ {"id": 1, "method": "admission_check", "params": {"platform": "android", "count": 4}} ← {"id": 1, "ok": true, "result": {"verdict": "hold", "reasons": ["memory: 4 more Android phone devices would take memory used from 42% to 86% (3.8 GB each while booting), at or above the hold limit 85%"], "predicted": {"devices": 4, "admissible": 3, ...}}}

  • Cost per device, by platform and form factor: CPU (percent of one core) and memory while it boots and once it is idle. Until this process has seen idle devices of the kind (three observations at least), the numbers are ⁦docs/benchmarks.md's⁩: Android (emu, API 36) boots at ⁦250%⁩ of a core and 3764 MB and idles at ⁦5.9%⁩ and ⁦2.8⁩ GB; iOS (iPhone 17, default profile) boots at ⁦280%⁩ and idles at ⁦10%⁩ (the settle limit, not a measurement), 2176 MB either way. Only phones are measured: other form factors take their ⁦platform's⁩ phone numbers, and ⁦  ⁦source⁩  ⁩ says so. A device under ⁦50%⁩ of a core over a minute in ⁦  ⁦devices_usage⁩  ⁩ refines its ⁦kind's⁩ idle CPU and memory: a rolling average that starts at the published numbers and moves a fifth of the way to each observation (kept in memory), so one slim device ⁦doesn't⁩ replace them; booting memory keeps the measured ratio to idle. A server (⁦  ⁦simee serve⁩  ⁩) learns across calls; a CLI call runs alone, so it uses the published numbers.

  • The verdict is the worse of the ⁦  ⁦host⁩  ⁩ verdict now (thermal, power, memory pressure, load) and the prediction: hold when memory used would reach ⁦85%⁩, available memory ⁦(Linux)⁩ would drop under 8 GiB, or the ⁦1-minute⁩ load plus the booting CPU would reach the load limit (⁦1.5⁩ per CPU); back off at ⁦95%⁩ used or under 4 GiB. ⁦  ⁦predicted⁩  ⁩ has the numbers (⁦  ⁦memory_used_pct⁩  ⁩, ⁦  ⁦memory_available_bytes⁩  ⁩, ⁦  ⁦load⁩  ⁩ now and after), each ⁦kind's⁩ cost and ⁦  ⁦admissible⁩  ⁩, how many of the devices (in order) the host takes now. A device that is already booted costs nothing. At most ⁦  ⁦concurrency⁩  ⁩ (⁦  ⁦boot_many⁩  ⁩'s, ⁦  ⁦-j⁩  ⁩) devices boot at once, so the prediction counts that many at their booting cost and the rest at their idle cost, not every device booting together (⁦  ⁦admission_check⁩  ⁩ has no concurrency: all ⁦  ⁦count⁩  ⁩ boot together, the worst case).

  • ⁦  ⁦admission⁩  ⁩: ⁦  ⁦ignore⁩  ⁩ (the default) only reports it; nothing waits on it. ⁦  ⁦refuse⁩  ⁩ fails fast, doing nothing, when the verdict ⁦isn't⁩ admit, with every reason. ⁦  ⁦wait⁩  ⁩ (⁦  ⁦boot⁩  ⁩, ⁦  ⁦boot_many⁩  ⁩) waits until the host admits the devices, asking every 5 s, for at most ⁦  ⁦admission_timeout_s⁩  ⁩ ⁦(600)⁩: ⁦  ⁦boot_many⁩  ⁩ starts as many as are admissible at a time, each chunk booted as ⁦  ⁦boot_many⁩  ⁩ boots, and returns ⁦  ⁦pacing⁩  ⁩ (⁦  ⁦waited_s⁩  ⁩, ⁦  ⁦timed_out⁩  ⁩, each start and each wait with its reason); devices not admitted in time are not started and fail with the reason. ⁦  ⁦admission_timeout_s⁩  ⁩ is time spent waiting for the host: the time the started chunks take to boot is not counted, and ⁦  ⁦waited_s⁩  ⁩ and the error say how long it actually waited. A chunk that fails as a whole (no ports left, a plan error) fails its own devices and leaves the chunks booted before it in the result. Each wait is a line on stderr and, over MCP, the ⁦task's⁩ status message or the progress message, with the reason; a cancelled call stops waiting within a second and boots nothing more (⁦  ⁦pacing.cancelled⁩  ⁩, the devices not started say so).

  • Known limits. Callers ⁦don't⁩ reserve: each judges the host as it is, so several callers admitted at the same moment (parallel ⁦  ⁦simee boot⁩  ⁩ processes, several agents) can together go past a limit ⁦(#275)⁩. A CLI boot runs in the caller, so it always uses the published numbers and has no ⁦  ⁦--admission⁩  ⁩ flag; its text output ⁦doesn't⁩ show the verdict, ⁦  ⁦--json⁩  ⁩ and the API do.

Memory tools (⁦  ⁦mem_*⁩  ⁩)

A simulator app is a host process (a child of its ⁦device's⁩ ⁦  ⁦launchd_sim⁩  ⁩), so the ⁦host's⁩ own ⁦  ⁦leaks⁩  ⁩, ⁦  ⁦heap⁩  ⁩, ⁦  ⁦vmmap⁩  ⁩ and ⁦  ⁦malloc_history⁩  ⁩ read it (⁦⁦crates/sim-api/src/memtools.rs⁩⁩). Each method names the app by ⁦  ⁦bundle_id⁩  ⁩ (the running process started under the launchd label ⁦  ⁦UIKitApplication:<bundle id>[…]⁩  ⁩) or by ⁦  ⁦pid⁩  ⁩ (which must be one of the ⁦device's⁩ processes), runs the tool with a deadline (⁦  ⁦timeout_s⁩  ⁩, default 120; past it the tool simee started is killed and the call fails), and answers its report parsed, with ⁦  ⁦pid⁩  ⁩, ⁦  ⁦warnings⁩  ⁩ (anything the tool printed to stderr while answering) and, with ⁦  ⁦raw: true⁩  ⁩, the report as printed. Android devices answer that these ⁦aren't⁩ available there.

  • Stacks. ⁦  ⁦launch {bundle_id, malloc_stack_logging: true}⁩  ⁩ starts the app with ⁦  ⁦MallocStackLogging=1⁩  ⁩, which is "lite" mode: stacks of live allocations only, kept in memory. ⁦  ⁦mem_leaks⁩  ⁩ then gives each leak group its allocation stack (⁦  ⁦{address, image, symbol, source?}⁩  ⁩, innermost frame first, so frame 0 is the allocator and the ⁦app's⁩ own frame follows with its ⁦  ⁦file:line⁩  ⁩ when the binary has debug info); without it ⁦  ⁦stacks⁩  ⁩ is false and a ⁦  ⁦note⁩  ⁩ says how to get them. ⁦  ⁦mem_history⁩  ⁩ needs it: a process without stack logs is refused with that advice, and an address the log ⁦doesn't⁩ hold (freed, or never allocated) answers no ⁦  ⁦events⁩  ⁩.

  • Leaks. ⁦  ⁦leaks --list --noContent⁩  ⁩: ⁦  ⁦leak_count⁩  ⁩, ⁦  ⁦leaked_bytes⁩  ⁩, ⁦  ⁦nodes⁩  ⁩, ⁦  ⁦malloced_bytes⁩  ⁩, and ⁦  ⁦leaks⁩  ⁩, grouped by type (⁦  ⁦type⁩  ⁩, ⁦  ⁦language⁩  ⁩, ⁦  ⁦binary⁩  ⁩) and stack, each with ⁦  ⁦count⁩  ⁩, ⁦  ⁦bytes⁩  ⁩ and its ⁦  ⁦instances⁩  ⁩ (⁦  ⁦{address, size, zone}⁩  ⁩; an address goes to ⁦  ⁦mem_history⁩  ⁩). A plain ⁦  ⁦malloc⁩  ⁩ without stack logging has no type.

  • What they need. The ⁦host's⁩ tools carry ⁦  ⁦com.apple.system-task-ports.read⁩  ⁩ and, for a simulator target, run the ⁦runtime's⁩ own copy (the ⁦report's⁩ ⁦  ⁦Analysis Tool⁩  ⁩). On macOS ⁦26.6⁩ (SIP disabled, Developer Mode on) an app ⁦ad-hoc⁩ signed without ⁦  ⁦get-task-allow⁩  ⁩, and the ⁦device's⁩ SpringBoard, were both read as the user, without ⁦  ⁦sudo⁩  ⁩. The tools refuse a process of another user (⁦  ⁦leaks 1⁩  ⁩ as a user: ⁦  ⁦cannot examine process 1 (launchd) because you do not have appropriate privileges …⁩  ⁩); a call whose tool is refused fails with that line (⁦  ⁦leaks was refused pid <n>: …⁩  ⁩). A host with SIP enabled ⁦hasn't⁩ been measured; a notice a tool prints while still answering comes back in ⁦  ⁦warnings⁩  ⁩.

  • Cost (⁦2026-11-27⁩, Apple M3 Max, 16 CPUs, macOS ⁦26.6.2⁩, iOS ⁦26.5⁩ iPhone 17 simulator; a small test app with 20 leaks, 13 k heap nodes, ⁦1.8⁩ MB malloced, launched with stack logging; median of 3 ⁦warm-server⁩ calls; wall from ⁦  ⁦/usr/bin/time⁩  ⁩ on ⁦  ⁦simee call⁩  ⁩, CPU the ⁦server's⁩ ⁦user+sys⁩ including the tool it reaped, minus an idle ⁦server's⁩): ⁦  ⁦mem_leaks⁩  ⁩ ⁦2.30⁩ s wall, ⁦2.28⁩ s CPU; ⁦  ⁦mem_heap⁩  ⁩ ⁦1.75⁩ s, ⁦1.73⁩ s; ⁦  ⁦mem_vmmap⁩  ⁩ ⁦0.60⁩ s, ⁦0.58⁩ s; ⁦  ⁦mem_history⁩  ⁩ ⁦0.73⁩ s, ⁦0.71⁩ s. The reports name a corpse of the app as their target (⁦  ⁦Target Type: corpse⁩  ⁩), and the app kept running across every call; their time grows with its heap (the same ⁦  ⁦leaks⁩  ⁩ command line on the ⁦device's⁩ SpringBoard, run directly: ⁦4.9⁩ s wall, one run).

App preferences (⁦  ⁦prefs_*⁩  ⁩)

One typed API over Android SharedPreferences and DataStore preferences and iOS user defaults, with no SDK in the app (⁦⁦crates/sim-api/src/prefs.rs⁩⁩). The iOS backend is implemented; the Android backend is not yet: every ⁦  ⁦prefs_*⁩  ⁩ call on an Android device checks its parameters and then fails with "app preferences (⁦  ⁦prefs_*⁩  ⁩) are not yet available on android devices". ⁦  ⁦defaults_read⁩  ⁩ and ⁦  ⁦defaults_write⁩  ⁩ are unchanged.

Stores. ⁦  ⁦prefs_stores {device, bundle_id}⁩  ⁩ lists the ⁦app's⁩ stores as ⁦  ⁦{id, kind, name, bundle_id, platform}⁩  ⁩ (⁦  ⁦bundle_id⁩  ⁩ is the Android package name on Android); the other methods name a store by its ⁦  ⁦id⁩  ⁩:

kind

Platform

id

Holds

⁦  ⁦shared_preferences⁩  ⁩

Android

⁦  ⁦shared_prefs/<name>.xml⁩  ⁩

string, int, long, float, bool, ⁦string_set⁩

⁦  ⁦datastore⁩  ⁩

Android

⁦  ⁦datastore/<name>.preferences_pb⁩  ⁩

string, int, long, float, double, bool, ⁦string_set⁩, data (DataStore ⁦1.1's⁩ ⁦  ⁦byteArrayPreferencesKey⁩  ⁩)

⁦  ⁦app_domain⁩  ⁩

iOS

the bundle id

string, int, long, float, double, bool, date, data, array, dictionary

⁦  ⁦app_group⁩  ⁩

iOS

the suite, ⁦  ⁦group.…⁩  ⁩

as ⁦  ⁦app_domain⁩  ⁩

⁦  ⁦domain⁩  ⁩

iOS

any other domain name

as ⁦  ⁦app_domain⁩  ⁩

Values. Every value travels with its type, ⁦  ⁦{"type": <type>, "value": <value>}⁩  ⁩, so an ⁦  ⁦int⁩  ⁩ comes back an ⁦  ⁦int⁩  ⁩ and a ⁦  ⁦long⁩  ⁩ a ⁦  ⁦long⁩  ⁩:

{"type": "string", "value": "Ada"} {"type": "int", "value": 3} 32-bit {"type": "long", "value": 9007199254740993} 64-bit {"type": "float", "value": 0.1} 32-bit; also "NaN", "Infinity", "-Infinity" {"type": "double", "value": 2.5} 64-bit; the same three strings {"type": "bool", "value": true} {"type": "string_set", "value": ["a", "b"]} sorted, each string once {"type": "date", "value": "2026-11-27T10:00:00.25Z"} ISO 8601 in (any offset), UTC out, to the nanosecond {"type": "data", "value": "AAEC"} standard base64 {"type": "array", "value": [{"type": "int", "value": 1}]} {"type": "dictionary", "value": {"k": {"type": "bool", "value": true}}} {"type": "unsupported", "value": {"native": "integer", "raw": "18446744073709551615"}}

An ⁦array's⁩ elements and a ⁦dictionary's⁩ values are typed values too, nested to any depth.

  • iOS keeps no width. A plist has one integer and one real, so an iOS store reads every integer as ⁦  ⁦long⁩  ⁩ and every real as ⁦  ⁦double⁩  ⁩, whatever wrote it: ⁦  ⁦int⁩  ⁩ and ⁦  ⁦long⁩  ⁩ write an integer, ⁦  ⁦float⁩  ⁩ and ⁦  ⁦double⁩  ⁩ a real.

  • ⁦  ⁦unsupported⁩  ⁩ is what a store holds that no type here holds exactly: a plist integer past 64 bits (⁦Swift's⁩ ⁦  ⁦UInt64.max⁩  ⁩), a SharedPreferences ⁦  ⁦<double>⁩  ⁩ or ⁦  ⁦<null>⁩  ⁩ element that another tool wrote (⁦Android's⁩ own API writes neither). It carries the ⁦platform's⁩ name for the type (⁦  ⁦native⁩  ⁩) and the text as stored (⁦  ⁦raw⁩  ⁩). It is ⁦read-only⁩: a write or batch op naming it is refused.

⁦  ⁦prefs_read {device, bundle_id, store?}⁩  ⁩ answers ⁦  ⁦[{store, values: {<key>: <typed value>}}]⁩  ⁩. With ⁦  ⁦store⁩  ⁩, an unreadable store fails the call. Without it, every store of the app answers on its own, ⁦  ⁦{store, values}⁩  ⁩ or ⁦  ⁦{store, error}⁩  ⁩, so one unreadable store ⁦doesn't⁩ hide the others. On iOS a read decodes the ⁦store's⁩ plist on the host (well under a millisecond, no spawn); cfprefsd writes an ⁦app's⁩ own changes to disk about every 10 s, so ⁦  ⁦fresh: true⁩  ⁩ asks cfprefsd instead (one ⁦in-device⁩ call, about 180 ms).

Writes. ⁦  ⁦prefs_write {device, bundle_id, store, key, type, value}⁩  ⁩ and ⁦  ⁦prefs_delete {device, bundle_id, store, key}⁩  ⁩ answer ⁦  ⁦{store, key, visible, app, note?}⁩  ⁩. A write is refused before anything is written when the value ⁦isn't⁩ exactly of its type (a fraction for an ⁦  ⁦int⁩  ⁩, a number past its range, a string for a ⁦  ⁦bool⁩  ⁩, an untyped array element) or the store ⁦can't⁩ hold the type (a ⁦  ⁦double⁩  ⁩ in SharedPreferences, a ⁦  ⁦string_set⁩  ⁩ on iOS); errors name the value (⁦  ⁦value[2].value⁩  ⁩, ⁦  ⁦ops[1].value⁩  ⁩).

  • ⁦  ⁦visible⁩  ⁩: ⁦  ⁦now⁩  ⁩ when the app sees the write at once (a running app it reached, or an app that ⁦wasn't⁩ running, or was stopped for the write, and reads it when it starts), or ⁦  ⁦after_relaunch⁩  ⁩ when a running app sees it only once relaunched.

  • ⁦  ⁦app⁩  ⁩: what was done to the app for the write: ⁦  ⁦untouched⁩  ⁩ (it ⁦wasn't⁩ running, or the write reached it where it runs), ⁦  ⁦stopped⁩  ⁩ (it was running and was stopped for the write; it stays stopped), or ⁦  ⁦relaunched⁩  ⁩ (stopped, written, launched again).

  • ⁦  ⁦note⁩  ⁩ says why when the app was stopped or sees it only after a relaunch.

On Android a running app keeps its preferences in memory and writes the whole copy back on its next ⁦  ⁦apply⁩  ⁩/⁦  ⁦commit⁩  ⁩ ⁦(SharedPreferences)⁩ or update (⁦single-process⁩ DataStore), over a write made under it. So an Android write ⁦can't⁩ promise ⁦  ⁦after_relaunch⁩  ⁩ to a running app: it stops the app, writes, and says whether it relaunched it.

Batches. ⁦  ⁦prefs_batch {device, bundle_id, store, ops}⁩  ⁩ takes ⁦  ⁦{key, type, value}⁩  ⁩ sets and ⁦  ⁦{key, delete: true}⁩  ⁩ deletes and is all or nothing: every op is checked first (each key at most once), and the backend then writes the store once with all of them, or fails with none applied. On iOS, if ⁦cfprefsd's⁩ final synchronize fails after the keys were handed to it, the error names the keys sent and says some may already be live in the running app. It answers ⁦  ⁦{store, keys, visible, app, note?}⁩  ⁩.

Watching. ⁦  ⁦prefs_watch {device, bundle_id, store?, cursor?, wait_ms?}⁩  ⁩ works like ⁦  ⁦logs⁩  ⁩' ⁦  ⁦stream⁩  ⁩: the first call (no ⁦  ⁦cursor⁩  ⁩) starts a feed of the ⁦app's⁩ stores (or one) in the process that answers (a ⁦  ⁦simee serve⁩  ⁩ keeps it between commands) and returns ⁦  ⁦{cursor, events: []}⁩  ⁩. A call with that cursor returns the changes since, oldest first, and the next cursor:

→ {"method": "prefs_watch", "params": {"device": "pixel", "bundle_id": "com.example", "cursor": "3:0", "wait_ms": 30000}} ← {"id":null,"ok":true,"result":{"cursor":"3:2","events":[ {"store":"shared_prefs/com.example_preferences.xml","key":"launches","old":{"type":"int","value":3},"new":{"type":"int","value":4},"at":"2026-11-27T10:00:01Z"}, {"store":"shared_prefs/com.example_preferences.xml","key":"token","old":{"type":"string","value":"x"},"new":null,"at":"2026-11-27T10:00:02Z"}]}}

  • ⁦  ⁦old⁩  ⁩ is ⁦  ⁦null⁩  ⁩ for a key that was added, ⁦  ⁦new⁩  ⁩ for one that was removed; a write that changes nothing reports nothing. Changes come from whoever made them: the app, these methods, another tool.

  • A ⁦feed's⁩ own thread takes changes as the backend sends them, so a call returns what has arrived. With nothing new, it waits up to ⁦  ⁦wait_ms⁩  ⁩ (at most 60000) for a change. Callers sharing a feed ⁦don't⁩ hold each other up: one waiting ⁦doesn't⁩ delay ⁦another's⁩ read.

  • ⁦  ⁦missed: <n>⁩  ⁩: the feed keeps the latest 16 MiB of changes (by their values' sizes), and ⁦  ⁦n⁩  ⁩ older ones went unread.

  • ⁦  ⁦reset: true⁩  ⁩: the cursor ⁦isn't⁩ this ⁦feed's⁩ (it stopped and another started); the new cursor starts now, and changes in between may be lost, so read the store again.

  • ⁦  ⁦ended: true⁩  ⁩: the feed has ended, because the device stopped or nobody read it for 5 minutes (it then drops what it kept). A call with its cursor still gets what it had; a call without a cursor starts a new feed.

  • To follow a store from a known state: ⁦  ⁦prefs_watch⁩  ⁩ first, then ⁦  ⁦prefs_read⁩  ⁩, then poll with the cursor; a change made during the read is in the feed.

Streams (⁦  ⁦stream_*⁩  ⁩)

⁦  ⁦stream_start⁩  ⁩ publishes a ⁦device's⁩ screen as ⁦H.264⁩ over WebRTC to a WHIP endpoint (a media server such as MediaMTX, which browsers then play over WHEP). It returns once the first frame is encoded and the WHIP session is connected (the shape below; the values are placeholders):

→ {"method": "stream_start", "params": {"device": "iPhone 17", "whip_url": "http://127.0.0.1:8889/sim/whip"}} ← {"id":null,"ok":true,"result":{"stream_id":"stream-1","whip_resource":"http://127.0.0.1:8889/sim/whip/1f0c…","lease_ttl_s":30,"device":"5B0E…"}} → {"method": "stream_status", "params": {"stream_id": "stream-1"}} ← {"id":null,"ok":true,"result":{"stream_id":"stream-1","state":"running","stages":[{"stage":"requested","ms":0.0}, {"stage":"first_encoded_frame","ms":…},{"stage":"whip_connected","ms":…}],"stats":{"fps":…,"keyframes":…,"pli":…,…},…}}

  • ⁦  ⁦input: true⁩  ⁩ needs a server that carries data channels. MediaMTX refuses the offer (⁦  ⁦406 unsupported media 'application'⁩  ⁩, ⁦docs/streaming.md⁩ "Input over a data channel"), so the ⁦  ⁦stream_start⁩  ⁩ fails; leave ⁦  ⁦input⁩  ⁩ off for a MediaMTX endpoint.

  • A stream lives in the process that started it: run ⁦  ⁦simee serve⁩  ⁩ (the CLI forwards to it) or the MCP server. One stream per device and WHIP URL; a second is refused with the ⁦first's⁩ id.

  • Leases. ⁦  ⁦stream_status⁩  ⁩ renews a ⁦stream's⁩ 30 s lease; a stream nobody renews is stopped (its WHIP resource deleted), so a client that crashed leaves nothing running. ⁦  ⁦streams⁩  ⁩ lists without renewing. A stream that ended on its own (the peer disconnected, the device went away) stays listed, ⁦  ⁦state: "ended"⁩  ⁩ with its ⁦  ⁦reason⁩  ⁩, until its lease lapses.

  • Stopping. ⁦  ⁦stream_stop⁩  ⁩ ends the encode loop, sends the WHIP DELETE and returns the last status with ⁦  ⁦deleted⁩  ⁩.

  • Errors. A URL the publisher refuses (⁦  ⁦https⁩  ⁩, plaintext to a host that ⁦isn't⁩ loopback, not http), a device that ⁦isn't⁩ booted, the WHIP server refusing the token ⁦(401/403)⁩, ⁦  ⁦audio: true⁩  ⁩ ⁦(#265)⁩, and a build without an encoder (a Linux ⁦  ⁦simee⁩  ⁩ built without ⁦  ⁦--features openh264⁩  ⁩, or an iOS device on a Linux host) fail ⁦  ⁦stream_start⁩  ⁩, leaving nothing running. The token is never echoed.

  • Input. ⁦  ⁦input: true⁩  ⁩ offers the ⁦  ⁦simee-input⁩  ⁩ data channel; its events reach the ⁦device's⁩ ⁦  ⁦touch⁩  ⁩, ⁦  ⁦key⁩  ⁩, ⁦  ⁦type⁩  ⁩, ⁦  ⁦button⁩  ⁩, ⁦  ⁦rotate⁩  ⁩, ⁦  ⁦fold⁩  ⁩ and ⁦  ⁦swipe⁩  ⁩, mapped from the stream frame to device pixels. ⁦docs/streaming.md⁩, "Streams from the API", has the mapping and the limits.