[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
Loading
Please register or sign in to comment