argent-android-emulator-setup

Boot and connect Android emulators via adb and argent MCP device tools.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill argent-android-emulator-setup-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: argent-android-emulator-setup
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/pi/.pi/agent/skills/argent-android-emulator-setup
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill argent-android-emulator-setup-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Starting an Android session requires finding a ready device, booting an AVD when none is available, and wiring up port forwarding before any UI interaction can happen. This Skill standardizes that setup flow so an agent can reliably get a usable Android device serial before driving taps, swipes, or app launches. ## Core Features & Use Cases - Device discovery and selection: Lists connected devices, filters for Android entries in ready state, and picks a serial such as emulator-5554. - AVD booting with hot/cold paths: Boots an AVD by name, restoring a snapshot when possible for fast startup or falling back to a full cold boot, with cleanup on failure. - React Native Metro support: Sets up adb reverse port forwarding on tcp:8081 so the emulator can reach the Metro bundler on the host. - Android TV handling: Detects leanback TV devices via runtimeKind and routes them to focus-driven tools instead of touch gestures. - Use Case: Before running an automated UI test on a fresh machine, use this Skill to boot the Pixel AVD, obtain its serial, and configure Metro port forwarding so subsequent interaction tools work immediately. ## Quick Start Boot an Android emulator and get its device serial so I can start interacting with my app.

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 from the command line?

Use the boot-device tool with the avdName from the list-devices output. It restores the AVD's default snapshot in about 30 seconds when usable, otherwise falls back to a cold boot taking 2 to 10 minutes.

How do I connect an Android emulator to the Metro bundler?

Run adb -s <serial> reverse tcp:8081 tcp:8081 after the device boots so it can reach Metro on your host. Repeat the command if the device restarts, since the reverse mapping does not persist.

Can I use tap gestures on an Android TV emulator?

No. Android TV and leanback AVDs are focus-driven, not touch-driven, so gesture-tap and gesture-swipe do not apply. Devices tagged with runtimeKind tv should be driven with describe, tv-remote, and keyboard tools instead.

Why does my Android emulator hang during cold boot?

A hard kill of the qemu process leaves the userdata image dirty, causing cold boots to hang for minutes during recovery. Always stop emulators with adb -s <serial> emu kill, and boot once with -wipe-data if the image is already corrupted.

What prerequisites are needed to set up an Android emulator?

You need Android SDK Platform Tools on PATH for adb, the Android Emulator on PATH for booting AVDs, and at least one AVD created via Android Studio or avdmanager. Verify the setup with adb version and emulator -list-avds.