phone-control

Controls Android devices via ADB shell commands for screen, media, clipboard, and apps.

10|2|Updated Jul 9, 2026
One-click install
npx skills add https://github.com/xvxv-stack7/android-claude-agent --skill phone-control-xvxv-stack7
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: phone-control
Source: https://github.com/xvxv-stack7/android-claude-agent/tree/main/skills/phone-control
Command: npx skills add https://github.com/xvxv-stack7/android-claude-agent --skill phone-control-xvxv-stack7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets an AI agent directly operate an Android phone without root, a computer, or WiFi—locking the screen, killing apps, controlling media, reading the clipboard, and capturing screenshots for vision analysis through a local ADB loopback connection. ## Core Features & Use Cases - Device Control: Lock/wake the screen, force-stop apps, adjust volume, send media keys, and navigate with home/back keyevents via adb -s 127.0.0.1:5555 shell. - Screenshot + AI Vision: Capture the screen with screencap and analyze it using a vision script with Ollama, Qwen-VL, or GPT-4V providers. - Clipboard, URLs & Camera: Read/write the clipboard (with termux-api fallback), open URLs and deep links, and launch the camera. - Use Case: While you are away, the agent notices a misbehaving app, force-stops it, takes a screenshot to confirm the state, and sends you a notification—all over the local 127.0.0.1 ADB connection. ## Quick Start Ask the AI to take a screenshot of my phone and describe what is currently on the screen.

Frequently Asked Questions about phone-control

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control an Android phone with ADB shell commands?▼

Connect with adb connect 127.0.0.1:5555, then run adb -s 127.0.0.1:5555 shell followed by commands like input keyevent 26 to lock, am force-stop to kill apps, or screencap to capture the screen. No root is required.

How to take a screenshot on Android without root?▼

Run adb shell screencap -p /sdcard/screenshot.png to save a PNG capture of the current screen. If Shizuku is available, rish -c 'screencap -p /sdcard/screenshot.png' works as a dual-channel alternative.

Does ADB device control work without WiFi or a computer?▼

Yes. After a one-time wireless debugging setup switches adbd to TCP port 5555, the phone connects to itself over the 127.0.0.1 loopback. WiFi can be turned off or airplane mode enabled afterward.

Why does adb clipboard get-text fail on some Android versions?▼

The cmd clipboard command is restricted on newer Android releases and may return nothing. The documented fallback is termux-clipboard-get and termux-clipboard-set from the termux-api package.

What are the limitations of ADB keyevent-based control?▼

Keyevents simulate hardware buttons only, so they cannot read UI element content or tap arbitrary coordinates reliably across layouts. HarmonyOS NEXT removes ADB entirely, and EMUI 12+ blocks some dumpsys activity output.