android-adb-emulator

android-adb-emulator is a skill for Claude Code, Codex from ttdazi/AndroidAISkills. It costs 70 tokens per session (852 once invoked), scanned A, original, Apache-2.0.

A guide to using ADB, the Android Debug Bridge, with physical Android devices and emulators, which are software versions of phones. It covers device discovery, app installation, logs, local port connections, and emulator startup.

In plain words
What is it for?
Use it to install APKs, collect logcat output, connect an app to a local backend, start an Android Virtual Device, and troubleshoot adb or emulator problems.
Why use it?
It helps diagnose cases where Android devices are missing, unauthorized, offline, or where adb commands fail because the Android SDK tools are not set up correctly.

Skill for Claude CodeCodex

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

Good fit Use it to install APKs, collect logcat output, connect an app to a local backend, start an Android Virtual Device, and troubleshoot adb or emulator problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ttdazi/androidaiskills/android-adb-emulator
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 ttdazi/AndroidAISkills --skill android-adb-emulator
Clone the repo
git clone --depth 1 https://github.com/ttdazi/AndroidAISkills

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 android-adb-emulator

README.md
[![agentmods](https://agentmods.dev/badge/skills/ttdazi/androidaiskills/android-adb-emulator/github.svg)](https://agentmods.dev/skills/ttdazi/androidaiskills/android-adb-emulator)
Your own site
<a href="https://agentmods.dev/skills/ttdazi/androidaiskills/android-adb-emulator"><img src="https://agentmods.dev/badge/skills/ttdazi/androidaiskills/android-adb-emulator/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 android-adb-emulator

Your own site · 80×15
<a href="https://agentmods.dev/skills/ttdazi/androidaiskills/android-adb-emulator"><img src="https://agentmods.dev/badge/skills/ttdazi/androidaiskills/android-adb-emulator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 852 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00070 $0.00852
Opus 5 $0.00035 $0.00426
Sonnet 5 $0.00014 $0.00170
Haiku 4.5 $0.00007 $0.00085

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

Security

Grade A, and why

android-adb-emulator scanned grade A with 0 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

android-adb-emulator/SKILL.md · 58 lines

What it actually says

Android:ADB 与模拟器(日常最小集)

何时用本 skill

  • 设备不可见adb devices 无设备或未授权。
  • 安装/覆盖率调试logcat端口反向代理(如 Web 调试)。
  • 启动本机 AVD / 模拟器(命令行或已知 GUI 路径)。

本 skill 替代完整 adb 手册;仅覆盖 Agent 协助日常开发时的稳定路径。

前置检查

  1. USB 调试已开;真机首次连接需在手机上点「允许 USB 调试」。
  2. adb devices:状态应为 device;若为 unauthorized,处理手机授权;若为 offline,重插线缆或 adb kill-server 后重试。
  3. Windows 若 adb 找不到:Android SDK 的 platform-tools 需在 PATH,或使用 SDK 内完整路径调用 adb.exe

常用命令(按需选用)

目的 方向
列出设备 adb devices -l
安装 APK adb install -r path\to.apk(多设备时 -s <serial>
卸载 adb uninstall <包名>
日志(全局) adb logcat
常用过滤思路 按 tag/pid 过滤(具体过滤表达式随版本可查 adb logcat --help
本机端口映射到设备 adb reverse tcp:<pc端口> tcp:<设备端口>(调试本地后端时常用)

模拟器 / AVD

  • 列出 AVD:通常使用 SDK 自带 emulator -list-avdsemulator 位于 Android SDK 的 emulator 目录;若未在 PATH 中,用绝对路径)。
  • 启动某一 AVDemulator @<AVD名称>(可加 -no-snapshot-load 等参数做冷启动排查;参数以 emulator -help 为准)。
  • Android Studio:可通过 Device Manager 图形化启动;与命令行二选一即可。

与构建产物配合(原则)

  • 安装调试包:优先使用工程既有产物路径(如 app/build/outputs/apk/...),不要猜测未构建过的文件名。
  • 多模块 / 多 flavor:安装前确认当前 variant 与输出 APK 一致。

常见问题(Windows)

  • 环境变量未生效:新开终端;IDE 内嵌终端有时需重启 IDE 才继承新的 PATH。
  • 端口占用 / adb 异常adb kill-server 后执行 adb start-server,再 adb devices

与其他 skill 的分工

  • 官方文档 / android docs / android skills:使用 android-cli-docs-skills
  • ANR trace 文本分析:使用 parsing-android-anr
  • Perfetto 系统 trace 采集(adb shell perfetto.pbtxtadb pull:使用 android-perfetto-capture
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. 10d ago First seen · 58 lines · 70 tokens per session scan A ecd6eec429ca

Subscribe to this mod's changes

android-adb-emulator is a skill published in the GitHub repository ttdazi/AndroidAISkills (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 70 tokens to every session and 852 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

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