understanding-adb-architecture

understanding-adb-architecture is a skill for Claude Code, Codex from skydoves/android-testing-skills. It costs 213 tokens per session (3,869 once invoked), scanned D, original, Apache-2.0.

A reference guide to Android Debug Bridge (ADB), the tool used to communicate with Android devices. It explains ADB's command-line client, computer-side server, and on-device background process, including how they interact.

In plain words
What is it for?
Use it when investigating server-version mismatches, port conflicts, multiple ADB installations, logging settings, device keys, or Linux USB transport problems.
Why use it?
It helps identify whether an ADB problem comes from the command-line tool, the server on port 5037, or the Android device process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when investigating server-version mismatches, port conflicts, multiple ADB installations, logging settings, device keys, or Linux USB transport problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skydoves/android-testing-skills/understanding-adb-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add skydoves/android-testing-skills --skill understanding-adb-architecture
Clone the repo
git clone --depth 1 https://github.com/skydoves/android-testing-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for understanding-adb-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/skydoves/android-testing-skills/understanding-adb-architecture/github.svg)](https://agentmods.dev/skills/skydoves/android-testing-skills/understanding-adb-architecture)
Your own site
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/understanding-adb-architecture"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/understanding-adb-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for understanding-adb-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/understanding-adb-architecture"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/understanding-adb-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 213 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,869 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00213 $0.03869
Opus 5 $0.00106 $0.01935
Sonnet 5 $0.00043 $0.00774
Haiku 4.5 $0.00021 $0.00387

Measured 9d ago against content hash c996c3faf041, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade D, and why

understanding-adb-architecture scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- [ ] `~/.android/adbkey` and `~/.android/adbkey.pub` exist and are not world-readable (`chmod 600 ~/.android/adbkey`).

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.android/adbkey ~/.android/adbkey.pub
adb/architecture/understanding-adb-architecture/SKILL.md · 242 lines

How it starts

The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Understanding ADB Architecture — Client, Server, Daemon

ADB is one binary that wears three hats. Most "adb is being weird" reports come from misunderstanding which hat is misbehaving (the local CLI, the long-lived host server on port 5037, or the on-device adbd), or from two different adb binaries fighting over the same port. This skill grounds the mental model so the rest of the ADB skill set has a stable foundation.

When to use this skill

  • The user sees * daemon not running; starting now at tcp:5037 * and assumes it is an error.
  • The user sees adb server version (XX) doesn't match this client (YY); killing... after Studio updates its bundled platform-tools.
  • The user wants to enable verbose ADB logging (ADB_TRACE) or set up a CI runner with a preinstalled vendor key.
  • The user asks why deleting ~/.android/adbkey breaks every other paired device.
  • The user is debugging port 5037 collisions, multiple adb installs, or libusb-related transport failures on Linux.

When NOT to use this skill

  • The user is troubleshooting a specific connected device (USB authorization, unauthorized, no permissions) — use ../../devices/connecting-to-devices/SKILL.md.
  • The user is setting up wireless / Wi-Fi ADB — use ../../devices/connecting-over-wifi/SKILL.md.
  • The user is running adb shell am instrument for tests — use ../../tests/running-instrumented-tests-via-adb/SKILL.md.

Prerequisites

  • Android SDK Platform-Tools installed (path resolution rules below).
  • Shell access to a workstation with adb on $PATH.
  • For diagnostic flows: write access to $TMPDIR (macOS/Linux) or %TEMP% (Windows).

Workflow

  • 1. Internalize the three-piece model. From developer.android.com/tools/adb (Overview):
    • Client (adb CLI) — invoked from the terminal. Serializes commands and ships them to the server over a local TCP socket.
    • Server (adb-server) — host-side background process. Multiplexes commands from many clients, tracks connected transports, forwards traffic to adbd. Binds TCP port 5037 on localhost by default.
    • Daemon (adbd) — runs on the device. Spawned by init on userdebug/eng builds, and by the system on user builds. Receives commands from the host server over USB or TCP and executes them in the device's userspace.

Read the full file on GitHub · 242 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 242 lines · 213 tokens per session scan D c996c3faf041

Subscribe to this mod's changes

understanding-adb-architecture is a skill published in the GitHub repository skydoves/android-testing-skills (319 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 213 tokens to every session and 3,869 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ios-fix

Autonomous iOS bug fixer. (gstack).

garrytan/gstack · 15 tokens

google-mobile-ads-validate

Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects. Use when conducting a full pre-launch audit of an app that integrates GMA SDK or when validating any individual GMA SDK integration checks, such as when validating ad unit IDs and ad formats, SKAdNetwork IDs, mediation…

google/skills · 84 tokens

competition-ios-runtime

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for IPA runtime analysis, Frida hooks, Objective-C or Swift method tracing, Keychain inspection, SSL pinning bypass, URL scheme handling, and iOS request-signing recovery. Use when the user asks to hook an IPA, trace Objective-C or Swift…

zhaoxuya520/reverse-skill · 123 tokens

swiftui-performance-audit

SwiftUI performance: render, scroll, CPU/memory, updates, layout, Instruments.

steipete/agent-scripts · 24 tokens

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

node-connect

Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale…

the-open-agent/openagent · 81 tokens