Add service for dumping at NORMAL priority

SystemUIService is hard-coded to dump at CRITICAL priority and so can't
dump very much (and, most importantly, can't handle dumping our length
log buffers). So instead we create a new service,
SystemUIAuxiliaryDumpService, which will dump alongside all other
services in the NORMAL section. Its dump method calls straight into the
DumpManager.

Test: atest, manual
Change-Id: If76f206081a1663e23fc14076b50bef7396e517f
This commit is contained in:
Ned Burns
2020-02-12 22:38:05 -05:00
parent c7cfa69ffd
commit e33b495c7d
4 changed files with 78 additions and 0 deletions

View File

@@ -283,6 +283,12 @@
android:exported="true"
/>
<!-- Service for dumping extremely verbose content during a bug report -->
<service android:name=".dump.SystemUIAuxiliaryDumpService"
android:exported="false"
android:permission="com.android.systemui.permission.SELF"
/>
<!-- On user switch, this service is started to ensure that the associated SystemUI
process for the current user is started. See the resource
"config_systemUIServiceComponentsPerUser".