# Manual Android comparison

Device: leased Pixel 9 emulator, Android API 36, 1080×2424 screenshots, light theme. The same device and native client fingerprint were used for both sides; app data was cleared before the head pairing. Each app server used a fresh database belonging to its commit. No live data was copied.

The iOS scenario runner failed twice before authentication could be exercised, so the mobile comparison used agent-device directly on Android.

1. Prepare and install the matching cached native client with `vp run mobile:install android --prepare` and `vp run mobile:install android --session "$SESSION" --metro "$METRO_ORIGIN"` from each checkout. The matching native fingerprint was identical on both commits.
2. Start the server and Metro from the compared checkout with the supplied start-app harness, fresh home, and `T3CODE_DEV_SEED=0`. Set `T3_PROOF_AGENT_MODE=mobile`, `T3_PROOF_AGENT_BASE_PORT=19501`, and `T3_PROOF_AGENT_WRAPPER` to the supplied replay wrapper. Run basic-endpoint.mjs on the environment.
3. Run manual-mobile-seed.ts with the fresh home, server port, reachable server origin, and a private pairing-output filename. It creates the synthetic project and thread through the real CLI, and the replay wrapper opens the public hosted tab through actual MCP.
4. Open the native dev client on that Metro origin. Wait for Add environment, then open the pairing deep link with the privately generated pairing URL and autoConnect=1.
5. Open Protected page verification; wait for its replay content. Open One tab open, take control, fill the address with `http://127.0.0.1:19501/protected`, and submit using `agent-device keyboard enter`. The browser runs in the environment, so this loopback URL refers to the endpoint there.
6. Base: observe Unauthorized, Credentials are required, and no credential form. Head: capture the native Username, Password, and Sign in controls; fill demo/correct, submit Sign in, and capture Protected page loaded.
7. Before each published still, capture two pixel-identical screenshots at least 500ms apart (stable-mobile-capture.py). Record both interactions with `agent-device record start` / `record stop`. Trim setup and idle time; retain the actual navigation and outcome.

The Browser entry pill was missing from Android's accessibility tree. Its position was established from a fresh screenshot on this device (540,2147), then named controls or fresh snapshot refs were used inside Browser. The address field was the only native text field before authentication. Every press was checked against the next snapshot.

Representative commands after a fresh snapshot:

```sh
agent-device press <thread-ref> --settle --session "$SESSION"
agent-device press 540 2147 --settle --session "$SESSION"
agent-device press <take-control-ref> --settle --session "$SESSION"
agent-device snapshot -i --session "$SESSION"
agent-device fill <address-ref> http://127.0.0.1:19501/protected --settle --session "$SESSION"
agent-device keyboard enter --session "$SESSION"
agent-device snapshot -i --session "$SESSION"
# Head only, once its native fields are visible:
agent-device fill <username-ref> demo --settle --session "$SESSION"
agent-device fill <password-ref> correct --settle --session "$SESSION"
agent-device press <sign-in-ref> --settle --session "$SESSION"
```

AI-assisted; verified with the tests and tools listed above.
