Files
device_google_gs201/battery_mitigation/battery_mitigation.rc
George Lee a5fa72f57b bcl: Add Mitigation Logger - Binary
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: Icc5bf599eff7715545ed66d352ec00ae5d633aa0
2022-05-27 08:40:21 -07:00

10 lines
321 B
Plaintext

on property:vendor.thermal.link_ready=1
mkdir /data/vendor/mitigation 0755 system system
chown system system /data/vendor/mitigation
start vendor.battery_mitigation
service vendor.battery_mitigation /vendor/bin/hw/battery_mitigation
user system
group system
capabilities WAKE_ALARM BLOCK_SUSPEND