android-emulator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAndroid Emulator
Android模拟器
Use on an Android Emulator to verify a running app. Work from the live UI, act on current refs or selectors, and verify the result before closing the session.
agent-deviceFor an app or package id, open it in the foreground:
bash
agent-device open <app-or-package-id> --platform android --foregroundopen--settlebash
agent-device press @eN --settle
agent-device fill @eN "text" --settleRun only when the settled diff does not show the next target. never takes ; verify it with a snapshot or named . Keep state-changing commands serial. Verify the end state with a selector or exact text, then close:
agent-device snapshot -itype--settlewaitbash
agent-device closeFor non-routine work, use the version-matched CLI help:
bash
agent-device help validateRead only the relevant follow-up topic for specialized work:
bash
agent-device help debugging # screenshots, logs, traces, video, and failures
agent-device help react-native # React Native and Expo runtime guidance
agent-device help react-devtools # component tree, props/state/hooks, and renders
agent-device help scripting # durable replay and CI workflowsUse only for platform operations. Use this workflow to verify the app and keep diagnostic output when it fails.
adb shell使用在Android模拟器上验证运行中的应用。基于实时UI操作,针对当前引用或选择器执行操作,并在关闭会话前验证结果。
agent-device对于应用或包ID,将其在前台打开:
bash
agent-device open <app-or-package-id> --platform android --foregroundopen--settlebash
agent-device press @eN --settle
agent-device fill @eN "text" --settle仅当稳定后的差异未显示下一个目标时,才运行。命令从不使用参数;需通过快照或命名来验证。保持状态变更命令串行执行。使用选择器或精确文本验证最终状态,然后关闭会话:
agent-device snapshot -itype--settlewaitbash
agent-device close对于非常规工作,请使用版本匹配的CLI帮助:
bash
agent-device help validate仅阅读相关后续主题以完成专业工作:
bash
agent-device help debugging # 截图、日志、追踪、视频及故障排查
agent-device help react-native # React Native和Expo运行时指南
agent-device help react-devtools # 组件树、属性/状态/钩子及渲染
agent-device help scripting # 持久化重放与CI工作流仅将用于平台操作。使用此工作流验证应用,并在应用故障时保留诊断输出。
adb shell