Skip to content
Back to skills

Android Use

CSecurity

Control a real Android phone through authorized ADB with the android-use CLI or MCP server. Use for reading native and accessible WebView screens, tapping, typing Unicode, scrolling, and running batches on Android.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
developmentdebugginggitapibackend

Works with

  • cli
  • api
  • mcp

Security analysis

C71/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add leeguooooo/android-use --skill android-use --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android Use?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android Use
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/leeguooooo-android-use/badge)](https://www.skillsdirectory.com/skills/leeguooooo-android-use)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: android-use
description: Control a real Android phone through authorized ADB with the android-use CLI or MCP server. Use for reading native and accessible WebView screens, tapping, typing Unicode, scrolling, and running batches on Android.
---

# android-use

Install a missing CLI with:

```sh
curl -fsSL https://raw.githubusercontent.com/leeguooooo/android-use/main/install.sh | sh
```

Windows uses the repository's `install.ps1`. Users need Android platform-tools (`adb`) and must authorize USB debugging on their unlocked phone. `android-use doctor` lists attached devices without touching the screen. `android-use connect` starts the background service for the only authorized device; specify `--serial DEVICE_SERIAL` when several are attached. `android-use serve --serial DEVICE_SERIAL` runs it in the foreground. The service uses loopback HTTP and private credentials in `~/.android-use/connection.json`.

Use `android-use mcp` as a stdio MCP server. Each MCP process has its own owner. CLI callers should choose a stable session using `--owner SESSION`. Probe `phone_status` / `android-use status` first; act only when `drivable:true`. Respect another caller's lease.

Read `phone_elements` once and prefer one `phone_run_steps` batch for known steps. Rows have indexes bound to that read's snapshot; use both for taps. Labels must match exactly one visible, enabled row. Add an exact `kind` to distinguish a text title from a switch sharing its label, e.g. `{"type":"tap","label":"Bluetooth","kind":"StaticText"}`. Coordinates are normalized from 0 to 1. Each action defaults to observing changes, so a separate read after every tap is unnecessary.

```sh
android-use --owner example act '{"steps":[{"type":"launch_app","app":"com.android.settings"},{"type":"wait_for","expect":{"app":"com.android.settings"},"timeout_ms":5000}]}'
android-use --owner example elements
android-use --owner example act '{"type":"tap","element":3,"snapshot":"SNAPSHOT_FROM_READ"}'
```

`wait_for` uses exact `app`, `label`, `identifier` and/or `value` predicates. Multiple element predicates must match the same visible row. Put waits after screen changes. A batch stops on its first failure and reports the completed steps and applied actions separately.

Type only after confirming the foreground app and focused editable field. `phone_type` / `{"type":"type","text":"hello"}` inserts at the current selection; `clear:true` replaces the whole field. Native input preserves Unicode and line breaks without the host clipboard. Password fields support replacement only and their values are redacted. WebView input needs editable accessibility support; use `phone_capabilities` for the running version's limits.

`outcome:unknown` or `retry_safe:false` forbids automatic replay. Read the screen and check the requested postcondition. An acknowledged gesture does not prove navigation or a business operation succeeded. Do not repeat a partially completed batch. If a person changes the screen, re-read before continuing.

To kill and reopen an app (e.g. a recovery test), use `phone_restart_app` / `android-use adb restart PKG`; `phone_force_stop` only stops it. Both need ADB and return `adb_required` on the accessibility backend. `phone_recents` / `android-use adb recents` opens the app switcher on either backend.

Use `phone_screenshot` only when the tree does not answer the question. Protected surfaces may be blank. Release the caller's lease with `phone_release` / `android-use release` when done; the connection stays ready for the next task.

## Flows

Before driving an app step by step, check `phone_flow_list` / `android-use flow list --app PACKAGE`; a saved flow does the task in one call: `phone_flow_run(id, inputs)` / `android-use flow run ID --input name=value`. Use `dry_run` (`--dry-run`) to validate without the device. A failed run names the step, error, `retry_safe`, visible labels and the paths of `failure-elements.json` and `failure.png`; when `applied_actions > 0` never rerun from the top — read the screen and resume with `from_step` / `--from N`. Each run writes `events.jsonl` with epoch-ms `step_start`/`step_end` events for aligning with `adb logcat -v epoch` and recordings; `--record` and `--logcat` capture both during the run. `side_effect` flows need confirm after the user approved them. On a USB phone a run first checks that it is attached, authorized, awake and unlocked; a refusal (`device_unauthorized`, `device_locked`, …) sent nothing — fix what the hint says and rerun. After a mid-run `device missing` (cable pulled), replug, `android-use connect`, read the screen, and never replay the failed step blindly.

To save a new flow, ask the user first. Then `phone_flow_draft(reset=true)`, perform the task, `phone_flow_draft(save_as=...)`; fix its `todo` (names, a `wait_for` or `pause` after each screen change, labels over coordinates), run it once, add `verified_on`, and `phone_flow_publish(source, id, confirm=true)` with their OK. Typed text becomes `text1`… inputs and is never recorded. Format and step kinds are in the README's Flows section.

## Accessibility companion

A development companion supports Wi-Fi control without runtime ADB. Build with `ANDROID_SDK_ROOT=/path/to/sdk phone/build.sh`; create private pairing with `android-use pair --host COMPUTER_LAN_IP`, then `android-use install-app --apk phone/build/android-use-phone-arm64.apk` while USB debugging is temporarily authorized. Stop an existing ADB runner, then use `android-use connect --accessibility`. Confirm `backend:accessibility` and `drivable:true` before turning developer options off. Screenshots need API 30+. Pairing text is secret; do not print, publish or commit it. The phone app and persistent notification can stop control. After force-stop, the user must reopen the app; reconnection never replays actions.

Files in this skill

  • SKILL.md5.7 KB
  • agents/openai.yaml210 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.