mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 05:38:17 +00:00
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
10 lines
321 B
Plaintext
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
|