| name | android |
|---|---|
| description | Direct Android device control through ADB. Use for authorized device automation, testing, screenshots, UI inspection, and app interaction. |
Direct Android device control through ADB. For task-specific edits, use
agent-workspace/agent_helpers.py. For app-specific knowledge, use
agent-workspace/app-skills/<package>/.
android-harness <<'PY'
print(device_info())
print(current_app())
print(page_info())
PYHelpers are pre-imported. Prefer this loop:
- Take a screenshot.
- Inspect current app and UI tree if needed.
- Act with tap, swipe, type, or key events.
- Wait for screen/app/text change.
- Capture the result.
Screenshots are the primary observation source. uiautomator XML is an auxiliary
source and may be incomplete for WebView, games, canvas, or custom-rendered UI.
Use this harness only on devices and apps where automation is authorized. The core does not hide ADB, root, accessibility, emulator, or automation signals.