/adb-ops:pair-qrfrom adb-ops
Pairs ADB with an Android phone via QR code for wireless debugging. Generates a scannable QR code, handles mDNS discovery, and completes pairing without typing codes.
Ships in adb-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Read pair-qr.md from $CLAUDE_USER_DATA/adb-ops/, else ~/.claude-user-data/adb-ops/, if it exists; its notes win over the defaults below.
Needs Android 11+, the phone and host on the same network, and qrencode on the host
(Debian/Ubuntu package qrencode). avahi-utils is recommended: adb mdns services alone can
miss the phone. nmap enables the fallbacks below.
Same flow as Android Studio's "Pair devices using Wi-Fi":
WIFI:T:ADB;S:<name>;P:<password>;;._adb-tls-pairing._tcp under that name.adb pair <ip>:<port> <password>._adb-tls-connect._tcp.Pairing happens once per host. After that, adb connect needs no code (see wireless-adb).
The QR goes in your reply, as text. Nothing opens on the desktop: a viewer window is unwanted, and tool output may not reach the user's screen, so the reply is what they scan.
Tell the user what to do on the phone, because the script is already waiting once it starts: Settings → Developer options → Wireless debugging → Pair device with QR code.
Start the script in the background (run_in_background), with a known phone IP if there is one (see below):
<skill-dir>/scripts/adb-pair-qr.sh --timeout 180
Read its output file once, straight away. Don't wait for it to finish: it only exits after the scan.
Paste the QR block into your reply, in a code block, and say how long it stays valid.
When the background task reports exit 0, run adb devices -l, then device-status.
The skill directory is ${CLAUDE_PLUGIN_ROOT}/skills/pair-qr. If that variable is unset (the skill was read from the
catalogue), use the local clone, ~/repos/github/ai-agents-and-prompts/ai-claude-plugins/Claude-ADB-Ops-Plugin (five levels
down, so a shallow find misses it). Clone danielrosehill/Claude-ADB-Ops-Plugin only if that is missing.
A known phone IP. Give the script one, so it has the port-scan fallback when mDNS doesn't reach the host. Setting
ADB_HOST in the environment does nothing: the script resets it, and reads it only from the config file. Write the file and
point at it, or use <workspace>/network.env:
echo 'ADB_HOST=10.0.0.52' > ~/.cache/adb-ops/network.env
ADB_OPS_NETWORK_CONF=$HOME/.cache/adb-ops/network.env <skill-dir>/scripts/adb-pair-qr.sh --timeout 180
Household phone IPs are in android/devices.json in the private endpoint-management plugin (repo danielrosehill/Endpoint-Management).
Options: --timeout SECONDS (default 120), --open (also show a PNG in the default image viewer, only if the user asks),
--name NAME (fixed service name, for testing). --no-open is accepted and does nothing.
Exit codes: 0 paired and connected, 1 phone never appeared or pairing failed, 2 missing dependency or bad argument,
3 paired but not connected. The log says how the phone was found: found by mDNS or found by port scan of ADB_HOST.
ADB_HOST is set in
<workspace>/network.env, the script port-scans that IP after 20 seconds and tries each open
port, so a known phone IP gets round this. Otherwise, use the pairing code route in
wireless-adb.adb connect <ip>:<port>
with the port on the Wireless debugging screen. Never pair again for this.Confirmed 2026-11-05 on a real phone: OnePlus Nord 3 (CPH2493), Android 16, host Ubuntu with adb 34.0.5. Paired and connected
on the first scan, exit 0, with ADB_HOST set. The pairing and connect ports differed (33067 and 35783), as expected. That run
predates the found by log line, so which route found the phone was not recorded.
Tested 2026-11-04 with no phone: the timeout path, and mDNS discovery against a fake _adb-tls-pairing._tcp service published
with avahi-publish.
What SKILL.md sets; muted values are Claude Code's defaults
adb-ops@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin adb-opsOther plugins' skills for the same job
15 skills in this plugin
/app-auditExport the full list of apps on an Android phone over ADB (name, version, installer, install date, last used, size, special access such as accessibility, device admin or install-unknown-apps) and find apps not opened in a long time, then let the user pick which to uninstall in a feedback form (Remove / Keep for now / Ask me). Keep and remove answers are remembered, so the next audit only asks about new candidates. Use on "unused apps", "what apps haven't I used", "export my app list", "app inventory", "which apps can I delete"./bloatware-logView, search, and summarise the bloatware operations log at <workspace>/bloatware-log.jsonl. Use when the user asks "what bloatware did I remove", "show my debloat history", "what did I disable on this phone", or wants to audit past package operations before restoring something./