mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 05:38:17 +00:00
logger: Ensure captured log not overwritten
Add additional file path to make copy of captured log. Bug: 237282212 Test: Verified lastmeal.txt and thismeal.txt existence. Signed-off-by: George Lee <geolee@google.com> Change-Id: I77606bf679c3eb1c55f2b135a6265e0e0e837c77
This commit is contained in:
committed by
TreeHugger Robot
parent
39845ace12
commit
9ff57b81b8
@@ -59,7 +59,7 @@ const struct MitigationConfig::Config cfg = {
|
||||
"main", "sub", "CPU2", "CPU1", "GPU", "TPU", "CAM", "DISP", "NPU",
|
||||
"voltage_now", "current_now",
|
||||
},
|
||||
.LogFilePath = "/data/vendor/mitigation/lastmeal.txt",
|
||||
.LogFilePath = "/data/vendor/mitigation/thismeal.txt",
|
||||
};
|
||||
|
||||
int main(int /*argc*/, char ** /*argv*/) {
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,ocp
|
||||
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||
|
||||
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,if
|
||||
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||
|
||||
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,main
|
||||
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||
|
||||
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,sub
|
||||
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||
|
||||
on property:vendor.thermal.link_ready=1
|
||||
mkdir /data/vendor/mitigation 0755 system system
|
||||
chown system system /data/vendor/mitigation
|
||||
|
||||
Reference in New Issue
Block a user