summaryrefslogtreecommitdiff
path: root/libs/incident
diff options
context:
space:
mode:
authorYi Jin <jinyithu@google.com>2018-04-16 16:13:04 -0700
committerYi Jin <jinyithu@google.com>2018-05-01 16:25:52 -0700
commit3f3603587c01604401e144ddad9cbf8522f67230 (patch)
treec18794df05f837c3a996dcc034b58ba01ebd0074 /libs/incident
parent3af768fcfd9bacaebc0ce7f099803d143e82bd3a (diff)
Add a section flag to bypass failure if a specific path can't be found.
This is a temporary solution to bypass failure of reading cpu info or battery type in P if the path doesn't exist on some devices. See bug for details. However in Q, incidentd should implement reading from the common Linux kernel interfaces. Bug: 78028767 Bug: 78239764 Test: atest incidentd_test Change-Id: I08ffcb21709efe5478d2ac46121deb5795af1024
Diffstat (limited to 'libs/incident')
-rw-r--r--libs/incident/proto/android/section.proto1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/incident/proto/android/section.proto b/libs/incident/proto/android/section.proto
index b3ed393394d4..e8280ed690f6 100644
--- a/libs/incident/proto/android/section.proto
+++ b/libs/incident/proto/android/section.proto
@@ -51,6 +51,7 @@ enum SectionType {
message SectionFlags {
optional SectionType type = 1 [default = SECTION_NONE];
optional string args = 2;
+ optional bool device_specific = 3 [default = false];
}
extend google.protobuf.FieldOptions {