From f7c2bceafef78ec4381bab79c51144a3793ec68b Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Wed, 5 Jun 2019 11:57:05 -0700 Subject: [PATCH] Do not include specific_mention sections in bugreports either. Test: adb bugreport & manually verify Bug: 134583922 Change-Id: I6b4df17fc729f78e70e126882bce611a33c8ef9a --- cmds/incidentd/src/IncidentService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmds/incidentd/src/IncidentService.cpp b/cmds/incidentd/src/IncidentService.cpp index a8b99ceecd7f1..a52726396b531 100644 --- a/cmds/incidentd/src/IncidentService.cpp +++ b/cmds/incidentd/src/IncidentService.cpp @@ -564,7 +564,8 @@ status_t IncidentService::dump(int fd, const Vector& args) { int skipped[] = SKIPPED_SECTIONS; for (const Section** section = SECTION_LIST; *section; section++) { const int id = (*section)->id; - if (std::find(std::begin(skipped), std::end(skipped), id) == std::end(skipped)) { + if (std::find(std::begin(skipped), std::end(skipped), id) == std::end(skipped) + && !section_requires_specific_mention(id)) { incidentArgs.addSection(id); } }