Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c329df41 authored by Atneya Nair's avatar Atneya Nair
Browse files

[appops] Dumpsys cleanup

Some refactoring of the dumpsys with the following behavior changes:
- Moves policy dump higher up
- Only dumps discrete ops with --history set
- Some general service info prints when no args provided
- --watchers now includes appops listeners rather than excluding
  everything else; default is to exclude them
- Restriction dump occurs even without any restrictions, and they are
  moved prior to the uidstates

For code simplicity; `--history` early returns as it is effectively a
different dumpsys mode.

Split dumpsys into --op-data, --watchers, --restrictions, and
--uid-state-changes sections which can be selected with command line
arguments. The default is --op-data --restrictions which removes
watchers data, but bug reports contain the same data since -a is used.

Test: manual dumpsys with various args
Bug: 411153195
Flag: EXEMPT logs only
Change-Id: Iac7c00d873edcac901bfbbe432d45726f3a2e00e
parent 730e53f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment