argent-android-emulator-setup

Boot Android emulators, select usable ADB device serials, and configure adb reverse for Metro.

Updated May 7, 2026
One-click install
npx skills add https://github.com/softwarebyze/Backgammon-Mastermind --skill argent-android-emulator-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: argent-android-emulator-setup
Source: https://github.com/softwarebyze/Backgammon-Mastermind/tree/main/.agents/skills/argent-android-emulator-setup
Command: npx skills add https://github.com/softwarebyze/Backgammon-Mastermind --skill argent-android-emulator-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about argent-android-emulator-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I boot an Android emulator and connect it to Metro for React Native UI tests?

To boot an Android emulator and connect it to Metro, start an AVD with a hot restore, fall back to a cold boot if needed, then configure adb reverse for tcp:8081 so the emulator reaches the host dev server.

How do I find the correct ADB device serial for automated UI interaction?

Find the correct ADB device serial by filtering available devices for the android platform and a device state, then use the selected serial for all subsequent automated UI interaction actions.

What do I need on my PATH to automate Android emulator booting?

Automating Android emulator booting requires the Android SDK platform-tools with adb and an Android Emulator binary on PATH, plus an available AVD for hot or cold boot initialization.

Why does my Android emulator boot fail when attempting a hot restore?

An Android emulator boot hot restore can fail if the AVD snapshot is corrupted; the workflow falls back to a cold boot and kills the emulator process on failure to keep the next attempt clean.

Can I reuse an existing Android device for React Native automation instead of booting a new AVD?

Yes, you can reuse an existing Android device for React Native automation by filtering for connected devices with a ready state and applying adb reverse to establish Metro connectivity.

What is the best way to prepare an Android test session before running launch and screenshot actions?

The best way to prepare an Android test session is to boot the AVD, determine the correct device UDID, and configure adb reverse so the environment is ready before launch, tap, or screenshot actions.