summaryrefslogtreecommitdiffstats
path: root/boot_control (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-09-05Improve error messaging when bootcontrol HAL fails to load.David Anderson1-2/+8
Bug: N/A Test: manual test Change-Id: I6bf849dba4ae66353c44875ece30917283557327
2019-09-05boot_control: Don't allow current_slot_ to be -1.David Anderson1-0/+4
If the HAL is run on a non-A/B device, it does not fail gracefully; it will segfault because the current_slot is -1 and methods do not protect against this. Instead, have Init() fail if we can't determine the current slot. Bug: 130078382 Test: vts tests Change-Id: I2d3094518a842b1a764427d2da9d46781a9f26da
2019-08-30Make libboot_control vendor available.David Anderson1-1/+2
Bug: 138861550 Test: builds Change-Id: Ib745b59931c6258073e47b00def84c9157df90a7
2019-08-30Refactor boot_control into a separate library.David Anderson4-134/+256
This extracts the implementation of boot_control into a new library, libboot_control. The bootctrl.default module now wraps this library. This refactoring will allow us to re-use the same implementation in HIDL. Bug: 138861550 Test: mm bootctrl.default Change-Id: Ic0558da3c2d8e6f5ebec63a497825c24b51623b7
2018-08-10Build boot control HAL with Android.bpHridya Valsaraju2-33/+37
Bug: 78793464 Test: make Change-Id: Id5efceda0f5e93bbaf33c2dc3e203fd39ef44e28
2017-10-12Drop -Wno-unused-parameter.Tao Bao1-2/+1
The only one left is libedify. Will handle that in a separate CL. Test: mmma bootable/recovery Change-Id: I732a5f85229da90fd767bee2e46c5c95f529c396
2017-04-03Boot control HAL based on the A/B headers.Alex Deymo2-0/+435
The added bootctrl.bcb module implement the legacy interface for the bootctrl HAL based on the Boot Control Block (BCB) and the headers already specified in the booloader_message library. This serves as a reference implementation of the boot_control HAL. Bug: 32707546 Test: Tested internally that a device can use this HAL to flip slots and recovery from a /misc wipe. Change-Id: Ic02e5aaf4de7d0a1780eac4e8705dae20d0b3e10