What problem does it solve?
It eliminates the friction of booting an Android emulator, finding the right device serial, and preparing the environment so automated UI actions can start reliably.
Core Features & Use Cases
- Emulator/device selection: Selects the best ready Android device by filtering for
platform: "android" and state: "device", then uses the chosen serial for subsequent actions.
- Smart boot workflow: Boots an AVD by attempting a hot restore first (via the AVD snapshot/default boot) and falling back to a cold boot, while ensuring the emulator process is killed on failures to keep the next attempt clean.
- React Native Metro connectivity: Sets up
adb reverse so the emulator can reach the host Metro server on tcp:8081, enabling UI tests and runtime flows that depend on the dev server.
- Use Case: Start a new Android session for a React Native UI test run, ensuring the emulator is up and reachable before launching the app and performing taps, swipes, and screenshots.
Quick Start
Tell the AI to run argent-android-emulator-setup to boot the required Android emulator (or reuse an existing ready device) and connect it for Metro-based React Native automation.