4 Commits

Author SHA1 Message Date
George Lee
dc9f80c8cf Enable BrownoutDetection only for debug build
Bug: 237287659
Test: Confirm its only debug build only has BrownoutDetection app
Change-Id: I7810c10c66047c472e799d708eb9a6bd7ccbce20
Signed-off-by: George Lee <geolee@google.com>
2022-12-02 18:28:47 +00:00
George Lee
66547716ae gs-common: Add BrownoutDetection app
This app files bugreport for user-debug build with reboot reason = ocp
or uvlo.  Removed the dependency on BetterBug.

Bug: 237287659
Test: Ensure bugreport is generated under user-debug build with reboot
reason = ocp or uvlo.
Change-Id: Ieaa4d02ea10413b3b7c0e314b5deb07d38d98a80
Signed-off-by: George Lee <geolee@google.com>
2022-11-15 02:57:48 +00:00
George Lee
271a36cdcc betterbug: Update selinux policy for master
Update startup_bugreport_requested property to vendor_public for
betterbug to access.

Bug: 237287659
Test: Load Betterbug for accessing startup bugreport reason property
Change-Id: I7102156fe62d5f03f64c367014c2d1ce9bd679b6
2022-11-01 17:09:23 -07:00
George Lee
a1bea3e3e3 bcl: Add Mitigation Logger
Mitigation Logger logs battery related information for 1 second when it
is triggered by under voltage or over current interrupts.  Information
collected is to help debug system brownout.

Bug: 228383769
Test: Boot and Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I24e5075b12a9bb3f16241de268254bde38c133d0
2022-10-28 05:25:08 +00:00