Experiment 02: Claude runs on the phone, with root (Working) A developer running the handle "rethink" got Claude Code v2.1.330 with Claude Opus 5.5 running directly on an Android phone by unpacking Debian 13 (arm64) from Docker's debian:trixie-slim image into /data/local/rethink/debian, entering it with chroot, and giving the agent root through a single `sudo android ` wrapper that reaches Android's real root shell via /proc/1/root. In a recorded run, the agent answered "Can you call Gaurav" by running `content query` against the contacts provider and then `am start -a android.intent.action.CALL -d tel:+91XXXXXXXXXX`, placing a call that ended on its own after about 8 seconds. The first call attempts failed with "Failed transaction" because SELinux blocked Android's system service from writing am output into Debian's files; the fix was routing output through a pipe instead of a file. Warning Highly experimental. Proceed with caution. Reproducing this means flashing a new operating system and running code as root. One wrong step can brick your phone or erase everything on it. Use a spare phone you can afford to lose. What I wanted to try In Experiment 01 https://rethinkphone.tech/experiments/claude-operates-the-phone/ , Claude ran on my laptop and reached the phone over USB. I wanted the agent itself on the phone. So I put a small Debian Linux system inside the phone, installed Claude Code there, and opened it from a terminal app on the phone's own screen. I also gave it root. Instead of a fixed set of tools, Claude runs Android's own commands: content query to read contacts, am start to place a call, input tap to touch the screen. What you're watching The phone's screen, mirrored to my laptop with scrcpy https://github.com/Genymobile/scrcpy for recording. 1. I open the terminal app Termux https://github.com/termux/termux-app . debian logs in to the phone's Debian, and claude starts Claude Code there. The header shows it's running in /home/rethink , on the phone. 2. I type Can you call Gaurav . Claude searches the phone's contacts, finds the number and places the call. The dialer comes up, then Claude tells me the call has started. These are the two commands it ran, from the phone's own log: 16:18:10 content query --uri content://com.android.contacts/data/phones --projection display name:data1 16:18:16 am start -a android.intent.action.CALL -d tel:+91XXXXXXXXXX | Model | Claude Opus 5.5, in Claude Code v2.1.330, running on the phone | | Permissions | I had auto mode on, so Claude Code ran both commands without asking | | Typing | I typed on my laptop's keyboard through scrcpy, which forwards keystrokes to the phone. Claude, its tools and the call all ran on the phone | | Takes | One earlier run at 15:17, the first time it worked, which also placed and ended a call. Before that, calls failed see below | | Ending | The call ended on its own after about 8 seconds. Claude didn't hang up, and the take stops with "hang up" typed but not sent | | Edits | Cropped to the phone. The number is covered in the dialer and in Claude's replies, and the transcript is covered for 6 seconds while the command with the number scrolled by. Re-encoded at 30 fps. No cuts, no speed changes | | Log | android-commands.log https://rethinkphone.tech/assets/experiments/02/android-commands.log , number redacted | How it works - Debian 13 arm64 is unpacked into /data/local/rethink/debian and entered with chroot . It's the root filesystem of Docker's official debian:trixie-slim image, pinned by commit and checksum. - Claude Code is the official Linux arm64 build, installed as an ordinary user, rethink . - Root is a single command, sudo android