/adb-mcp:crash-triagefrom adb-mcp
Uses logcat to surface the real 'Caused by:' root cause hidden behind generic UI errors in Android apps. Covers crash analysis, log isolation, and app lifecycle tools for reproducing failures.
Ships in adb-mcp. 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.
A JS-level or UI-level "X failed" alert almost always hides the real cause. The truth is in the native log or the crash record. Reach for these in order.
last_crash firstlast_crash returns the most recent crash from the system DropBox — full
header and stack (JVM/RN and native), kept intact even after the lines have
rotated out of the logcat ring buffer. Optionally filter to your package. For
an actual crash this is one call instead of log spelunking.
The core mistake is reading a buffer full of history and treating "no match" as "didn't happen" (or an old match as fresh). Isolate first:
logcat {since: "2m"} — only lines from the last
2 minutes (device clock). The right axis when a user says "I just hit it".clear_logcat → perform ONE action → logcat.
Everything you read was caused by that action.start_logcat_capture {clear: true} → drive
the flow → stop_logcat_capture (bounded to the last 500 lines by default;
narrow with filters, raise tail only if truly needed).tags: ["YourAppTag", "AndroidRuntime"] — anchored to logcat's tag field;
far more precise than substring (a package-name substring drags in
ImeTracker/PackageConfigPersister noise).priority: "E" — errors and worse (W for warnings and worse).filter: "Caused by" — substring across the whole line, best for exception
hunting.Read from the bottom up. The Caused by: line is the root error — that is
the one that matters, not the top-level wrapper exception.
An empty result is only meaningful if you isolated (steps above): on a chatty
emulator, 400 lines can span seconds, and a crash may have already rotated out
— that's what last_crash and the capture flow are for.
No StrongBox available → the device fell back from hardware-backed to
software keys (relevant to Keystore attestation flows).ClassNotFoundException, or a native .so that failed
to load.list_packages with a filter confirms the app is installed and gives its exact
package name.stop_app then launch_app restarts it cleanly to reproduce from a known
state.install_app (re)installs an APK build you want to test.adb_reverse {device_port: 8081} and reload before trusting any absence of evidence.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
android-debugging, logcat, crash-analysis, native-crash, app-lifecycle
npx claudepluginhub iksnerd/adb-mcp --plugin adb-mcp6 skills in this plugin
/build-and-testBuilding, testing, and measuring coverage with GradleMapping a multi-module Gradle project before guessing a task name, building a variant, running JVM vs on-device tests, and turning a JaCoCo coverage report into the specific lines that need a test. Use when building, testing, or checking coverage for an Android/Gradle project./drivingDriving an Android emulator with this MCPThe core observe→locate→act→re-observe loop for driving an Android UI with adb-mcp — true-pixel coordinates, and gotchas like overlays eating taps, keyboards covering buttons, and settle delays. Use whenever tapping, swiping, typing, or otherwise interacting with an Android screen./getting-startedGetting started: booting and connectingHow to list AVDs, boot an emulator, target a device with the serial argument, and run a first interaction with adb-mcp. Use when starting a new Android automation task, or when no device/emulator is booted yet./pin-and-lockNative PIN pads & device lock (Keystore flows)Entering digits on native (non-IME) PIN pads, and setting/clearing a secure lock screen required by AndroidKeyStore / Keystore-backed crypto flows. Use when a task needs to unlock a device, enter a PIN, or set/clear a device lock./rn-expoReact Native / Expo dev buildsThe RN/Expo dev-build recipe for adb-mcp — adb_reverse before launching (or the dev client silently runs its embedded bundle), app_state to confirm it is on Metro, on the RIGHT Metro, and not serving stale JavaScript after a git checkout, then reload_app. Use whenever driving a React Native or Expo dev build, or when code edits appear to have no effect on the device.Other plugins' skills for the same job