# Android route-priority real-app comparison

Environment: pooled Pixel 9, Android API 36, 1080 x 2424, light theme. Each commit ran its own Metro and real T3 server from separate checkouts, with fresh backend data (T3CODE_DEV_SEED=0). The app was installed through mobile:install; no provider conversation is required for connection routing.

Base: 76f53002fba6a47c99c8949a675d62a0b2ebb5a4
Head: e8fe83208c2d447b92932b25f5a6d8be0a251a19

## Steps
1. Run routes.mjs with the real backend port. It forwards the real server HTTP responses and WebSocket traffic, with a configurable 600 ms response delay on route :47124 and no delay on :47123.
2. Pair :47124 through the app's Add Environment screen using a fresh pairing code.
3. Open Settings > Environments > host > Add route, and pair :47123 using a second fresh pairing code. Both routes belong to the same real host.
4. Edit routes, drag :47124 above :47123, Done. The two routes have the automatic Tailscale label because both use the same tailnet hostname.
5. Start a device recording. Stop the real backend, restart it from the same checkout/data directory, and wait for Connected. Inspect the route with In use.
6. For foreground recovery, make :47124 silent and disconnect route sockets. Wait for fallback connection and a scheduled better-route check to time out. Restore :47124 with zero delay, press Home, and immediately reopen the app (less than 10 seconds backgrounded). Inspect which route is In use and the real proxy descriptor log.

Host names are redacted in captures. Route ports, order, In use badges, and connection states remain visible. Videos preserve the interaction; their final frame is held for three seconds to retain Android screenrecord's final state during transcoding.
