← All guides AI Release
RU Subscribe to @ai_releaseorg

How to Give Claude Code a Phone: Setting Up phone-connector-for-claude and an Android Emulator

Updated: 27.11.2026 · AI Release · @ai_releaseorg
How to Give Claude Code a Phone: Setting Up phone-connector-for-claude and an Android Emulator

TL;DR

What you will get

Quick start

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 8765

Details and verification — in the steps below.

Requirements and setup

Illustration: Requirements and setup
Illustration: Requirements and setup

Step 1. Install the SDK tools and boot an emulator

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 devices

Example: avdmanager answers with something like Auto-selecting single ABI x86_64, and adb devices prints:

List of devices attached
emulator-5554	device

AVD 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.sdk

It 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.

Step 2. Install and start phone-connector-for-claude

Illustration: Step 2. Install and start phone-connector-for-claude
Illustration: Step 2. Install and start phone-connector-for-claude

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 8765

Example: collect these values before starting:

ValueWhere to take itExample
Device serialoutput of `adb devices``emulator-5554`
ADB binary`$ANDROID_HOME/platform-tools/adb``/home/dev/Android/Sdk/platform-tools/adb`
Portany 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:LISTEN

You 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

Step 3. Verify the round trip from Claude Code

Illustration: Step 3. Verify the round trip from Claude Code
Illustration: Step 3. Verify the round trip from Claude Code

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.png

wm 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:

Troubleshooting

Problem. The connector reports no phone

adb kill-server && adb start-server
emulator -avd claude-phone -no-snapshot-load &
adb wait-for-device && adb devices

Problem. The connector cannot bind its port

lsof -i :8765
kill <PID>
<connector-start-command> --port 8766

Problem. ADB is not on PATH

which adb        # Windows: where adb
adb version

Summary and next steps

You 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.

FAQ

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.

🤖 AI summary

AI Release Knowledge Layer
Machine-readable description · Version 1.0

Status: practical guide. Some statements come from vendors; verify in your environment.

1. Summary

Time to complete: about 40 minutes Difficulty: Intermediate

Inside: direct answers, key facts, entities, context, reliability, unknowns and sources.

Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.

Full Knowledge Layer: sections 2–8

2. Direct answers

What is required?
Linux, macOS, or Windows 10/11. On Windows run the ADB commands from PowerShell and use %USERPROFILE%\AppData\Local\Android\Sdk as the SDK path.; Android SDK packages platform-tools (contains adb — Android Debug Bridge, the command-line channel to a device) and emulator.; One system image. The exact ID has the form… → details (AR-GUIDE-KAKDATCLAU-003)
How to do it?
Step 1. Install the SDK tools and boot an emulator → Step 2. Install and start phone-connector-for-claude → Step 3. Verify the round trip from Claude Code → details (AR-GUIDE-KAKDATCLAU-004)
Which topics does it cover?
phone-connector-for-claude, Claude Code Android эмулятор, как подключить телефон к Claude Code, Claude Code управление Android, ADB Android эмулятор Claude → details (AR-GUIDE-KAKDATCLAU-002)
What are the key points?
Time to complete: about 40 minutes Difficulty: Intermediate → details (AR-GUIDE-KAKDATCLAU-007)

3. Key facts

  1. Time to complete: about 40 minutes — evidence; status: заявление источника.
  2. Difficulty: Intermediate — evidence; status: заявление источника.
  3. You need: Claude Code installed and signed in; Android SDK command-line tools with platform-tools and emulator; one Android system image; the phone-connector-for-claude sources; one free local TCP port. — evidence; status: заявление источника.
  4. Linux, macOS, or Windows 10/11. On Windows run the ADB commands from PowerShell and use %USERPROFILE%\AppData\Local\Android\Sdk as the SDK path. — evidence; status: заявление источника.
  5. Android SDK packages platform-tools (contains adb — Android Debug Bridge, the command-line channel to a device) and emulator. — evidence; status: заявление источника.
  6. One system image. The exact ID has the form system-images;android-<API-level>;<tag>;<abi> and is listed in Android Studio's SDK Manager — copy it from there, do not guess it. — evidence; status: заявление источника.

4. Entities

EntityTypeRole
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 или разделах гайда

5. Context

  • Guide — describes → How to Give Claude Code a Phone: Setting Up phone-connector-for-claude and an Android Emulator (AR-GUIDE-KAKDATCLAU-001).
  • Guide — includes step → Step 1. Install the SDK tools and boot an emulator (AR-GUIDE-KAKDATCLAU-001).

6. Reliability

Confirmed

No independent confirmation is provided; source claims and editorial conclusions are separated below.

Source claims

  • Product features, versions, prices and limits come from vendors and the guide.
  • Commands and steps are recommendations, not guaranteed results.

AI Release analysis

  • Structure, comparison and selection criteria are editorial.
  • The guide does not replace an independent audit or legal advice.

7. Unknowns

  • Current versions, prices and limits.
  • Independent benchmarks and quality checks.
  • Terms of use and data policy.

8. Sources

SourceTypeRole
No external links——

Cite as: AI Release. Как дать Claude Code телефон: установка phone-connector-for-claude и Android-эмулятора. ai-release.org.