What problem does it solve? Android camera bugs — black previews, failed captures, frozen camera switches, and device-specific HAL crashes — are hard to root-cause because they span permissions, Surface lifecycles, capture session state machines, and hardware capabilities. This Skill provides a structured triage and repair workflow for Camera2 and CameraX issues. ## Core Features & Use Cases - Symptom-based triage: Classifies failures into open failures, black/green preview, capture failure, front/rear switching, flash/focus/exposure, and device compatibility, each with targeted log keywords and API checkpoints. - Full-chain diagnosis: Walks the pipeline from permission grant through openCamera, session creation, setRepeatingRequest, and ImageReader callbacks, with adb logcat and dumpsys commands for evidence collection. - Fix patterns and guardrails: Provides ordered repair sequences (stop/abort/close/reopen), ImageReader buffer-leak fixes, CameraX bind/unbind rules, heuristics, anti-patterns, and a verification checklist across devices and Android versions. - Use Case: A user reports the preview goes black after switching from rear to front camera. The Skill guides checking that the old CaptureSession and CameraDevice were closed before reopening, then verifies the fix across rotation and background/foreground transitions. ## Quick Start Ask the agent to diagnose why the Android camera preview is black after switching cameras and propose a fix with verification steps.