# Android Shell

> Run checked Android shell commands on a connected device with an allowlist discipline and output that is parsed, never raw-trusted. Use for diagnostics and small operations that the dedicated skills do not expose.

- Skill: `samraddhashrivastavatech/android-shell` (Agent Skill)
- Install (CLI): `npx skillmds@latest add samraddhashrivastavatech/android-shell`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samraddhashrivastavatech/android-shell/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: SAMRADDHASHRIVASTAVATECH (https://skillmd.com/u/samraddhashrivastavatech)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/samraddhashrivastavatech/android-shell

---


# Android shell commands

Execute shell commands on the device through a checked gateway, with output
analysed rather than blindly followed.

## When to use

- Diagnostics: `getprop`, `dumpsys` (bounded subsets), `pm` queries.
- Inspecting package/process/network state that has no dedicated tool.
- Small, reversible operations when a dedicated skill is not available.

## Tools used

- `shell` — run a bounded command; outputs parsed and returned as data.
- `verify` — confirm the transport is healthy before expensive commands.

## Allowlist discipline

Prefer read-only families: `getprop`, `dumpsys` (narrow queries), `pm list`,
`settings get`, `df`, `ls`, `logcat -d -t <limit>`. Mutating families
(`pm uninstall`, `settings put`, `am force-stop`, `rm`) require `confirm=true`
and explicit human approval; treat them as exceptional.

## Procedure

1. State the exact command and why (never a surprise shell).
2. For mutating commands: show the human and get `confirm=true`.
3. Run with a bounded timeout; never a fire-and-forget background process.
4. Parse the output; never treat `exit 0` alone as success — check the result.

## Security

- This is a privileged channel: keep it allowlisted and auditable.
- Never use the shell to bypass a gate that a dedicated tool would refuse.

## Related skills

`android-adb` · `android-apps` · `android-files` · `android-control`
