diff --git a/src/daemon/AGENTS.md b/src/daemon/AGENTS.md index 7c7f7af7e..604f3228a 100644 --- a/src/daemon/AGENTS.md +++ b/src/daemon/AGENTS.md @@ -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. @@ -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: diff --git a/src/drivers/android/AGENTS.md b/src/drivers/android/AGENTS.md index 7d7aaeccb..fe032e651 100644 --- a/src/drivers/android/AGENTS.md +++ b/src/drivers/android/AGENTS.md @@ -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. diff --git a/src/ports/AGENTS.md b/src/ports/AGENTS.md index 4b41b3e94..b5796b69b 100644 --- a/src/ports/AGENTS.md +++ b/src/ports/AGENTS.md @@ -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 diff --git a/website/src/content/docs/docs/introduction/requirements.mdx b/website/src/content/docs/docs/introduction/requirements.mdx index fbed82e15..77bff2f18 100644 --- a/website/src/content/docs/docs/introduction/requirements.mdx +++ b/website/src/content/docs/docs/introduction/requirements.mdx @@ -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: diff --git a/website/src/content/docs/docs/reference/cli.mdx b/website/src/content/docs/docs/reference/cli.mdx index 88e8ba622..aee202eb0 100644 --- a/website/src/content/docs/docs/reference/cli.mdx +++ b/website/src/content/docs/docs/reference/cli.mdx @@ -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