/android-device:android-devicefrom android-device
Triages Android crashes and manages devices with adb and logcat. Use for an app that closes on launch, a "Caused by" chain or native tombstone, INSTALL_FAILED_UPDATE_INCOMPATIBLE or other INSTALL_FAILED errors, "more than one device/emulator", pm grant and revoke, and deep links with am start. Pins one serial and asks before uninstall, pm clear or wiping data.
Ships in android-device. 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.
Pin one device and one app before touching either, read the evidence the device already holds, and ask before any command that destroys data.
Not for: the android CLI (project creation, android run, emulators, SDK packages, screenshots, layout dumps, input, journeys, android docs; android-skills:android-cli), writing or running instrumented tests (android-testing), and ANR traces (android-skills:anr-audit-and-fix).
adb devices -l. Record the serial, its state (device, not unauthorized or offline) and whether it is an emulator.ANDROID_SERIAL=<serial> or pass -s <serial> on every command, including logcat and install. Ask which device when the choice is not obvious. Never run an adb command that has no target while two are attached.build.gradle(.kts) (applicationId plus any applicationIdSuffix of the variant in use), or confirm with adb -s <serial> shell pm list packages <fragment>.adb -s <serial> shell am get-current-user. Work profiles and secondary users hold separate app data; add --user <id> to pm and am commands when it is not 0../gradlew installDebug installs on every connected device. Use ./gradlew assembleDebug and then adb -s <serial> install -r <apk> instead. A failure code means:
INSTALL_FAILED_UPDATE_INCOMPATIBLE: the installed copy has a different signature. The only fix that keeps the signature is uninstalling, which deletes the app's data; ask first, and offer a different applicationIdSuffix as the alternative.INSTALL_FAILED_VERSION_DOWNGRADE: raise versionCode, or for a debuggable build add -d to install -r.INSTALL_FAILED_INSUFFICIENT_STORAGE: check adb -s <serial> shell df /data. Name what could be freed and ask; do not clear other apps to make room.adb -s <serial> logcat -b crash -d. Use --pid=$(adb -s <serial> shell pidof -s <appId>) only while the process is still running.Caused by: chain to the last one and quote the first frame that belongs to the app's package. Report the exception, that frame as File.kt:line and a one-line cause.Fatal signal, SIGSEGV, backtrace:), read the tombstone: the logcat -b crash text, or adb -s <serial> shell dumpsys dropbox --print data_app_native_crash. Symbolize frames against the unstripped .so from the build.logcat -d -t 300 before guessing.Read references/logcat.md for buffers, filters and tombstone locations.
adb -s <serial> shell pm grant <appId> android.permission.CAMERA and pm revoke. Only runtime (dangerous) permissions can be granted this way.adb -s <serial> shell am start -W -a android.intent.action.VIEW -d '<uri>' <appId>. Single-quote the URI so the local shell does not split on &.dumpsys package <appId> or the activity that came to the front.Read references/adb.md for these commands in full and for app-state inspection.
State the command and what it deletes, then wait for a yes. This holds even when the user's request implies it.
adb uninstall and pm uninstallpm clear, rm on app storageemulator -wipe-data, deleting or recreating an AVDadb reboot into recovery or bootloader, adb root, and any factory resetandroid CLI and adb itselfadb logcat without -d never returns. Always pass -d (or -t <n>) when the output is read back.logcat after the app restarts is still in -b crash until the buffer rolls over; read it before relaunching.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin android-device