← 返回 Skills 市场
ntriq-gh

Android Cli

作者 ntriq · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
101
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install android-cli
功能描述
Orchestrates Android development tasks including project creation, deployment, SDK management, and environment diagnostics using the `android` command-line t...
使用说明 (SKILL.md)

Android CLI Specialist

This skill provides instructions for using the android CLI tool. The tool includes various commands for creating projects, running applications, interacting with devices, and managing the CLI environment.

SDK management

To manage the installation of Android SDKs and tools, use the sdk command. For example:

  • android sdk install \x3Cpackage>[@\x3Cversion>]...: Install specific packages. Multiple packages can be specified, separated by spaces. \x3Cversion> defaults to latest. For example: android sdk install platforms/android-30@2 platforms/android-34
  • android sdk update [\x3Cpkg-name>]: Update a specific package or all packages to the latest version.
  • android sdk remove \x3Cpkg-name>: Remove a package from the local SDK.
  • android sdk list --all: List installed and available SDK packages.

Project creation

Create projects from templates using the create command.

For example: android create empty-activity --name="My App" --output=./my-app

Interacting with devices

For more information on interacting with running devices, see here

Running journey tests

For more information on running journeys, see here

Doc searching

The docs command searches authoritative, high-quality Android developer documentation in the Android Knowledge Base. By providing a few keywords, this tool will return high quality articles that contain examples or guidance on how to use Android APIs or libraries. Use this tool to obtain additional information on how to achieve Android-specific tasks or to know more about Android APIs, surfaces, libraries, or devices.

Always use this tool to get the most up-to-date information about Android concepts. Typical good use cases are:

  • Finding migration guides for APIs.
  • Finding examples for APIs.
  • Finding up-to-date information about Android APIs.
  • Finding best practices for Android concepts.

Running APKs

Use the run command to run Android apps.

Managing emulators

Manage Android Virtual Devices (AVDs) using the android emulator command

Capturing screenshots

Capture an image of the current screen of a connected Android device and output it to a file using the android screenshot command.

Managing skills

Manage antigravity agent skills for Android using the android skills command.

Inspecting UI Layouts

Use the android layout command to inspect the UI layout of an Android application. It returns the layout tree of an Android application in JSON format. When debugging UI errors, this is often a much faster approach than taking a screenshot.

Updating the CLI

Update the Android CLI using the android update command.

android help output

Usage: android [-hV] [--sdk=PARAM] [COMMAND] -h, --help Show this help message and exit. --sdk=PARAM Path to the Android SDK -V, --version Print version information and exit. Commands: create Create a new Android project describe Analyzes an Android project to generate descriptive metadata. docs Android documentation commands emulator Emulator commands help Shows the help of all commands info Print environment information (SDK Location, etc.) init Initializes the environment (eg. skills) for Android CLI. layout Returns the layout tree of an application run Deploy an Android Application screen Commands to view the device sdk Download and list SDK packages skills Manage skills update Update the Android CLI

create Usage: android create [-h] [--verbose] [--list] [--minSdk=api] --name=applicationName [-o=dest-path] [template-name] Create a new Android project [template-name] The template name -h, --help Show this help message and exit. --minSdk=api The 'minSdk' supported by the application (default is defined in the template) --name=applicationName The name of the application (e.g. 'My Application') -o, --output=dest-path The destination project directory path (default is '.') --verbose Enables verbose output --list List all available templates

describe Usage: android describe [-hV] [--project_dir=PARAM] Analyzes an Android project to generate descriptive metadata. This command identifies and outputs the paths to JSON files that detail the project's structure, including build targets and their corresponding output artifact locations (e.g., APKs). This information enables other tools and commands to locate build artifacts efficiently. -h, --help Show this help message and exit. --project_dir=PARAM The project directory to describe -V, --version Print version information and exit.

docs Usage: android docs [-h] [COMMAND] Android documentation commands -h, --help Show this help message and exit. Commands: search Search Android documentation fetch Fetch Android documentation

emulator Usage: android emulator [-h] [COMMAND] Emulator commands -h, --help Show this help message and exit. Commands: create Creates a virtual device start Launches the specified virtual device. This command will return when the emulator is fully started and ready to use. stop Stops the specified virtual device list Lists available virtual devices remove Delete a virtual device

help Usage: android help [COMMAND] Shows the help of all commands [COMMAND] The command to show help for

info Usage: android info \x3Cfield> Print environment information (SDK Location, etc.) \x3Cfield> The specific field to print the value of. If omitted print all.

init Usage: android init Initializes the environment (eg. skills) for Android CLI.

layout Usage: android layout [-dhp] [--device=PARAM] [-o=PARAM] Returns the layout tree of an application -d, --diff Returns a flat list of the layout elements that have changed since the last invocation of ui-dump --device=PARAM The device serial number -h, --help Show this help message and exit. -o, --output=PARAM Writes the layout tree to the specified file or directory. If omitted, prints the tree to standard output -p, --pretty Pretty-prints the returned JSON

run Usage: android run [-h] [--debug] [--activity=PARAM] [--device=PARAM] [--type=PARAM] [--apks=PARAM[,PARAM...]]... Deploy an Android Application --activity=PARAM The activity name --apks=PARAM[,PARAM...] The paths to the APKs --debug Run in debug mode --device=PARAM The device serial number -h, --help Show this help message and exit. --type=PARAM The component type (ACTIVITY, SERVICE, etc.)

screen Usage: android screen [-h] [COMMAND] Commands to view the device -h, --help Show this help message and exit. Commands: capture Outputs the device screen to a PNG resolve Target UI elements visually

sdk Usage: android sdk [COMMAND] Download and list SDK packages Commands: install Install SDK packages update Update one or all packages to the latest version remove Remove a package from the SDK list List installed and available SDK packages

skills Usage: android skills [COMMAND] Manage skills Commands: add Install a skill remove Remove a skill list List available skills find Find skills by keyword

update Usage: android update [--url=PARAM] Update the Android CLI --url=PARAM The URL to download the update from

安全使用建议
This skill appears to be a legitimate Android CLI/testing helper, but review before use: 1) The SKILL.md assumes the 'android' CLI and 'adb' exist and will run device commands (taps, swipes, captures) — the skill metadata does not declare these binaries; treat that as an oversight and only run against devices/emulators you control. 2) The agent may capture layout JSON and screenshots that can contain sensitive text (passwords, PII). If you install, avoid running on real user devices or sensitive apps, or require redaction and auditing of outputs. 3) The journeys require executing UI steps exactly; this can change app state — test in an isolated environment first. 4) Because this is instruction-only, there is no code to scan; verify commands in SKILL.md yourself if you have concerns. If you want to proceed, ensure the environment has android/adb from trusted sources and consider restricting autonomous invocation or limiting the agent's access to real devices.
功能分析
Type: OpenClaw Skill Name: android-cli Version: 1.0.0 The skill bundle provides a comprehensive interface for Android automation, but includes a high-risk 'android update --url=PARAM' command in SKILL.md that allows the agent to download and execute updates from arbitrary URLs. This represents a potential Remote Code Execution (RCE) vector or a mechanism for persistence. While these capabilities are risky and lack input validation, they appear aligned with the stated purpose of managing an Android development environment, and no explicit evidence of intentional malice or data exfiltration was found.
能力评估
Purpose & Capability
The name and description (Android CLI for SDK, project, emulator, and UI interaction tasks) align with the SKILL.md and reference docs: commands cover sdk, create, run, emulator, layout, screen, and journeys. The declared capabilities match the stated purpose.
Instruction Scope
The instructions direct the agent to call device-facing tooling (adb shell input, screen capture, layout dumps) and to perform UI interactions and produce JSON test reports. That behavior is expected for an automated Android-testing/orchestration skill, but these actions can read on-screen text and capture screenshots (potentially sensitive data). The docs do not provide guidance for handling or redacting sensitive UI content or limiting destructive operations; journeys require executing steps exactly, which may perform intrusive device interactions.
Install Mechanism
This is an instruction-only skill with no install spec or code to write to disk. That minimizes supply-chain risk.
Credentials
The metadata declares no required binaries or environment variables, but the instructions assume the presence of the 'android' CLI and 'adb' tooling and reference an SDK path flag (--sdk). This mismatch (missing required binaries / env declarations) is an incoherence: a legitimate Android CLI skill should declare required binaries (android, adb) and possibly an SDK path env/config to be proportionate and transparent.
Persistence & Privilege
The skill is not always-enabled and has no install hook or persistent presence. It does not request elevated platform privileges in the manifest.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install android-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /android-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of android-cli: - Orchestrates Android development tasks via the `android` command-line tool. - Supports project creation, deployment, emulator and SDK management. - Includes commands for device interaction, diagnostics, and UI inspection. - Integrates Android documentation search and environment info utilities. - Provides CLI commands for skill and environment management.
元数据
Slug android-cli
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Android Cli 是什么?

Orchestrates Android development tasks including project creation, deployment, SDK management, and environment diagnostics using the `android` command-line t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 101 次。

如何安装 Android Cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install android-cli」即可一键安装,无需额外配置。

Android Cli 是免费的吗?

是的,Android Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Android Cli 支持哪些平台?

Android Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Android Cli?

由 ntriq(@ntriq-gh)开发并维护,当前版本 v1.0.0。

💬 留言讨论