pi-android-cli

Android CLI tools for pi — Gradle, ADB, Emulator, Logcat, Layout Inspector, and Android Knowledge Base integration.

Packages

Package details

extension

Install pi-android-cli from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-android-cli
Package
pi-android-cli
Version
1.0.3
Published
May 21, 2026
Downloads
not available
Author
dxmhxr
License
MIT
Types
extension
Size
587.9 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/android-cli.ts"
  ],
  "image": "https://raw.githubusercontent.com/RHMDHDYT/pi-android-cli/main/banner.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-android-cli

npm version

Android development tools for pi, bridging the official Android CLI and low-level SDK binaries.

Tools

Tool Description
android_cli Generic wrapper for the official android command (info, update, describe, create, emulator, docs, layout, etc.)
android_project describe project metadata / list_templates via Android CLI
android_docs Search and fetch from the Android Knowledge Base (android docs search / android docs fetch)
android_layout Capture active app UI hierarchy as JSON (android layout)
android_gradle Run Gradle wrapper tasks (./gradlew)
android_adb Low-level ADB commands (devices, shell, install, etc.)
android_emulator Manage AVDs. Prefers Android CLI; falls back to raw SDK binaries
android_logcat Capture, filter, and clear device logs with PID resolution

Commands

Command Description
/android-sdk Show discovered SDK path, CLI path, and binary locations

Install

From npm (recommended)

pi install npm:pi-android-cli

Or pinned to a version:

pi install npm:pi-android-cli@1.0.0

From git

pi install git:github.com/RHMDHDYT/pi-android-cli@v1.0.0

Local (project-only)

pi install ./path/to/pi-android-cli -l

Requirements

Auto-discovery

The extension searches for:

  • SDK: $ANDROID_HOME, $ANDROID_SDK_ROOT, ~/Library/Android/sdk (macOS), %LOCALAPPDATA%\Android\Sdk (Windows)
  • CLI: android in PATH, ~/.local/bin/android, ~/Library/Android/sdk/cmdline-tools/*/bin/android

License

MIT