summaryrefslogtreecommitdiff
path: root/bootctrl/BootControlShared.cpp
AgeCommit message (Collapse)Author
2020-12-03Update to bootcontrol 1.2 for PixelTianjie
bootcontrol 1.2 adds a new function to get the active boot slot on the next boot. This is useful for resume on reboot to verify the device state to boot into; and set the corresponding vbmeta digest accordingly. Bug: 173808057 Test: Vts tests for bootcontrol Change-Id: Ie2c933e4a80b9722b4c4865f33d3996c1601cdf6
2019-11-10bootctrl: Fix vendor space usage to not conflict with theme data.David Anderson
Pixel writes theme data to the first bytes of vendor space, and reserves the first 32x32 bytes for other such flags (such as the SOTA flag). To avoid conflicts, instead use new AOSP-generic methods in bootloader_message and libboot_control. Bug: 139156011 Test: manual test Change-Id: I7f31847acc21a0eeb46640cb9ed70be2a3f9531c
2019-10-16Implement IBootControl 1.1.David Anderson
Store the new state for IBootControl 1.1 in the misc partition, using the reserved section of bootloader_message_ab. The code to read/write this partition is from the bootloader_message library. We don't embed libboot_control directly because the 1.0 HAL methods are implemented using GPT, not misc. Note that the new 1.1 methods are implemented in a shared file. This is for future implementations of the HAL that may not rely on the legacy GPT library, but will use the same misc storage. Bug: 141131816 Test: vts Change-Id: I455c202cdd6a21261a2ed1f17dec6efd2ae8116e