Skip to content
Back to skills

Anr Audit And Fix

ASecurity

Audits Android codebases for ANR risks and diagnoses ANR stack dumps.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
researchgo

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add network-user/dotcore-skills --skill anr-audit-and-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Anr Audit And Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Anr Audit And Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/network-user-anr-audit-and-fix/badge)](https://www.skillsdirectory.com/skills/network-user-anr-audit-and-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: anr-audit-and-fix
description: Audits Android codebases for ANR risks and diagnoses ANR stack dumps.
  Use this skill when scanning Android code for ANR risks or triaging ANR stack dumps.
  Don't use for non-ANR crashes, dropped frames, general CPU profiling, or Perfetto
  system traces.
license: Complete terms in LICENSE.txt
metadata:
  author: Google LLC
  last-updated: '2026-11-10'
  keywords:
  - Android
  - ANR
  - Application Not Responding
  - responsiveness
  - main thread
  - ANR stack dump
  - Sync Barrier Leak
---

Select the execution path matching the user's request:

## 1. Path A: Static codebase ANR risk audit

When auditing source files or scanning for thread-blocking operations:

- Follow [references/risk_analysis_guide.md](references/risk_analysis_guide.md) step by step: list candidates, **prove the executing thread** (trace callers when the thread depends on them), **prove the call blocks**, then attribute and grade. Report only candidates that pass these checks; list the dismissed ones separately with a one-line reason.
- Evaluate off-main-thread mutations of attached Views not merely as crash risks (`CalledFromWrongThreadException`), but as **Sync Barrier Leak ANR** risks with their own proof (off-main execution plus an attached View).

## 2. Path B: Trace-driven diagnosis and remediation

When analyzing ANR traces or stack dumps:

- Diagnose systematically using [references/trace_analysis_guide.md](references/trace_analysis_guide.md) and format the report with [references/anr_trace_report_template.md](references/anr_trace_report_template.md).
- Base findings strictly on log evidence. Propose application fixes **only** for `APP_DEFECT` or `APP_RESOURCE_OVERLOAD` (never for `EXTERNAL_BOTTLENECK`).

Files in this skill

  • SKILL.md1.7 KB
  • references/anr_trace_report_template.md1.8 KB
  • references/risk_analysis_guide.md6.9 KB
  • references/trace_analysis_guide.md11.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.