logger: Ensure captured log not overwritten am: 9ff57b81b8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19085953 Change-Id: I25fcc82b3033e3475a3f90d38f997350eb1c504a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
523f22ef38
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