android-cli

Manages Android projects, emulators, SDKs, and device interactions through the android CLI.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill android-cli-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-cli
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/pi/.pi/agent/skills/android-cli
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill android-cli-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Android development requires juggling many separate tools for project scaffolding, SDK management, emulator control, device interaction, and documentation lookup. This Skill consolidates those workflows into a single command-line interface so you can create, run, inspect, and test Android apps without switching between tools. ## Core Features & Use Cases - Project and SDK Management: Create new projects from templates and install, update, or remove SDK packages with the create and sdk commands. - Device and Emulator Control: Start and stop Android Virtual Devices, deploy APKs, capture screenshots, and inspect UI layout trees as JSON for debugging. - Documentation and Journeys: Search the official Android Knowledge Base with docs and execute XML-defined journey tests that verify app behavior step by step. - Use Case: You need to verify a login flow on a Pixel emulator. Use the Skill to start the AVD, deploy the APK, dump the UI layout to locate the login button, tap it via adb input, and capture a screenshot to confirm the result. ## Quick Start Install the android CLI and create a new empty-activity project named My App, then run it on an emulator.

Frequently Asked Questions about android-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Android project from the command line?

Use the android create command with a template name, for example: android create empty-activity --name="My App" --output=./my-app. You can list all available templates with the --list flag and set a minimum SDK level with --minSdk.

How do I inspect the UI layout of a running Android app?

Run android layout to get a flat JSON list of UI elements with properties like text, resourceId, bounds, and interactions. Use android layout --diff to see only elements that changed since the last call, which keeps output small.

How do I install the android CLI on macOS or Linux?

Run the official install script for your platform, such as curl -fsSL https://dl.google.com/android/cli/latest/darwin_arm64/install.sh | bash on Apple Silicon Macs. Separate scripts exist for Linux, Intel Macs, and Windows.

Why does android layout fail on some screens?

The layout command can fail when the app displays a WebView or an active animation. In those cases, use android screen capture --annotate to get a labeled screenshot and resolve element coordinates with android screen resolve.

What is a journey test in Android app testing?

A journey is an XML-specified test containing a sequential list of action elements that describe UI interactions and verifications. Each action is evaluated independently, and the journey fails if any action cannot be performed or its expectations are not met.

Can I manage Android emulators without Android Studio?

Yes, the android emulator command creates, starts, stops, lists, and removes Android Virtual Devices directly from the CLI. The start command returns only when the emulator is fully booted and ready to use.