# Mobile GUI-VLA Device Platform A small, dependency-free Python layer that turns an Android emulator or phone into a reproducible GUI-VLA experiment endpoint. It provides device discovery, screenshots, strict pixel-coordinate actions, a model boundary, a bounded multi-step trajectory recorder, and opt-in Android screen recording. This is a device and instrumentation layer, not a complete GUI agent. ## What is included - ADB discovery with shareable, serial-redacted output. - Screenshots and original-frame pixel coordinates. - Exactly five model-facing canonical actions: `Tap`, `Swipe`, `BACK`, `Wait`, and `Done`. - Validated human/device-control `Type` and `HOME` actions, kept outside the model parser and canonical trajectory runner. - Strict validation with no clipping or implicit coordinate conversion. - A fixture-only model boundary for integration testing. - Append-safe `steps.jsonl`, frame provenance, and terminal `trajectory.json`. - Bounded multi-step execution with explicit termination reasons. - Opt-in raw Android `screenrecord` evidence. - Headless API 33 AVD bootstrap scripts with pinned Android components. The same implementation has been exercised on a Pixel 6 profile / Android 13 API 33 AVD and on an Android 16 / API 36 physical phone over Wi-Fi ADB. See [COMPATIBILITY.md](COMPATIBILITY.md) for the exact claim boundary. ## Quick start Python 3.10 or newer is sufficient. Runtime dependencies are intentionally empty. ```bash git clone https://github.com/chbq/mobile-gui-vla-device-platform.git cd mobile-gui-vla-device-platform python -m pip install -e . python -m unittest discover -s tests -v ``` With an authorized Android endpoint already visible to ADB: ```bash python scripts/discover_android.py --shareable python scripts/adb_smoke.py \ --serial "$ANDROID_SERIAL" \ --alias test-device \ --x 540 \ --y 1200 \ --settle-seconds 1.0 ``` The smoke succeeds only when screenshots before and after the tap differ. It rejects coordinates outside the current screenshot instead of clipping them. For a bounded scripted trajectory: ```bash python scripts/trajectory_pilot.py \ --serial "$ANDROID_SERIAL" \ --alias test-device \ --instruction "Exercise bounded trajectory capture" \ --actions-json samples/trajectory_actions.sample.json \ --max-steps 5 ``` Add `--screenrecord` only when raw diagnostic video is wanted. Recording-enabled runs are qualitative evidence, not clean latency benchmarks. ## Android setup The repository does not redistribute the Android SDK, emulator, system images, or AVD data. It contains version pins, hashes, and installers that acquire official components into your own `ANDROID_HOME`. ```bash cp configs/paths.env.example configs/local.env # Edit configs/local.env for this host. source configs/local.env scripts/install_android_packages.sh scripts/create_reference_avd.sh scripts/run_reference_avd.sh ``` See [docs/ANDROID_SETUP.md](docs/ANDROID_SETUP.md) and [docs/PHYSICAL_DEVICE.md](docs/PHYSICAL_DEVICE.md). ## Physical-device demo The v0.1.0 release includes a short, sanitized qualitative recording from a Wi-Fi ADB physical-device trajectory: [Download the 720x1560, 30 fps demo](https://github.com/chbq/mobile-gui-vla-device-platform/releases/download/v0.1.0/physical-device-wifi-adb-demo.mp4) No raw endpoint, pairing value, notification content, or device serial is included in the repository or demo metadata. ## Non-goals - No bundled VLA model. - No planner, memory framework, evaluator, or task registry. - No AndroidWorld or MobileWorld dependency. - No training, SFT, RL, or dataset stack. - No device farm or cloud orchestration. - No normalized-coordinate or OCR policy layer. ## Documentation - [Quick start](docs/QUICKSTART.md) - [Action contracts](docs/ACTION_CONTRACTS.md) - [Android and AVD setup](docs/ANDROID_SETUP.md) - [Physical devices and Wi-Fi ADB](docs/PHYSICAL_DEVICE.md) - [Trajectory format](docs/TRAJECTORY_FORMAT.md) - [Troubleshooting](docs/TROUBLESHOOTING.md) - [Compatibility](COMPATIBILITY.md) - [Release validation](VALIDATION.md) ## Privacy Raw screenshots, trajectories, videos, local configuration, AVD images, and device identifiers belong outside Git. The supplied `.gitignore` covers the standard runtime paths, but users remain responsible for inspecting evidence before sharing it. ## License MIT. See [LICENSE](LICENSE).