DEV Community

Manina AI
Manina AI

Posted on

Let an AI Agent Use Your Android Phone with a $7 ESP32 Board (No Root, No ADB)

Most ways to automate an Android phone with AI start the same way: turn on developer options, plug into a computer, run adb, or grant an app the Accessibility permission so it can press buttons inside other apps. That works, but the computer has to stay connected, and an always-on Accessibility service is a lot of trust to hand out.

This guide shows a different setup. A small ESP32-S3 board pairs with the phone over Bluetooth, the way a Bluetooth mouse would. An app on the phone captures the screen, asks a vision model for the next step, and tells the board where to tap and what to type. No root, no adb, no Accessibility service, no computer once it is set up.

It is the Android app from the open-source esp32-iphone-agent project (MIT), under android/. The Android app is early: it was ported from the iOS app and tested on real phones, and it still needs more testing, so treat it as something to try rather than something to hand your banking to.

How it works

Part What does it
Eyes Android's own screen capture (MediaProjection). Android asks you to allow it for every task, and it only runs while the task runs.
Brain A planner writes the steps, then a vision model picks each action from the current screen. In the open-source build this is your own model provider.
Hands The ESP32 board, paired as a Bluetooth touch pen, mouse and keyboard. The app sends it commands over BLE.

Because input comes from a real accessory, the phone treats it like a person using a stylus or a mouse. The app doesn't need permission to reach inside other apps.

What you need

  • An Android phone on Android 6.0 or newer.
  • An ESP32-S3 board, standard 8 MB version. The project uses the Seeed Studio XIAO ESP32S3 (about $7). Here's which one to buy.
  • A model provider key, for the open-source APK. Any OpenAI-compatible /chat/completions endpoint that takes images works.
  • A computer once, to flash the board.

The app's provider list includes OpenAI, Google Gemini, Qwen, DeepSeek, OpenRouter, NVIDIA, Nebius, H Company and Zhipu GLM, plus Others for any compatible endpoint, so a model you host yourself works too. OpenRouter's free vision models work, but slowly: about 20 requests a minute and 50 a day, and a run takes 20–40 requests.

Step 1: Flash the Android firmware

The Android board firmware lives in android/firmware/. It is a separate copy of the iPhone firmware, with a Bluetooth pen that taps at exact positions plus a relative mouse for older phones.

git clone https://github.com/onehumanbeing/esp32-iphone-agent.git
cd esp32-iphone-agent/android/firmware
./build.sh                       # build only (needs arduino-cli with the esp32 core)
./build.sh /dev/cu.usbmodemXXX   # build and flash; always name the board's port
Enter fullscreen mode Exit fullscreen mode

On Linux the port usually looks like /dev/ttyACM0. Once flashed, the app can update the firmware over Wi-Fi later, so you won't need the cable again.

Step 2: Install the app

Download the open-source APK (0.2.4 at the time of writing) from the Android README and open it on the phone. Android will ask you to allow installs from your browser. A Google Play build is in review. That one runs on Manina's free model with no key and no sign-up.

If you'd rather build it yourself (JDK 17 or 21):

cd android
./gradlew assembleOssDebug   # APK lands in app/build/outputs/apk/oss/debug/
Enter fullscreen mode Exit fullscreen mode

Step 3: Pair the board and add a model

  1. Open the app, read the disclosure and tap Agree and continue.
  2. Settings › Board › Pair a board. Power the board near the phone and pick it in Android's list. The app then checks two things: that the board is paired and that it is connected as pointer and keyboard.
  3. If your phone takes the board as a mouse instead of a pen (Android 6 kernels do), tap Calibrate pointer once. The board moves the cursor and the app watches where it lands.
  4. Settings › Model: pick a provider, paste the key, and choose a vision model from the list or type its id.

Home shows four chips: Board, Screen capture, Pointer and Model. A grey chip is a step you haven't finished, and tapping it takes you there.

Board not showing up on Android 6 or 7? Pair "ESP32 Agent XXXX" in the phone's own Bluetooth settings, then come back to the app and pick it under Choose a paired board.

Step 4: Run a first task

Start with something harmless that you can check at a glance:

Open Settings and turn on Wi-Fi.

Type it, tap Run, confirm, and allow screen capture when Android asks. The task card shows the plan and each step as it happens. Pause and Stop are in the app and in the notification, so you can stop it from anywhere.

When the agent isn't sure what to do, it asks you. Take over lets you do that step yourself and hand back. Skip this step moves on.

Tasks can be in any language the model understands. The README's own example is a WeChat message typed in Chinese.

Turn on the safety settings first

Before you give it anything that matters, open Settings › Runs:

  • Ask me first. Before a step that can't be undone (deleting for good, approving, calling, accepting terms) or before paying, the agent stops and asks you in a notification. You choose how wide this net is.
  • Unattended. If you aren't there to answer, prompts wait two minutes, then skip or stop. A risky step is never approved on its own, and a passcode is never typed.
  • Protected screens. If an app blocks screen capture (the frame comes back black), the task stops and hands control back to you. The app never works around it.

Nothing runs in the background, at boot or on a schedule. Keys are encrypted with an Android Keystore key and stay on the phone.

Re-run a task without typing it again

Tap Record (top right) and do the task once yourself. It becomes an Intent that you can run again with ▶. A finished run can also be saved as an Intent, and its saved steps get better when a later run corrects them. Good fits are the chores you do in the same app every day.

No board yet?

Try without a board runs the same loop, but instead of tapping, the app shows each step ("Tap: Settings") in the app and in a notification. You do the step and tap Next. It's a cheap way to see how well your chosen model reads your screens before you buy anything.

Honest limits

  • Each step takes a few seconds, and most of that is the model.
  • The Android app is early and still being tested across phones. If something breaks, open an issue on the repo.
  • Screenshots and your task go to whichever model provider you configure. Choose one you trust, or point it at your own endpoint.

Where to go next

The same board and the same idea run the iPhone app, where an agent works a real iPhone over Screen Mirroring and a USB or Bluetooth mouse. The Manina AI docs cover the iPhone side, and manina.ai has demos of it working through real apps.

If this helped, a ⭐ on the repo helps other Android users find it.

Top comments (0)