Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/daemon/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Start and stop:
- On a worker, no request but `hello`, `status.get`, `daemon.stop` and `daemon.update` with `query` runs before converge ends. A gateway's dispatcher never parks.
- `daemon.stop` is handled by the server, before the version and stopping gates. `daemon.update` skips only the version gate.
- `daemon.started` is emitted only after converge, and never after `daemon.stopping`. A stop during converge arms nothing.
- A failed claim or `admin.token` write: `start` disposes what the stop does, without `daemon.stopping` or the `admin.token` removal, then rejects. A stop already running is the one teardown instead: `start` rejects at once, and `startDaemon` waits for the stop before it rejects.
- `DaemonAlreadyRunningError` skips `settle` and `dispose`: the live daemon may share the drivers' adb server. The entry then exits at once (`process.exit`), since a start that lost the claim keeps its drivers' children.
- A bind failure of the HTTP listener fails the start and stops the daemon (`http-start-failed`).
- `daemon.stop` releases nothing; leases persist with their deadlines.
Expand All @@ -34,7 +33,6 @@ Connections:
- No protocol overlap leaves the connection open: every request but `daemon.stop` and `daemon.update` gets `PROTOCOL_VERSION_UNSUPPORTED`.
- A closed connection only silences its pushes; the request, the lease and a running command go on.
- `lease-lost` skips the connection that asked for that release.
- On Windows the endpoint is a named pipe: none of the socket-file steps run, and a live one fails the bind with `address-in-use`.

Update:

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/android/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Physical phones:
Profiles and components:

- Profile sources are read in order: the library, the SDK (`avdmanager list device`), the user's devices.xml. The first case-insensitive name match wins and classes the model. A devices.xml name the library shadows is advisory `device-profile-hidden`.
- The `avdmanager list device` answer is kept until a file it reads profiles from changes, appears or goes (`AvdmanagerDeviceList`); a failed run is not kept. The sdkmanager catalog is never read.
- The sdkmanager catalog is never read.
- Existing devices are not re-checked for fit.
- A component is an API level. A licence refusal runs `sdkmanager --licenses` only under `downloads.acceptAndroidLicenses`, else `AndroidLicenseNotAcceptedError`: licence consent is never implied by download permission.

Expand Down
9 changes: 1 addition & 8 deletions src/ports/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,8 @@ Files and modes:

Windows:

- `resolveDaemonSocketPath` answers a named pipe there, because Node cannot listen on a file
path. A pipe is not a file: it is never `stat`ed (a live one fails `EBUSY`), removed or given a
directory. Ask `isPipeEndpoint` first.
- No directory guards a pipe. The default pipe ACL lets other accounts only read, and a client
needs read and write. A second listener fails `address-in-use`.
- Every child an adapter starts sets `windowsHide`: the daemon has no console, so a console
program would open a window.
- A `.bat` or `.cmd` runs through `cmd.exe` (`windows-command.ts`), and an argument holding `%`,
`"` or a line break is refused.
needs read and write.

## Adding an external API

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To watch a simulator's screen in the console, you need macOS 14 or later.

## Set up Android emulators

1. Install the Android SDK. Simlock looks in `ANDROID_HOME`, then `ANDROID_SDK_ROOT`, then `~/Library/Android/sdk`, and uses the first one that has every tool it needs. Linux has no default location, so set `ANDROID_HOME` there.
1. Install the Android SDK. Simlock looks in `ANDROID_HOME`, then `ANDROID_SDK_ROOT`, then `~/Library/Android/sdk` (on Windows `%LOCALAPPDATA%\Android\Sdk`), and uses the first one that has every tool it needs. Linux has no default location, so set `ANDROID_HOME` there.
2. Install the SDK command-line tools (`sdkmanager` and `avdmanager`), from Android Studio or the [command-line tools download](https://developer.android.com/studio#command-line-tools-only). Unpack them to `$ANDROID_HOME/cmdline-tools/latest`.
3. Install the `emulator` and `platform-tools` packages:

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/docs/reference/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ A daemon started on demand inherits the environment of the command that started

| Variable | Meaning |
| --- | --- |
| `ANDROID_HOME`, `ANDROID_SDK_ROOT` | Where the Android SDK is, tried in this order, then `~/Library/Android/sdk`. |
| `ANDROID_HOME`, `ANDROID_SDK_ROOT` | Where the Android SDK is, tried in this order, then `~/Library/Android/sdk` (on Windows `%LOCALAPPDATA%\Android\Sdk`). |
| `JAVA_HOME` | The JDK the Android SDK tools run on. |

### Set in a lease's environment
Expand Down
Loading