Skip to content

Drive an Android phone from your computer (esp32agent)

The same esp32agent commands that drive an iPhone also drive an Android phone. The phone runs the Manina AI app with a board flashed for Android. An Android phone doesn’t mirror its screen to the board, so the app shares the screen with your computer itself, over your Wi-Fi. Taps and keys still go through the board. Install the CLI and connect your agent first: CLI & AI agents.

  1. Pair the board with the phone in the app (Android board).
  2. On the computer, run esp32agent pair within three minutes of powering the board.
  3. In the app, open Settings › Board › Computer (CLI), turn on Share screen with the computer and tap Start sharing. Accept Android’s screen capture dialog: it asks every time. A notification with Stop shows while the phone shares.
  4. Put the computer on the same Wi-Fi as the phone, then run esp32agent screenshot. It connects to the phone and writes its screen to a file.
Terminal window
esp32agent pair # within 3 minutes of powering the board
esp32agent screenshot # the phone's screen, shared by the app
esp32agent io tap 540,1200 --aim # tap at pixels of a full-size screenshot
esp32agent io button HOME # Home (sent as Meta+Enter)
esp32agent io keys esc # Back

Agents that use esp32agent mcp get the same screen and board through their MCP tools.

  • Taps. On most phones the board’s pen lands where it points: no calibration and no aiming (calibrate says so). On older kernels such as Android 6, where the app uses mouse mode, the mouse is calibrated and aimed on the shared frames, as on an iPhone.
  • Only your computer can connect. For each sharing session the app makes a new key and leaves it, with the phone’s address on your Wi-Fi, on the board over its paired Bluetooth link. The CLI reads it back over its own paired, encrypted session, and the frames are encrypted with keys from that handshake. Nothing goes through a server.
  • The app comes first. Starting a task or a recording in the app ends the sharing, and the CLI gets busy: the Manina app is running a task on the phone. Start sharing again afterwards.
  • Screen recording (screencapture) streams --format mjpeg only.
  • screenshot can’t reach the phone. Check that sharing is on in the app and that the computer and phone are on the same Wi-Fi. The app warns if the phone has no Wi-Fi address.
  • The app can’t tell the computer where to connect. The board is off or out of range: power it and keep it near the phone, then tap Start sharing again.