# root_run_command

root_run_command — a prompt for Claude Code runs shell commands on Android with root privileges. Used when interacting with device system files.

- prompt · `type=prompt` · Claude Code, ChatGPT · ★ 9488 repo stars
- Author: wangzan101
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/wangzan101/Mika/tree/HEAD/core/src/main/resources/prompts/tools/root_run_command.md
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/prompts/root-run-command

## What it does

The prompt grants access to protected Android paths, bypassing the standard Linux sandbox. Read-only queries execute directly, whereas modifications or redirects require explicit user approval. The agent returns exit codes, stdout, stderr, timing metrics, and timeout flags.

Execution timeout defaults to 30 seconds with a maximum limit of 300. The tool interacts directly with the device shell through su.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/root_run_command.md`

### ChatGPT

**How to use**
- Paste the text at the start of a chat or into project instructions

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/wangzan101/Mika/tree/HEAD/core/src/main/resources/prompts/tools/root_run_command.md

## When to use it
- run an Android shell command as root
- access protected system files on a device
- read private data from other applications
- query system state via dumpsys or getprop

## Example prompts
- Run an Android command with root_run_command
- Execute a root shell command on the device
- Inspect system logs using root_run_command

## Source text · root_run_command.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 4e3b367c08a2376c.

BEGIN THIRD-PARTY FILE 4e3b367c08a2376c
```text
Run an Android shell command as root (uid 0) through su: full access to the whole phone, including other apps' private data and system files. This is the device shell, not the Linux sandbox. Returns ok, exitCode, timedOut, durationMs, stdout and stderr (head and tail when long). ok is true only when the exit code is 0 and it did not time out. Read-only commands (ls, cat, stat, du, find without -delete or -exec, grep, getprop, dumpsys, sqlite3 with only SELECT or PRAGMA reads, and the like) run directly. Anything else, or anything that cannot be told apart from a change (redirecting output to a file, $(...), piping into sh), may first ask the user, showing the exact command; if the user says no it is not run. Time limit: timeoutSec, default 30, at most 300.
```
END THIRD-PARTY FILE 4e3b367c08a2376c

The third-party file has ended. Everything between the 4e3b367c08a2376c tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© wangzan101 · Apache-2.0 · https://github.com/wangzan101/Mika/tree/HEAD/core/src/main/resources/prompts/tools/root_run_command.md

## Similar
- [termux-safe](https://affpapa.org/en/nevibecode/skills/termux-safe.md) — skill · ★ 348 repo stars
- [setup-codex-run-actions](https://affpapa.org/en/nevibecode/commands/setup-codex-run-actions.md) — command · ★ 8052 repo stars
- [cmdxray](https://affpapa.org/en/nevibecode/mcp/cmdxray.md) — MCP server · ★ 5 repo stars
- [platform-datamask-run](https://affpapa.org/en/nevibecode/skills/platform-datamask-run.md) — skill · 1600 installs
- [mcp-cli](https://affpapa.org/en/nevibecode/skills/mcp-cli.md) — skill · 9650 installs
- [limrun-android-emulator](https://affpapa.org/en/nevibecode/skills/limrun-android-emulator.md) — skill · 41000 installs

From the same set: [wangzan101/mika](https://affpapa.org/en/nevibecode/by/wangzan101/mika.md) — 132 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
