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:
parent
39845ace12
commit
9ff57b81b8
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue