summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2018-06-05 08:17:35 -0700
committerMark Salyzyn <salyzyn@google.com>2018-06-14 15:36:56 +0000
commitadc433d3eafdfb4cd3da539ac93fcde1565733a0 (patch)
tree9df44e45a38f9a5c9750806ed3827506d9f84bf6 /trusty/coverage/coverage_test.cpp
parent91061985f5ae2b7f3f1a04ca3e921c17f3213bd5 (diff)
bootstat: clear persist.sys.boot.reason once read
To ensure a surprise reboot does not take the last boot reason on face value especially if coming from more than one boot sessions ago. We shift and clear the value from persist.sys.boot.reason to sys.boot.reason.last and establish a correct last reboot reason in the canonical sys.boot.reason property. This effectively deprecates persist.sys.boot.reason as an API. They should have been using sys.boot.reason instead for a correctly determined reasoning. Test: boot_reason_test.sh Bug: 86671991 Merged-In: If85750704445088fd62978679ab3a30744c46abb Change-Id: If85750704445088fd62978679ab3a30744c46abb
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions