OSDN Git Service

Add a section flag to bypass failure if a specific path can't be found.
authorYi Jin <jinyithu@google.com>
Mon, 16 Apr 2018 23:13:04 +0000 (16:13 -0700)
committerYi Jin <jinyithu@google.com>
Wed, 2 May 2018 01:31:08 +0000 (01:31 +0000)
commit7fe3dee3ae1cc47b50c4001cbac56c4fefbcc57b
treec8cfc01b6b323699295c269ea40e597f1dc15a59
parent82c0b73e98a81e4b2d2f50da44112381bcef6755
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
Merged-In: I08ffcb21709efe5478d2ac46121deb5795af1024
cmds/incidentd/src/Section.cpp
cmds/incidentd/src/Section.h
cmds/incidentd/tests/Section_test.cpp
core/proto/android/os/incident.proto
libs/incident/proto/android/section.proto
tools/incident_section_gen/main.cpp