From e33b495c7de2c254d3e45618cc18acb206ae20c8 Mon Sep 17 00:00:00 2001 From: Ned Burns Date: Wed, 12 Feb 2020 22:38:05 -0500 Subject: [PATCH] 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 --- packages/SystemUI/AndroidManifest.xml | 6 ++ .../com/android/systemui/SystemUIService.java | 7 +++ .../systemui/dagger/DefaultServiceBinder.java | 7 +++ .../dump/SystemUIAuxiliaryDumpService.java | 58 +++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 packages/SystemUI/src/com/android/systemui/dump/SystemUIAuxiliaryDumpService.java diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index e2410fec4dc24..ea73927feedeb 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -283,6 +283,12 @@ android:exported="true" /> + + +