Skip to content
Snippets Groups Projects
Commit a64d5bb7 authored by Primiano Tucci's avatar Primiano Tucci
Browse files

Allow perfetto to ingest logs on userdebug/eng

When recording hour-long traces, logcat messages help
to interpret the trace, giving human readable context on what
is happening on the system.
Furthermore this is particularly helpful for startup
debugging thanks to activity manager instrumentation events
(am_on_create_called, am_on_start, ...).
This is only allowed on userdebug/eng builds.

Bug: 122243384
Change-Id: I4dfaebf21107e9853b0bf42403fbab6c3b4d5141
parent 0fa0d1e5
No related branches found
No related tags found
No related merge requests found
......@@ -66,10 +66,12 @@ allow traced_probes {
proc_stat
}:file r_file_perms;
# Allow access to the IHealth HAL service for tracing battery counters.
hal_client_domain(traced_probes, hal_health)
# On debug builds allow to ingest system logs into the trace.
userdebug_or_eng(`read_logd(traced_probes)')
###
### Neverallow rules
###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment