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
- Call android_processes with a filter set to the app name to get the pid.
- 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.
- Call android_meminfo with bundle_id to read total PSS and the Java, native, and graphics split.
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer