{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "zseven-w-dsh-android--diagnose-crash-or-anr-with-logs-and-meminfo",
 "repo": "ZSeven-W/dsh-android",
 "repo_url": "https://github.com/ZSeven-W/dsh-android",
 "repo_slug": "zseven-w-dsh-android",
 "title": "Diagnose a crash, ANR, or memory spike on a device",
 "page_title": "How to diagnose a crash, ANR, or memory spike on a device with DSH Android",
 "summary": "Pull logs, process stacks, and a memory summary for one app to find the cause of a failure.",
 "who": "An Android developer investigating a crash, an application not responding error, or high memory use reported during testing.",
 "problem": "Finding the failing process, its stacks, and its memory split usually means running several adb commands and reading raw output.",
 "outcome": "The developer gets the app's logs, its memory breakdown, and a stack dump or the crash buffer, all in one conversation.",
 "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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "90 minutes",
 "basis": "readme",
 "caveat": "Most non-rooted devices refuse the ANR trace directory, so the backtrace tool may fall back to the crash buffer only.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/zseven-w-dsh-android/diagnose-crash-or-anr-with-logs-and-meminfo/",
 "md": "https://dedupedai.com/use-cases/zseven-w-dsh-android/diagnose-crash-or-anr-with-logs-and-meminfo/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/zseven-w-dsh-android--diagnose-crash-or-anr-with-logs-and-meminfo.json",
 "api_version": "v1"
}
