summaryrefslogtreecommitdiff
path: root/libcutils/trace-dev_test.cpp
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2019-02-07 10:05:42 -0800
committerWei Wang <wvw@google.com>2019-02-08 02:55:06 +0000
commit4e9c653c932cf2dc7638ab2de58b5bb85a1c0c47 (patch)
tree968a5751d41600f0792fac38ac4626c156a7c8ca /libcutils/trace-dev_test.cpp
parent708d45979ccecd6b541740d2b8dc0fe4d6db138c (diff)
bootstat: Update boot reason property earlier
bootstat updates boot reason upon boot_complete, however users of the updated properties e.g. getLastShutdownReason from PowerManager could be called before boot_complete. This introduces a inconsistency and racing for those APIs. In this CL, we change boot reason to be updated at the same time when zygote starts where persist properties have been loaded already. Also the initialization of bootloader's boot reason is pulled into post-fs where all kernel command line arguments have been parsed in init already. Bug: 122696730 Bug: 119509425 Test: trigger thermal shutdown and see warnings Test: verify boot reason properties updated correctly post boot Change-Id: Ia393b98ea072bc0ae6e4110d111393b34be0ee5d Signed-off-by: Wei Wang <wvw@google.com>
Diffstat (limited to 'libcutils/trace-dev_test.cpp')
0 files changed, 0 insertions, 0 deletions