diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-25 11:33:51 -0500 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-25 15:53:26 -0500 |
commit | af4135035abb5b2f1d16639bfb718dd75b1ca048 (patch) | |
tree | 7d4f36e5346db1621940616f7b4de764d6fad6a3 /bootctrl/LegacyBootControl.cpp | |
parent | fa5177845c6ddab264c92e31ba73c0442dd78ff7 (diff) |
Monitor the property ota.warm_reset
The property is set to inform kernel to do a warm_reset on the next
reboot. This is useful to persist the logs to debug device boot
failures. More details in http://go/rvc-ota-persist-logs.
The property is read by vendor_init. And according to its value,
vendor_init writes a particular sysfs file to schedule a warm reset
on the following reboot.
The vendor init also schedules the warm reset if the current slot
hasn't
been marked as successful during boottime, i.e.
ro.boot.slot_successful=no
Move definition of relevant rc scripts to pixel common script
Bug: 143489994
Bug: 173267277
Test: adb shell grep "ota.warm_reset" -r /vendor
Change-Id: I1f475403430149a0242e8ac098f1ce0155cad054
Diffstat (limited to 'bootctrl/LegacyBootControl.cpp')
0 files changed, 0 insertions, 0 deletions