Commit Graph

4 Commits

Author SHA1 Message Date
Tianjie
a40c2001fa Add a function pointer to get active boot slot
bootcontrol 1.2 adds a new function to get the active boot slot
on the next boot. Since the getter is closely related to the gpt
implementation of bootcontrol, we add the header here and expose
to clients of libhardware. Devices with an old HAL should never
call this new getter function.

Bug: 173808057
Test: Vts tests for bootcontrol

Change-Id: I19135ed16bf0ba546e0a8d9cb2d521ec0a9c5bbc
2020-12-08 14:29:11 -08:00
David Zeuthen
72c88c915d libhardware: boot_control: Add isSlotMarkedSuccesful() function.
This is useful in cases where the OS need to do some work (verification,
JIT'ing etc.) before it's ready to mark a slot as successful.

Change-Id: I114cfb7cf89ee227b186c56347446c850986d0b1
2015-12-09 09:59:39 -05:00
David Zeuthen
45131be338 libhardware: boot_control: Clarify documentation for isSlotBootable().
The documentation for this method is clearly wrong and it confused
several implementors.

Change-Id: I0427abcf87d0c8955ea1168513e6b9ab85380bf2
2015-12-08 13:16:55 -05:00
Rom Lemarchand
a13a426a7d boot: Add a boot_control HAL
The purpose of the boot control HAL is to communicate with the
bootloader and set various flags letting the bootloader know which
partition to boot

Change-Id: I15178abaaf9ca208b1e5300c9207cedbb7950a88
2015-08-28 13:45:41 -07:00