AI-powered Android Defect Root Cause Analysis Tool
Built for Senior QA Architects, Framework Engineers & Android Debug Specialists
A single-file, browser-based tool that accepts Android bug reports and diagnostic artifacts, then uses Claude AI to produce a complete 8-step Root Cause Analysis in seconds.
| Step | Description |
|---|---|
| 1οΈβ£ Categorize Defect | Crash Β· ANR Β· Camera Failure Β· Performance Β· Battery Β· Memory Leak Β· Thermal Β· UI Β· Connectivity Β· Sensor |
| 2οΈβ£ Log Analysis | Exception type Β· Stack trace Β· Error codes Β· Thread info Β· Process name |
| 3οΈβ£ Framework Mapping | Application β Framework β HAL β Kernel β Vendor β Driver layers |
| 4οΈβ£ Root Cause | Immediate cause Β· Underlying cause Β· Trigger condition Β· Dependency failure |
| 5οΈβ£ Confidence Score | High (>90%) Β· Medium (70β90%) Β· Low (<70%) with reasoning |
| 6οΈβ£ Fix Recommendation | Developer fix Β· Config fix Β· Workaround Β· Validation plan |
| 7οΈβ£ Risk Assessment | Severity Β· Customer impact Β· Production risk |
| 8οΈβ£ Automation | Suggested regression, smoke, stress, monkey test cases |
# Clone the repo
git clone https://github.com/vanichalla24/android-rca-analyzer.git
cd android-rca-analyzer
# Open in browser
open index.html # macOS
xdg-open index.html # Linux
start index.html # WindowsEnable GitHub Pages on this repo (Settings β Pages β Deploy from branch: main) and access it at:
https://vanichalla24.github.io/android-rca-analyzer/
| Input | Field |
|---|---|
| Device Model | Samsung Galaxy S25 Ultra, Pixel 9, etc. |
| Android Version | Android 14, 15, etc. |
| Build Version | S928BXXS3AYA1, etc. |
| Affected Module | Samsung Camera, Settings, etc. |
| Bug Description | Free text |
| Reproduction Steps | Free text |
| Logcat Logs | Raw logcat paste |
| ANR Traces / Tombstone | Raw paste |
| Camera / Framework Logs | HAL, CameraService logs |
| Perfetto / Battery / Memory | Trace summaries |
All log fields are optional β the AI works with whatever you provide.
βββββββββββββββββββββββββββββββ
BUG SUMMARY
βββββββββββββββββββββββββββββββ
Issue Type | ANR
Affected Module | com.samsung.android.camera
Severity | Critical (P1)
Exception Type | android.app.RemoteServiceException
Process | com.samsung.android.camera
Thread | main
FRAMEWORK LAYER MAP
Application Layer β AFFECTED
Framework Layer β SECONDARY
HAL Layer β CLEAN
...
ROOT CAUSE ANALYSIS
Primary Cause | Binder thread pool exhaustion in CameraService
Secondary Cause | Upstream HAL callback timeout not handled
Confidence | High Β· 91%
FIX RECOMMENDATION
Developer Fix | Increase binder thread pool size, add timeout handler
Workaround | Force-stop camera app, clear cache
AUTOMATION TESTS
1. [Regression] Camera Launch Stress Test
2. [Monkey] Random camera gesture stress under low memory
3. [Regression] ANR detection on camera open/close cycle
βββββββββββββββββββββββββββββββ
index.html
βββ Tab 1: Bug Input β Device, version, description, category tags
βββ Tab 2: Logs & Traces β Logcat, ANR, HAL logs, Perfetto
βββ Tab 3: RCA Report β AI-generated full 8-step analysis
βββ Bug Summary
βββ Framework Layer Map (visual grid)
βββ Root Cause Chain
βββ Fix Recommendations
βββ Risk Assessment
βββ Automation Test Suggestions
βββ Prevention Strategy
Tech Stack: Pure HTML + Vanilla JS + CSS Β· No dependencies Β· Single file Β· Claude Sonnet 4.6 API
Vaani Challa β QA Architect & Technical Manager
Samsung R&D Institute India (SRIB), Bangalore
17+ years Β· Galaxy S-series Camera QA Lead (S22βS26)
π Best Award β Galaxy S25 & S26 Camera Quality
GitHub: @vanichalla24
MIT License β free to use, modify, and distribute.