# android

> Android Deploy 工具。list_devices: adb 设备列表。get_preset_info: 读 export_presets.cfg Android preset。deploy: export APK + adb install + launch(可选)。

| 属性 | 值 |
|------|-----|
| 所属层 | headless |
| 安全级别 | guarded |
| 需要 Godot | 是 |
| 需要编辑器 | 否 |
| 只读 | 否 |
| 长耗时 | 是 |

## Actions

- `list_devices`
- `get_preset_info`
- `deploy`
- `check_template`
- `logcat`

## Parameters

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `action` | enum (5 项) | ✓ |  |
| `project_path` | string |  | Godot 项目目录 |
| `lines` | number |  | logcat: dump 行数(默认 100) |
| `filter` | string |  | logcat: 过滤(如 *:E / GDScript:*) |
| `preset_name` | string |  | get_preset_info/deploy: preset 名 |
| `preset_index` | number |  | deploy: preset 索引 |
| `device_serial` | string |  | deploy: 设备 serial(adb -s) |
| `debug` | boolean |  | deploy: --export-debug(默认 true) |
| `launch` | boolean |  | deploy: 安装后启动(默认 true) |
| `skip_export` | boolean |  | deploy: 跳过导出(已有 APK) |

## 风险分布

读 4 / 进程 1

---
<!-- AUTO-GENERATED by scripts/gen-tool-docs.mjs from capability-matrix.json v0.32.21. DO NOT edit manually; re-run npm run gen:tool-docs after tool changes. -->
