6 Commits

Author SHA1 Message Date
Inseob Kim
155ec7653f Move brownout_detection definition to system_ext
Because brownout detection app is installed to system_ext.

Bug: 296512192
Test: build panther and boot
Test: Automatically filed b/300277478
Change-Id: Ia381f01bbfeb8576a4f9b58ca24aeeeb436060b7
2023-09-13 17:34:52 +00:00
George Lee
8ef6c93704 bcl: Do not include bcl.mk for factory
Bug: 264957141
Test: Local test
Change-Id: I99c7b7393f0ef72aaf545af5e3019b732cadeb42
Signed-off-by: George Lee <geolee@google.com>
2023-04-11 02:47:29 +00:00
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