logger: Change access right to lastmeal.txt

Bugreport cannot access lastmeal.txt due to access right.

Bug: 239709385
Test: confirm lastmeal.txt has system:system
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I50375ae10a7018b059245afbe571b6c0280ae808
This commit is contained in:
George Lee 2022-07-20 10:50:41 -07:00 committed by TreeHugger Robot
parent a150e72f05
commit 713b995e29

View file

@ -1,14 +1,18 @@
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,ocp
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
chown system system 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
chown system system 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
chown system system 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
chown system system data/vendor/mitigation/lastmeal.txt
on property:vendor.thermal.link_ready=1
mkdir /data/vendor/mitigation 0755 system system