Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Android RCA Analyzer

AI-powered Android Defect Root Cause Analysis Tool
Built for Senior QA Architects, Framework Engineers & Android Debug Specialists

Made with Claude HTML License: MIT


🎯 What It Does

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.

8-Step Investigation Flow

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

πŸš€ How to Use

Option 1 β€” Open Directly in Browser

# 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       # Windows

Option 2 β€” GitHub Pages

Enable GitHub Pages on this repo (Settings β†’ Pages β†’ Deploy from branch: main) and access it at:

https://vanichalla24.github.io/android-rca-analyzer/

πŸ“‹ Inputs Supported

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.


πŸ“Š Output Format

═══════════════════════════════
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
═══════════════════════════════

πŸ—οΈ Architecture

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


πŸ‘©β€πŸ’» Built By

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


πŸ“„ License

MIT License β€” free to use, modify, and distribute.

About

πŸ€– AI-powered Android Root Cause Analysis tool β€” paste error logs or dumpstate reports and get instant root cause analysis, severity classification, and remediation steps

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages