pi-android-cli
v1.0.3
Published
Android CLI tools for pi — Gradle, ADB, Emulator, Logcat, Layout Inspector, and Android Knowledge Base integration.
Downloads
505
Maintainers
Readme
pi-android-cli
Android development tools for pi, bridging the official Android CLI and low-level SDK binaries.
- 📦 npm
- 🔗 GitHub
- 🖼️ pi.dev/packages
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-cliOr pinned to a version:
pi install npm:[email protected]From git
pi install git:github.com/RHMDHDYT/[email protected]Local (project-only)
pi install ./path/to/pi-android-cli -lRequirements
- Android SDK: Set
ANDROID_HOMEorANDROID_SDK_ROOT. Auto-discovers common paths as fallback. - Android CLI (optional but recommended): Download from developer.android.com/tools/agents/android-cli. Auto-discovers from
PATH.
Auto-discovery
The extension searches for:
- SDK:
$ANDROID_HOME,$ANDROID_SDK_ROOT,~/Library/Android/sdk(macOS),%LOCALAPPDATA%\Android\Sdk(Windows) - CLI:
androidinPATH,~/.local/bin/android,~/Library/Android/sdk/cmdline-tools/*/bin/android
License
MIT
