summaryrefslogtreecommitdiffstats
path: root/boot_control/libboot_control.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve error messaging when bootcontrol HAL fails to load.David Anderson2019-09-051-2/+8
| | | | | | Bug: N/A Test: manual test Change-Id: I6bf849dba4ae66353c44875ece30917283557327
* boot_control: Don't allow current_slot_ to be -1.David Anderson2019-09-051-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
* Refactor boot_control into a separate library.David Anderson2019-08-301-0/+328
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