samou
1822201a0c
sepolicy: remove irregular policy
...
Flag: EXEMPT refactor
Bug: 364989823
Change-Id: I4cced2ae29591425a5bfcb971be6bd2db6b19c66
Signed-off-by: samou <samou@google.com>
2024-10-04 16:07:24 +00:00
samou
202f18ed18
sepolicy: fix dump_power policy
...
09-03 10:57:32.552 11878 11878 W dump_power: type=1400 audit(0.0:23): avc: denied { read } for name="thismeal.txt" dev="dm-51" ino=14368 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:mitigation_vendor_data_file:s0 tclass=file permissive=0
09-05 00:01:19.432 6967 6967 W dump_power: type=1400 audit(0.0:25): avc: denied { open } for path="/data/vendor/mitigation/thismeal.txt" dev="dm-52" ino=14368 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:mitigation_vendor_data_file:s0 tclass=file permissive=0
09-05 00:11:25.532 6913 6913 W dump_power: type=1400 audit(0.0:25): avc: denied { getattr } for path="/data/vendor/mitigation/thismeal.txt" dev="dm-52" ino=14368 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:mitigation_vendor_data_file:s0 tclass=file permissive=0
Flag: EXEMPT refactor
Bug: 364612419
Change-Id: Ide2ad35e3f2a5bc3246603a4e66b67ec901ddc64
Signed-off-by: samou <samou@google.com>
2024-09-04 16:15:06 +00:00
samou
c078a870cb
sepolicy: allow dumpstate to execute dump_power
...
08-22 09:10:30.200 7202 7202 I dump_power: type=1400 audit(0.0:830): avc: denied { read } for name="acpm_stats" dev="sysfs" ino=24831 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_acpm_stats:s0 tclass=dir permissive=1
08-22 09:10:30.200 7202 7202 I dump_power: type=1400 audit(0.0:831): avc: denied { open } for path="/sys/devices/platform/acpm_stats" dev="sysfs" ino=24831 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_acpm_stats:s0 tclass=dir permissive=1
08-22 09:10:30.200 7202 7202 I dump_power: type=1400 audit(0.0:832): avc: denied { search } for name="acpm_stats" dev="sysfs" ino=24831 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_acpm_stats:s0 tclass=dir permissive=1
08-22 09:10:30.200 7202 7202 I dump_power: type=1400 audit(0.0:833): avc: denied { read } for name="core_stats" dev="sysfs" ino=50367 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_acpm_stats:s0 tclass=file permissive=1
08-22 09:10:30.200 7202 7202 I dump_power: type=1400 audit(0.0:834): avc: denied { open } for path="/sys/devices/platform/acpm_stats/core_stats" dev="sysfs" ino=50367 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_acpm_stats:s0 tclass=file permissive=1
08-22 09:10:30.200 7202 7202 I dump_power: type=1400 audit(0.0:835): avc: denied { getattr } for path="/sys/devices/platform/acpm_stats/core_stats" dev="sysfs" ino=50367 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_acpm_stats:s0 tclass=file permissive=1
08-22 09:26:58.572 10656 10656 I dump_power: type=1400 audit(0.0:844): avc: denied { read } for name="time_in_state" dev="sysfs" ino=46007 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_cpu:s0 tclass=file permissive=1
08-22 09:26:58.572 10656 10656 I dump_power: type=1400 audit(0.0:845): avc: denied { open } for path="/sys/devices/platform/cpupm/cpupm/time_in_state" dev="sysfs" ino=46007 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_cpu:s0 tclass=file permissive=1
08-22 09:26:58.572 10656 10656 I dump_power: type=1400 audit(0.0:846): avc: denied { getattr } for path="/sys/devices/platform/cpupm/cpupm/time_in_state" dev="sysfs" ino=46007 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_cpu:s0 tclass=file permissive=1
08-22 09:26:58.572 10656 10656 I dump_power: type=1400 audit(0.0:847): avc: denied { read } for name="pm_genpd_summary" dev="debugfs" ino=1889 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:vendor_pm_genpd_debugfs:s0 tclass=file permissive=1
08-22 09:26:58.572 10656 10656 I dump_power: type=1400 audit(0.0:848): avc: denied { open } for path="/sys/kernel/debug/pm_genpd/pm_genpd_summary" dev="debugfs" ino=1889 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:vendor_pm_genpd_debugfs:s0 tclass=file permissive=1
08-22 09:26:58.572 10656 10656 I dump_power: type=1400 audit(0.0:849): avc: denied { getattr } for path="/sys/kernel/debug/pm_genpd/pm_genpd_summary" dev="debugfs" ino=1889 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:vendor_pm_genpd_debugfs:s0 tclass=file permissive=1
08-22 09:46:48.580 7468 7468 I dump_power: type=1400 audit(0.0:832): avc: denied { search } for name="battery" dev="sysfs" ino=78091 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=1
08-22 09:46:48.580 7468 7468 I dump_power: type=1400 audit(0.0:833): avc: denied { read } for name="uevent" dev="sysfs" ino=78092 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1
08-22 09:46:48.580 7468 7468 I dump_power: type=1400 audit(0.0:834): avc: denied { open } for path="/sys/devices/platform/google,battery/power_supply/battery/uevent" dev="sysfs" ino=78092 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1
08-22 09:46:48.580 7468 7468 I dump_power: type=1400 audit(0.0:835): avc: denied { getattr } for path="/sys/devices/platform/google,battery/power_supply/battery/uevent" dev="sysfs" ino=78092 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1
08-22 09:46:48.600 7468 7468 I dump_power: type=1400 audit(0.0:836): avc: denied { read } for name="maxfg" dev="sysfs" ino=76330 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=1
08-22 09:46:48.600 7468 7468 I dump_power: type=1400 audit(0.0:837): avc: denied { read } for name="logbuffer_tcpm" dev="tmpfs" ino=924 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:logbuffer_device:s0 tclass=chr_file permissive=1
08-22 09:54:11.732 7062 7062 I dump_power: type=1400 audit(0.0:836): avc: denied { search } for name="mitigation" dev="dm-50" ino=3646 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:mitigation_vendor_data_file:s0 tclass=dir permissive=1
08-22 09:54:11.732 7062 7062 I dump_power: type=1400 audit(0.0:837): avc: denied { search } for name="mitigation" dev="sysfs" ino=77466 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_bcl:s0 tclass=dir permissive=1
08-22 09:54:11.732 7062 7062 I dump_power: type=1400 audit(0.0:838): avc: denied { read } for name="last_triggered_count" dev="sysfs" ino=77519 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_bcl:s0 tclass=dir permissive=1
08-22 09:54:11.732 7062 7062 I dump_power: type=1400 audit(0.0:839): avc: denied { open } for path="/sys/devices/virtual/pmic/mitigation/last_triggered_count" dev="sysfs" ino=77519 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_bcl:s0 tclass=dir permissive=1
08-22 09:54:11.732 7062 7062 I dump_power: type=1400 audit(0.0:840): avc: denied { read } for name="batoilo_count" dev="sysfs" ino=77531 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_bcl:s0 tclass=file permissive=1
08-22 09:54:11.732 7062 7062 I dump_power: type=1400 audit(0.0:841): avc: denied { open } for path="/sys/devices/virtual/pmic/mitigation/last_triggered_count/batoilo_count" dev="sysfs" ino=77531 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_bcl:s0 tclass=file permissive=1
08-22 10:30:19.904 7230 7230 I android.hardwar: type=1400 audit(0.0:838): avc: denied { execute_no_trans } for path="/vendor/bin/dump/dump_power" dev="overlay" ino=92 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
08-23 08:45:09.392 10793 10793 I dump_power: type=1400 audit(0.0:999): avc: denied { read } for name="maxfg_history" dev="tmpfs" ino=1179 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:battery_history_device:s0 tclass=chr_file permissive=1
08-23 08:45:09.392 10793 10793 I dump_power: type=1400 audit(0.0:1000): avc: denied { open } for path="/dev/logbuffer_tcpm" dev="tmpfs" ino=948 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:logbuffer_device:s0 tclass=chr_file permissive=1
08-23 08:45:09.392 10793 10793 I dump_power: type=1400 audit(0.0:1001): avc: denied { getattr } for path="/dev/logbuffer_tcpm" dev="tmpfs" ino=948 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:logbuffer_device:s0 tclass=chr_file permissive=1
08-23 08:45:09.392 10793 10793 I dump_power: type=1400 audit(0.0:1002): avc: denied { open } for path="/sys/devices/platform/10d60000.hsi2c" dev="sysfs" ino=22941 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=1
08-23 08:45:09.512 10793 10793 I dump_power: type=1400 audit(0.0:1003): avc: denied { getattr } for path="/sys/devices/virtual/pmic/mitigation/last_triggered_count/batoilo_count" dev="sysfs" ino=85543 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs_bcl:s0 tclass=file permissive=1
Flag: EXEMPT refactor
Bug: 349935208
Change-Id: Ic4040da7ef299c029e6e893f5f14da07751c2ebc
Signed-off-by: samou <samou@google.com>
2024-08-23 08:30:38 +00:00
samou
d7c33cef92
sepolicy: allow dumpstate to call battery_mitigation
...
Bug: 322141931
Change-Id: I5a6d013df754d3f6d6e9d1ee3ea335176450069b
Signed-off-by: samou <samou@google.com>
2024-04-16 03:54:45 +00:00
samou
0d88550486
sepolicy: allow the communication between audio and battery_mitigation hal
...
Bug: 330302105
Change-Id: I28a3b67594319d857a8c46bc8c02cddc539caaf8
Signed-off-by: samou <samou@google.com>
2024-03-19 12:01:46 +00:00
samou
e6dce88732
bm: Support battery mitigation aidl
...
- move cc_binary to vendor/google/interfaces/
battery_mitigation
- fix sepolicy to support aidl
Bug: 299700579
Change-Id: I7345ffc1e2ddb46d9979a1fadef39dd0c2c281d6
Signed-off-by: samou <samou@google.com>
2024-01-09 03:35:46 +00:00
George Lee
27017fb06a
bm: Remove thermal dependency (gs-common)
...
Bug: 319136643
Test: Confirm battery_mitigation loaded
Change-Id: I250a1d9c1354bd4d53909d71935af1fc264f936f
Signed-off-by: George Lee <geolee@google.com>
2024-01-08 20:32:21 +00:00
samou
2d5681d516
bm: create mk for new battery mitigation service
...
Bug: 317869347
Change-Id: I09c95781cabc813d482b92e12ade944a32503f52
Signed-off-by: samou <samou@google.com>
2024-01-04 06:04:50 +00:00
samou
a86cc5e1ce
bm: support br_stats enabled flag
...
Bug: 315067183
Change-Id: I1c5c58e716e952a5e55493c129c2566c7f115da3
Signed-off-by: samou <samou@google.com>
2023-12-06 07:34:38 +00:00
samou
b4de8aabda
bm: Avoid to use CDT number
...
Bug: 313692190
Test: Confirm battery_mitigation does not repeatedly restart
Change-Id: I7edaad073b509f163283d4611d987e8982934253
Signed-off-by: samou <samou@google.com>
2023-12-03 17:20:22 +00:00
samou
0a00bc714a
bm: Add Battery SOC for each platforms
...
Bug: 299700579
Change-Id: Id2f9b86ded4d9f31fd5faf2d761b5ded7bab5aff
Signed-off-by: samou <samou@google.com>
2023-11-22 06:42:35 +00:00
George Lee
1201db75a1
bm: Add triggered event thread
...
Add thread to handle triggered event.
Remove pcieModem, Wifi and last_triggered_mode stats.
Bug: 299700579
Test: Flash and boot
Change-Id: I9d4877be71e64ad0ee53bccb705fca8bbc4d5ad8
Signed-off-by: George Lee <geolee@google.com>
2023-11-14 22:00:33 +00:00
samou
fface22c8a
bcl: Create lastmeal.csv
...
Bug: 293899466
Change-Id: I0b7160177da66a598288d2e1782e6c244b02636e
Signed-off-by: samou <samou@google.com>
2023-11-08 02:00:15 +00:00
samou
e153fc34ad
bcl: Support thismeal binary
...
Add command for dump_power to create thismeal.txt
from thismeal.bin.
Support BatteryMitigationService to monitor
brownout event and generate thismeal.bin.
Test: /vendor/bin/hw/battery_mitigation -d
Bug: 293899466
Change-Id: I3fcbd62af25204a7469dd3952a91cd6d281bccd7
Signed-off-by: samou <samou@google.com>
2023-11-02 05:45:22 +00:00
samou
440a92fd67
bcl: start brownout event thread
...
Allow multiple sepolicy and start thread to monitor
brownout event
Bug: 290149543
Change-Id: I2e9f3dc180a37b60e5e51ac5c4c1b0aa79073328
Signed-off-by: samou <samou@google.com>
2023-10-26 03:24:45 +00:00
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
Inseob Kim
b68f6e41fd
Start tracking vendor seapp coredomain violations (2) am: 3a3a2ec43d
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/24498767
Change-Id: I399952d44fe0050dee5ef52e32ec7d672d781fdf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22 06:33:46 +00:00
Inseob Kim
3a3a2ec43d
Start tracking vendor seapp coredomain violations (2)
...
As part of Treble, enforce that vendor's seapp_contexts can't label apps
using coredomains. Apps installed to system/system_ext/product should be
labeled with platform side sepolicy.
This change marks violating domains that need to be fixed.
Bug: 296512192
Test: build and see build log
Change-Id: Iba8dbfe1260b481b2981e62d740552bf84c8004f
2023-08-21 20:56:03 +09: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
6c25d5a7fd
bm: Exit loop to check for BCL after 10 tries
...
battery_mitigation may be kept in forever loop to read sysfs node. This
makes sure that the loop is exited after 10 tries.
Bug: 275028861
Test: Local boot up and ensure battery_mitigation comes up
Change-Id: I02936f4426519b2c9fbc776cdb2614fdeba872c0
Signed-off-by: George Lee <geolee@google.com>
2023-03-27 19:55:53 -07:00
Xiang Wang
f060fe353c
Migrate battery mitigation to Thermal AIDL
...
Bug: b/269163592
Test: Thermal AIDL service restart test + pmic file test
Change-Id: I4922b0f7c6c2583143fcdd24e3039e17ced4a68b
2023-03-13 23:54:34 +00:00
George Lee
5b847d1b43
bm: Change OCP reboot reason to match bootloader
...
vendor.brownout_reason did not get triggered as battery_mitigation.rc
looked for reboot,ocp,buck3m and not reboot,ocp,BUCK3M.
Bug: 268700448
Test: Confirm triggering of bugreport
Change-Id: Icf7dd70d1bd050616583af807fc16e8f7680f95d
Signed-off-by: George Lee <geolee@google.com>
2023-02-10 13:21:29 -08:00
George Lee
868cd2ac91
bm: Check thermal prior to bootreason check
...
vendor.brownout_reason was set because sys.boot.reason still contains
the reason from prior reboot. By enforcing thermal check prior to
bootreason check guarantees the sys.boot.reason will have the most
recent boot reason.
Bug: 268344942
Test: Confirm through artificial triggering of brownout
Change-Id: I69cb459f4c51f7db439d5993330691a7ad1f5dbe
Signed-off-by: George Lee <geolee@google.com>
2023-02-09 04:58:27 +00:00
Xiang Wang
d865bd3bf9
Merge "Allow battery_mitigation to use Binder IPC"
2023-02-07 03:00:38 +00:00
Xiang Wang
82860bfe63
Allow battery_mitigation to use Binder IPC
...
This is to resolve the following local error when testing with Thermal
AIDL service enabled:
auditd : type=1400 audit(0.0:4): avc: denied { call } for comm="servicemanager" scontext=u:r:servicemanager:s0 tcontext=u:r:battery_mitigation:s0 tclass=binder permissive=0
Bug: b/264595820
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I825ed2b644360e695081fe06489fabf3feb913bd
2023-02-07 02:29:01 +00:00
George Lee
930ea07e39
logger: Change access right to lastmeal.txt
...
Bugreport cannot access lastmeal.txt due to access right.
Bug: 239709385
Test: confirm lastmeal.txt has system:system
Change-Id: Id207bf86096333710f8e55533fb806ae9f3a66c5
Signed-off-by: George Lee <geolee@google.com>
2023-02-01 17:44:01 +00:00
George Lee
63703f8d5e
bm: remove sysfs_bcl label from odpm
...
Bug: 264929465
Test: Confirm label
u: object_r:sysfs_odpm:s0 i2c-0/0-001f/s2mpg14-meter/s2mpg14-odpm/iio:device1/lpf_power
Change-Id: Ia8a34b83cc0c91d8936c60e475ec926e859cc8b1
Signed-off-by: George Lee <geolee@google.com>
2023-01-27 15:33:37 -08:00
George Lee
d97ad6eeec
selinux: enable lpf_power for sysfs_bcl
...
Bug: 264929465
Test: Confirm selinux error no longer
Change-Id: Iff9a81ffe6957c5510109e5698be2ea98d42bfdd
Signed-off-by: George Lee <geolee@google.com>
2023-01-12 21:06:08 -08:00
George Lee
4b3a85cac0
battery_mitigation: fix brownout reporting
...
Ensure ro.boot.bootreason equals sys.boot.reason before filing bugreport
for Brownout.
Bug: 263274350
Test: Local testing to confirm
Change-Id: I321a7c71bb7ef8c13fa49bb356be34bf789e7bef
Signed-off-by: George Lee <geolee@google.com>
2023-01-04 15:18:14 -08:00
Hung-Wei Chen
c264882781
Revert "battery_mitigation: fix brownout reporting"
...
This reverts commit c414adbf32
.
Reason for revert: DroidMonitor-triggered revert due to breakage, bug b/263437450
Change-Id: I3badfa6fd35fde19c199d71894124212edaf7dc8
2022-12-22 07:01:25 +00:00
George Lee
c414adbf32
battery_mitigation: fix brownout reporting
...
Ensure ro.boot.bootreason equals sys.boot.reason before filing bugreport
for Brownout.
Bug: 263274350
Test: Local testing to confirm
Change-Id: I78b7b3fa6cf4d5d46cabac516378c621dc290603
Signed-off-by: George Lee <geolee@google.com>
2022-12-20 16:51:35 -08: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
fd2395f40f
Battery Mitigation: Use Brownout Reason
...
Brownout Reason replaces startup_bugreport_requested. Battery
Mitigation needs to be updated.
Bug: 237287659
Test: Ensure lastmeal.txt is properly generated.
Change-Id: I33791886e0ea8fcfb3324c0f64384ffe245808d3
Signed-off-by: George Lee <geolee@google.com>
2022-12-02 01:34:08 +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
27725bd144
betterbug: Fixed sepolicy related to File
...
Added File Attachment sepolicy for betterbug
Bug: 237287659
Test: Attach files from local directory and confirm it can be attached.
Change-Id: I2e77894d4b12a302f0498aab3aa59be6fb95b795
Signed-off-by: George Lee <geolee@google.com>
2022-11-07 16:54:45 -08:00
George Lee
6b49a4ea4f
betterbug: Fixed sepolicy related to mediaserver
...
Added mediaserver sepolicy for betterbug
Bug: 237287659
Test: Run same video capture on Betterbug to confirm video can be
captured.
Change-Id: Ifcb2bdba6f8036805f311a9d6b76227bf63e39e3
Signed-off-by: George Lee <geolee@google.com>
2022-11-05 10:39:53 -07: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
a2c73f3a52
bcl: Change bugreport_requested prop to public
...
This is to resolve a merge conflict due to property configuration.
Bug: 256639156
Test: compile with ag/20329329
Change-Id: I6dacdb5f7342b84f880af84a477532205a7e3b9f
Signed-off-by: George Lee <geolee@google.com>
2022-11-01 12:34:10 -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