commit | c08140b93912c1712b513f7542a2d4209a6fd795 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Fri Jan 19 14:31:31 2018 -0800 |
committer | Tianjie Xu <xunchang@google.com> | Tue Jan 23 15:52:43 2018 -0800 |
tree | 7a08d17f2f4c43417d601bbecc1f2cff828bb7b3 | |
parent | 06bbe49817dea125b63280a99f5535b2ee084ce7 [diff] |
Save multiple copies of update engine logs Right now we only have one copy of update engine log; and it's overwritten if the device reboots or update engine restarts. This CL save multiple copies of the logs with timestamp in "/data/misc/update_engine_log/". It also implements a function to keep the most recent five logs but delete the old ones. Bug: 72080233 Test: Logs are created with correct permission; and old logs are deleted when update engine starts. Change-Id: I9853546bce879e7fbd6380419a85e01256331247