Android Emulator

作者 callstack5ee37f30a8df无许可证4.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Verify and debug native, React Native, Expo, or Flutter apps on an Android Emulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an Android virtual device.

AI 生成的概览

通过 agent-device CLI 驱动 Android 模拟器,启动应用、检查实时界面并验证改动。

功能
该技能提供使用 agent-device CLI 操作 Android 模拟器的说明。内容包括以显式指定 Android 平台的方式打开应用或包名,然后依据交互式快照和错误提示进行点击、输入、滚动并检查实时界面。它还指引查阅与版本匹配的帮助主题,涵盖验证、调试、React Native/Expo、React DevTools 和脚本化工作流。
适用场景
当智能体需要在 Android 虚拟设备上启动原生、React Native、Expo 或 Flutter 应用时使用。适用于验证代码改动、收集失败证据或在模拟器上复现工作流等任务。
运行要求
需要单独安装 agent-device CLI,通常由用户执行全局 npm 安装;该技能不附带脚本,仅包含说明。还需要运行中的 Android 模拟器,以及在 PATH 中可访问该 CLI 的 shell 环境。

Android Emulator

Require the agent-device CLI to be installed separately before driving an emulator:

bash
npm install -g agent-device@latest

Treat installation and upgrades as user-owned setup steps. Do not run that command autonomously or substitute a mutable npx -y agent-device@latest invocation.

For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot. Target Android explicitly when opening an app or package id:

bash
agent-device open <app-or-package-id> --platform android --foreground

Follow the initial interactive snapshot and corrective error hints. If the shell reports that agent-device is unavailable, stop and ask the user to install it or expose their existing installation on PATH.

Only when the task is specialized or a command shape is unclear, read the relevant version-matched help topic:

bash
agent-device help validate        # engineering validation and build freshnessagent-device help debugging       # screenshots, logs, traces, video, and failuresagent-device help react-native    # React Native and Expo runtime guidanceagent-device help react-devtools  # component tree, props/state/hooks, and rendersagent-device help scripting       # durable replay and CI workflows

来源与署名

来源:callstack/agent-device位于skills/android-emulator提交5ee37f3

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架