platform-tools and emulator; one Android system image; the phone-connector-for-claude sources; one free local TCP port.claude-phone that adb devices reports as emulator-5554 device.export ANDROID_HOME="$HOME/Android/Sdk"; export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH"
avdmanager create avd -n claude-phone -k "<system-image-id>" -d pixel
emulator -avd claude-phone -no-snapshot -no-audio & adb wait-for-device
cd ~/phone-connector-for-claude && <connector-start-command> --port 8765Details and verification — in the steps below.

%USERPROFILE%\AppData\Local\Android\Sdk as the SDK path.platform-tools (contains adb — Android Debug Bridge, the command-line channel to a device) and emulator.system-images;android-<API-level>;<tag>;<abi> and is listed in Android Studio's SDK Manager — copy it from there, do not guess it.8765.adb devices. For pairing a real phone with a Windows desktop without vendor software, see How to Connect Android to Windows without Microsoft Phone Link: Open Source Alternatives.What to do: install the packages, create the virtual device, boot it without a window, and confirm ADB sees it.
sdkmanager "platform-tools" "emulator" "<system-image-id>"
avdmanager create avd -n claude-phone -k "<system-image-id>" -d pixel
emulator -avd claude-phone -no-snapshot -no-audio &
adb wait-for-device
adb devicesExample: avdmanager answers with something like Auto-selecting single ABI x86_64, and adb devices prints:
List of devices attached
emulator-5554 deviceAVD stands for Android Virtual Device — the saved hardware profile the emulator boots from. -no-snapshot forces a clean boot so the device state is predictable; -no-audio avoids audio-driver failures on headless machines.
Why: the connector never talks to a phone directly — it shells out to adb. A device that adb cannot see is invisible to Claude Code regardless of how the connector is configured.
How to check:
adb shell getprop ro.build.version.sdkIt prints the API level of the running image, for example 34. An empty answer means the device is still booting — rerun adb wait-for-device.

What to do: install the project's dependencies, set the two values it needs (device serial and port), and start it.
git clone <connector-repository-url> ~/phone-connector-for-claude
cd ~/phone-connector-for-claude
<install-command>
<connector-start-command> --port 8765Example: collect these values before starting:
| Value | Where to take it | Example |
|---|---|---|
| Device serial | output of `adb devices` | `emulator-5554` |
| ADB binary | `$ANDROID_HOME/platform-tools/adb` | `/home/dev/Android/Sdk/platform-tools/adb` |
| Port | any free local port | `8765` |
Write them into the project's config file (.env, config.yaml, or CLI flags — the project decides), using the variable names from its README.
Why: a fixed device serial matters as soon as a second emulator or a real phone is attached. Without it the connector can pick the wrong device, and every command will look successful while hitting the wrong screen.
How to check:
ss -ltnp | grep 8765
# macOS: lsof -iTCP:8765 -sTCP:LISTENYou should see exactly one process listening. No output means the connector exited — read its stdout.
If the project ships as an MCP server (Model Context Protocol — the standard way Claude Code loads external tools), register it once:
claude mcp add phone -- <connector-start-command> --port 8765
claude mcp list
What to do: ask Claude Code to act on the phone, then repeat the same action manually and compare results.
Example prompt inside Claude Code: List the attached Android devices, take a screenshot from emulator-5554, and report the screen resolution.
Manual reference:
adb -s emulator-5554 exec-out screencap -p > /tmp/screen.png
adb -s emulator-5554 shell wm size
ls -l /tmp/screen.pngwm size answers with a line like Physical size: 1080x2400, and ls -l shows a non-zero PNG.
Why: an open port only proves the process started. One executed device command proves the whole chain — Claude Code → connector → adb → emulator → back — works end to end.
How to check:
adb devices lists emulator-5554 as devicess -ltnp shows the connector port in LISTEN stateclaude mcp list lists the phone server (if you registered one)/tmp/screen.png is non-zero and opens as an imagewm size returnedProblem. The connector reports no phone
error: no devices/emulators found-no-audio/headless launch.adb kill-server && adb start-server
emulator -avd claude-phone -no-snapshot-load &
adb wait-for-device && adb devicesProblem. The connector cannot bind its port
Error: listen EADDRINUSE: address already in use :::8765lsof -i :8765
kill <PID>
<connector-start-command> --port 8766Problem. ADB is not on PATH
adb: command not found (Linux/macOS) or 'adb' is not recognized as an internal or external command (Windows).platform-tools was installed but its directory was never added to the shell environment.which adb # Windows: where adb
adb versionYou now have an emulator that ADB sees and a connector that Claude Code can call, verified by a real screenshot round trip. To run the same setup for several developers with shared subagents, continue with Claude Code for Teams: Setting Up Subagents and a Shared AI Superagent.
Does Claude Code need an emulator, or can it drive a real phone?
A real phone works the same way once adb devices lists it: enable Developer options → USB debugging, connect the cable, and put the serial from adb devices into the connector config instead of emulator-5554.
Which Android system image should I pick?
The one listed in Android Studio's SDK Manager for your CPU architecture. Copy its full ID (system-images;android-<API-level>;<tag>;<abi>) verbatim into both the sdkmanager and avdmanager commands — this guide deliberately does not fix an API level.
Why does the connector start but Claude Code sees no phone tool?
The MCP registration is per-project or per-user and is not created by starting the process. Run claude mcp list; if the phone server is missing, re-run claude mcp add phone -- <connector-start-command> --port 8765 from the same directory and restart Claude Code.
Can I run the emulator without a graphical session?
Yes — emulator -avd claude-phone -no-snapshot -no-audio starts it headless and the screenshot command still returns a real frame. If your CI image has no display, check the emulator documentation for the headless flag recommended for your version.
Status: practical guide. Some statements come from vendors; verify in your environment.
Time to complete: about 40 minutes Difficulty: Intermediate
Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.
| Entity | Type | Role |
|---|---|---|
| phone-connector-for-claude | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| Claude Code Android эмулятор | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| как подключить телефон к Claude Code | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| Claude Code управление Android | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| ADB Android эмулятор Claude | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| Windows | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| Linux | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| macOS | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| Android | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| Claude | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
No independent confirmation is provided; source claims and editorial conclusions are separated below.
| Source | Type | Role |
|---|---|---|
| No external links | — | — |
Cite as: AI Release. Как дать Claude Code телефон: установка phone-connector-for-claude и Android-эмулятора. ai-release.org.