commit | 02687e75b0d17ef08ab834553ba2fa3699fba09e | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Wed Aug 03 14:20:41 2016 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Mon Aug 08 10:19:48 2016 -0700 |
tree | cd1edf5ffe2c3e8213980e5d770fd49dfc397e4a | |
parent | 5b1a538fc8c0d389071e737e527066de7c1d4735 [diff] |
logcat: add --id=<id> for -f option Clear file rotate content if id signature changes. This allows logcatd to detect change of property ro.build.id to reset the recorded data. The id is stored in the the -f filespec as <filespec>.id. If the id file is missing or unreadable, do not clear. Allow an API where chmod 0 to the id file blocks this feature. Does not work for root. Add logcat.logrotate_id gTest. Bug: 30591615 Change-Id: I895749ca7c6d4af57ec57f058a29d8e3af2f8b27