interacting-with-android-device
Skill by bitwarden
The interacting-with-android-device skill lets an AI assistant capture Android UI state, compare it with mocks, and tap or type on a device through ADB-backed MCP tools. It is for developers testing Android apps.
Install interacting-with-android-device
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bitwarden/android /tmp/android && mkdir -p ~/.claude/skills && cp -r /tmp/android/.claude/skills/interacting-with-android-device ~/.claude/skills/interacting-with-android-deviceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install interacting-with-android-device in Claude Code
git clone --depth 1 https://github.com/bitwarden/android /tmp/android && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/android/.claude/skills/interacting-with-android-device ~/.gemini/antigravity-cli/skills/interacting-with-android-deviceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install interacting-with-android-device in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The interacting-with-android-device skill gives an AI assistant instructions for reading an Android device's screen, comparing it with design mocks, and interacting with the UI. It relies on an android-device MCP server that wraps ADB, so the assistant can capture the UI hierarchy XML and screenshots, find elements by text or content description, tap them, navigate home or back, and type text.
The MCP tools parse XML and dumpsys output and detect when system overlays or in-app elements would block a tap, adjusting coordinates when they do. The skill also documents a verification workflow: build and install the app with Gradle, inspect the screen, compare it with mocks, interact, and verify the result. It is aimed at developers who want an assistant to check Android app UI state.
Written from the project's SKILL.md and checked against it.
What it can do
- captureCaptures the UI hierarchy XML and/or a screenshot to the working directory.
- find_elementFinds an element by text or content-desc and returns coordinates with obstruction status.
- tap_atTaps at given coordinates, waits, and captures a screenshot.
- tap_elementFinds, taps, and captures an element by text in one call, adjusting for obstructions.
- navigatePerforms home, back, or app-drawer actions and captures a screenshot.
- input_textTypes text into the focused field, with an option to clear existing content first.
What you need
- An Android device or emulator connected through ADB
- USB debugging enabled on the device
- Node.js 18 or later
- A project with the android-device MCP server in .claude/mcp/android-device-server/
Try asking
- Capture the current screen and compare it with the mock image in the project.
- Tap the Settings element, then tap System and Software updates.
- Type my email into the focused field after clearing the existing text.
Good to know
- If an obstruction fully covers an element, the original center is returned as a best-effort tap.
- The navigate tool does not cover swipes, so raw ADB swipe commands are needed for scrolling.
- Raw ADB commands are used for key events that the MCP tools do not provide.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/interacting-with-android-device/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: mcp__android-device__capturemcp__android-device__find_elementmcp__android-device__tap_atmcp__android-device__tap_elementmcp__android-device__navigatemcp__android-device__input_textBash(adb:*)Bash(sleep:*)Bash(./gradlew install*:*)ReadGlob
-
SKILL.md8 KB
Alternatives to interacting-with-android-device
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
interacting-with-android-device: common questions
What does the obstruction detection check for?
It checks for system overlays such as the TalkBack menu, PiP windows, and accessibility services, and for in-app elements such as FABs, dialogs, bottom sheets, and snackbars. When an obstruction is found, coordinates are moved to the center of the largest unobstructed strip.
Why use these MCP tools instead of raw ADB commands?
The source says the tools save tokens, return structured results, and apply automatic obstruction detection. Raw ADB is only recommended when the MCP tools are not sufficient.
What should I do if the MCP tools report ADB errors?
The source suggests checking the USB connection or emulator status, enabling USB debugging, accepting the RSA key prompt, and running adb devices to confirm the device is visible.
How do I install interacting-with-android-device?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is interacting-with-android-device free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is interacting-with-android-device safe to use?
It scores 87 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to interacting-with-android-device?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
