# Phone Agent

通过 ESP32-S3 和 Wi-Fi 控制 Android 手机的本地代理方案。

Control an Android phone with an ESP32-S3 over Wi-Fi: MicroPython + Mobilerun Portal + DeepSeek. No PC, no ADB host, no root.

通过 ESP32-S3 和 Wi-Fi 控制 Android 手机的本地代理方案。

- id: zhongqing725-esp32-phone-agent
- author: zhongqing725
- repository: https://github.com/zhongqing725/esp32-phone-agent
- license: MIT
- shape: square
- scenes: ai
- boards: ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/zhongqing725-esp32-phone-agent/
- html_zh: https://esp32gallery.com/zh/projects/zhongqing725-esp32-phone-agent/
- json: https://esp32gallery.com/data/catalog/projects/zhongqing725-esp32-phone-agent.json

## Hardware

ESP32-S3. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-S3；请在上游构建文档中核对具体板型、供电与接线。

## English

```
An ESP32-S3 with MicroPython drives an Android phone through its UI - no PC and no ADB host. The board joins the phone's hotspot, reads the accessibility tree from the Mobilerun Portal app over HTTP, asks a DeepSeek model for one JSON action at a time and taps, swipes or types until the task says done. Verified on a N16R8 board with a OnePlus Ace 6T running Android 16: finding the Android version took 12 steps, reading the battery 6, both answers correct. 8 MB PSRAM is recommended but boards without it can still run text-only tasks. Everything per-step depends on the hotspot staying up and the Portal token, which is stable until the app is reinstalled; typing needs the Portal keyboard set as the active IME. Each step takes 3 to 10 seconds, and screenshots are not used on purpose.
```

## 中文

```
一块跑 MicroPython 的 ESP32-S3 直接操纵 Android 手机，不需要电脑，也不需要 ADB 主机。板子连上手机热点，用 HTTP 从 Mobilerun Portal 应用读取无障碍树，交给 DeepSeek 模型决策，一次只回一个 JSON 动作，然后点按、滑动或输入，直到动作返回 done。在 N16R8 板子和 Android 16 的一加 Ace 6T 上实测：查 Android 版本用了 12 步，查剩余电量 6 步，两次答案都对。规格建议 8 MB PSRAM，没有也能跑纯文本任务。前提是热点一直开着、Portal 的 token 有效（重装应用才会变），输入文字还得把 Portal 键盘设为当前输入法。每一步要等模型想 3 到 10 秒，截图是有意不用的。
```
