# Shell

> 强大的 ADB Shell 命令执行工具

此功能允许您直接在车机上执行 ADB Shell 命令，类似于在电脑上使用 ADB 工具。

> \[!WARNING] **高级功能**：此功能面向开发者和高级用户。执行错误的命令可能会导致系统不稳定或数据丢失。请谨慎使用。

## 功能入口

* **入口**: 首页 -> 实用工具 -> 终端
* **图标**:&#x20;

## 主要功能说明

### 1. 命令输入与执行

* **输入框**: 输入标准的 ADB Shell 命令（例如 `ls -l`, `pm list packages`）。
* **快捷符号**: 输入框上方提供了常用的 Shell 符号（如 `|`, `>`, `grep`），方便快速输入。
* **执行**: 点击播放按钮执行命令。

### 2. 快捷工具

为了方便在触摸屏上操作，提供了多种快捷辅助工具：

* **常用命令**: 内置了一些常用的调试和系统命令，一键填入。
* **应用列表**: 快速选择已安装应用的包名，填入命令中。
* **权限列表**: 快速选择 Android 系统权限名称。
* **按键列表**: 模拟物理按键点击（如 Home 键、返回键）。
* **选择文件**: 从文件管理器选择文件路径，填入命令中。

### 3. 命令历史与输出

* **历史记录**: 自动保存执行过的命令，支持快速回填。
* **输出显示**: 实时显示命令的标准输出（stdout）和错误输出（stderr），支持彩色显示状态码。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zero-7.gitbook.io/netamade/ne-zha-mei-shi/xi-tong-gong-ju/shell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
