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 從公開儲存庫中收錄這些內容。

檢舉或申請下架