Android debugging guide

Android SELinux AVC Debugging

An AVC denial is a structured statement: who tried to do what to which object class. Use those fields instead of generating policy from a line without understanding the architecture.

01

Read the fields together

Permission describes the attempted action, scontext identifies the actor domain, tcontext identifies the target label and tclass identifies the object type. comm/path/name can add operational context.

02

Match denial to symptom

A denial matters when it occurs on the failing path. A camera denial during a fingerprint failure may be noise; a fingerprint vendor domain denied access to its device node at authentication time is materially different.

03

Do not solve production policy by going permissive

Permissive mode is a debugging aid, not a fix. Correct the component behavior, labeling or narrowly justified allow rule while preserving neverallow constraints.

Open related analyzerUnderstand bugreport structureTechnical references