/adb-ops:usb-adbfrom adb-ops
Connects adb to an Android phone over USB, covering Developer options, USB debugging, authorization, permission fixes, and switching to Wi-Fi via `adb tcpip 5555`.
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.
None: SKILL.md is the whole skill.
USB is the fallback that always works: no pairing code, no port to find, and it survives Wi-Fi drops. It is also the way to get a phone onto a fixed Wi-Fi port (step 5), which is the cure for wireless debugging that keeps switching itself off.
adb devices -l
| State shown | Meaning | Fix |
|---|---|---|
<serial> device | Ready | Go on. |
<serial> unauthorized | Phone has not accepted this computer's key | Unlock the phone: an "Allow USB debugging?" dialog shows the key fingerprint. Tick "Always allow from this computer", tap Allow. No dialog: Developer options → Revoke USB debugging authorisations, unplug, replug. |
no permissions (user in plugdev group; are your udev rules wrong?) | Linux: the USB node is root-only | Install the rules: Debian/Ubuntu sudo apt install android-sdk-platform-tools-common, Fedora android-tools; then sudo udevadm control --reload && sudo udevadm trigger, replug. Make sure the user is in plugdev. |
| nothing listed | Cable, port or mode | Check lsusb shows the phone (Samsung 04e8:, Google 18d1:, OnePlus 2a70:/22d9:). Not there: try another cable/port. There but no adb: toggle USB debugging off and on, adb kill-server, replug. |
offline | adb server and phone disagree | adb kill-server && adb devices; replug. |
With several phones attached, address one: adb -s <serial> .... The serial is the first
column of adb devices.
adb -s <serial> shell 'getprop ro.product.manufacturer; getprop ro.product.model; getprop ro.build.version.release; getprop ro.serialno'
Run device-status or onboard next if this phone is new to the workspace.
adb -s <serial> shell 'ip -4 addr show wlan0 | grep inet; cat /sys/class/net/wlan0/address'
adb -s <serial> shell 'dumpsys wifi | grep -m3 -E "macRandomizationSetting|mRandomizedMacAddress|factory_mac"'
wlan0 shows the MAC the router sees on this network (randomised on Android 10+ unless the
network's privacy setting is "Phone MAC"/"Device MAC"). wifi_sta_factory_mac_address is the
hardware MAC. A reservation that lists both keeps working if the privacy setting is later
changed (dnsmasq/OPNsense accepts a comma-separated hwaddr).
adb -s <serial> tcpip 5555
adb connect <phone-ip>:5555
adb devices # the phone now shows twice: <serial> (USB) and <ip>:5555
Then the cable can come out. Port 5555 keeps working when Wireless debugging is switched off,
because it is adbd's legacy TCP mode, not the wireless-debugging service. It is lost at reboot
(redo this step, or let wireless-adb's auto-pin do it after a wireless-debugging connect).
Each other host that connects to :5555 needs its own key accepted: the phone shows the
"Allow USB debugging?" dialog again when that host first connects (unauthorized until then).
Read the phone's log while it is on USB:
adb -s <serial> logcat -d -b all | grep -E "AdbDebuggingManager|adbwifi" | tail -20
adb -s <serial> shell 'dumpsys wifi | grep ASSOCIATED_BSSID_EVENT | tail -5'
AdbDebuggingManager: Detected wifi network change. Disabling adbwifi. means Android saw a
new BSSID. Android turns wireless debugging off on any BSSID change, including the phone
moving between the 2.4 GHz and 5 GHz radios of the same access point (band steering), whose
BSSIDs differ only in the last digit (e.g. ...:63 and ...:64). Observed on a Galaxy A23 5G,
Android 14, 2026-11-29: switched off 4 s after being switched on. Fixes, best first:
WRITE_SECURE_SETTINGS:
settings put global adb_wifi_enabled 1), and let wireless-adb's autoconnect find the port.What SKILL.md sets; muted values are Claude Code's defaults
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./complementary-pluginsList and install plugins that complement adb-ops: digital-evidence, tasker-adb. Use on "what goes with this plugin", "related plugins"./device-statusReport the status of Android devices connected via ADB — serial, manufacturer, model, Android version, battery, storage, and whether the device matches the onboarded profile in <workspace>/profile.yaml. Use when the user asks "is my phone connected", "what phone is this", or before any other adb-ops operation to confirm the right device is in scope./free-spaceFree up storage on an Android phone over ADB - scan what is using the space (apps and their data, app caches, app files under /sdcard/Android such as Telegram or podcast downloads, user folders, large files, old downloads), suggest what to delete with reasons, let the user pick in a feedback form (Remove / Keep for now / Ask me), then delete only what they chose and report the space recovered. Use on "free up space on my phone", "my phone is full", "what's taking up storage", "clean up my Android"./import-mediaImport media (photos, videos, voice memos, downloads) from the connected Android device to the local computer using saved mappings from <workspace>/mappings.yaml. Supports "import new since last run" (incremental) or full sync. Use when the user says "import my photos", "pull new videos from my phone", or references a mapping label like "import camera-photos".adb-ops@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin adb-ops