summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2018-06-05 09:06:54 -0700
committerMark Salyzyn <salyzyn@google.com>2018-06-05 09:37:22 -0700
commit74ce8b3b58931a67f77e9182a52e9811bbbcad7b (patch)
tree418d437a1047d9e809bcf6da17a886738c9b9935 /tools/aapt2/java/JavaClassGenerator.cpp
parent13cb6084e27fbd072186eaa3b6e611cf1c88a119 (diff)
persist.sys.boot.reason is cleared once read by bootstat
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. As a result, the power manager should read the canonical sys.boot.reason for a definitive result rather than relying on the possibly incorrect values in the persistent storage. The value in sys.boot.reason is not valid until bootstat has signaled boot complete. Test: compile Bug: 86671991 Bug: 63736262 Change-Id: I80b3602821678f0cececf28b727c06135bf94960
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions