DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to diagnose a crash, ANR, or memory spike on a device with DSH Android

Pull logs, process stacks, and a memory summary for one app to find the cause of a failure.

Short answer: Call android_processes with a filter set to the app name to get the pid; then call android_logs with mode follow, a duration_seconds value, and bundle_id set to the package name, to capture live output while the bug happens; call android_backtrace with the pid or bundle_id to dump stacks and read the ANR trace, or the crash buffer if the trace is refused. All steps.

Authorization notice. DSH Android is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forAn Android developer investigating a crash, an application not responding error, or high memory use reported during testing.

The problemFinding the failing process, its stacks, and its memory split usually means running several adb commands and reading raw output.

The outcomeThe developer gets the app's logs, its memory breakdown, and a stack dump or the crash buffer, all in one conversation.

What you need first

  • A DeepSeek Harness (DSH) host, tested by the author with DSH 0.1.5-rc.1
  • adb available on the machine so the plugin can resolve it
  • A running Android emulator or a USB-connected Android phone
  • For builds: a Gradle project that has ./gradlew

Steps

  1. Call android_processes with a filter set to the app name to get the pid.
  2. Call android_logs with mode follow, a duration_seconds value, and bundle_id set to the package name, to capture live output while the bug happens.
  3. Call android_backtrace with the pid or bundle_id to dump stacks and read the ANR trace, or the crash buffer if the trace is refused.
  4. Call android_meminfo with bundle_id to read total PSS and the Java, native, and graphics split.
  5. Read the reported engine in the backtrace result, which states which source answered and what it cannot see.

Prompt for your agent

Using the dsh-android plugin, call android_processes with filter <app name>, then android_backtrace with bundle_id <package name>, and android_meminfo with bundle_id <package name>. Expected output: the stack or crash-buffer result with the engine named, plus the memory summary. Verify the backtrace result states which engine answered before drawing a conclusion.

Caveat. Most non-rooted devices refuse the ANR trace directory, so the backtrace tool may fall back to the crash buffer only.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ZSeven-W/dsh-android and "Diagnose a crash, ANR, or memory spike on a device"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer