summaryrefslogtreecommitdiff
path: root/cmds/incidentd
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2019-06-05 11:57:05 -0700
committerJoe Onorato <joeo@google.com>2019-06-05 11:57:39 -0700
commitf7c2bceafef78ec4381bab79c51144a3793ec68b (patch)
tree37e618f7bfa4c0fd53ac9b48b1cdd791427e085e /cmds/incidentd
parentb613fec2f895aa1d0cb71080eb741d757551dbef (diff)
Do not include specific_mention sections in bugreports either.
Test: adb bugreport & manually verify Bug: 134583922 Change-Id: I6b4df17fc729f78e70e126882bce611a33c8ef9a
Diffstat (limited to 'cmds/incidentd')
-rw-r--r--cmds/incidentd/src/IncidentService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/incidentd/src/IncidentService.cpp b/cmds/incidentd/src/IncidentService.cpp
index a8b99ceecd7f..a52726396b53 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<String16>& 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);
}
}