Commit graph

8 commits

Author SHA1 Message Date
David Anderson
3dd5281351 boot: Relax getSnapshotMergeStatus test.
The SNAPSHOTTED state is allowed to be NONE if the slot hasn't changed,
to avoid needing extra snapshot cancels in the bootloader.

Bug: 154449745
Test: vts
Change-Id: Ibcb9f18f535cdcb5aae7e2c9c01e03681dbfff13
Merged-In: Ibcb9f18f535cdcb5aae7e2c9c01e03681dbfff13
2020-04-29 14:00:29 -07:00
Steven Moreland
003b231944 Add VtsHalBootV1_1TargetTest to VTS.
Bug: 139438327
Test: N/A
Change-Id: I72a6b3f60c861d4cda5f3a5fb56e15d4bbe7bc41
2020-04-02 14:34:36 -07:00
Tianjie Xu
23f890c474 Move libboot_control to boot_control 1.1
It should belong to the default /misc implementation of boot control
1.1. Right now, the library as well as the bootloader_message_ab
are only used by cuttlefish. So move it over to reduce the confusion
in libbootloader_message.

Bug: 131775112
Test: build
Change-Id: I599678bf90d19718de811b9e34d82cf8fe1571a4
(cherry picked from commit c971ea8d5d)
2020-02-26 12:23:00 -08:00
Haibo Huang
83b4c1e3e1 Fix build with new googletest
The new googletest requires prefix to be non-empty.

Change-Id: I3ebd13861c4803b53dbeb4ac5f247984814bef45
2019-11-08 12:17:34 -08:00
David Anderson
9441a1eb98 IBootControl: Use new defaultPassthroughServiceImplementation signature.
Using the new signature ensures that the device actually provides an
IBootControl 1.1 implementation.

Bug: N/A
Test: manual test
Change-Id: I0ddc1ed71535a31c887d94196295baa46ed37d3c
2019-11-05 17:05:05 -08:00
David Anderson
c07c90699a Fix requests for IBootControl 1.0 when using the 1.1 HAL.
Bug: 138861550
Test: cuttlefish boots
Change-Id: I10587a70dca716366a5cf48c8bc8c1bc4fb9f93a
Merged-In: I10587a70dca716366a5cf48c8bc8c1bc4fb9f93a
2019-10-17 20:46:07 +00:00
David Anderson
0473214d39 Add a default implementation and tests of IBootControl 1.1.
Bug: 138861550
Test: VtsHalBootV1_0TargetTest
      VtsHalBootV1_1TargetTest

Change-Id: I53ea2465612b03435c37c3b4edeaff72c368373b
2019-10-09 17:50:30 -07:00
David Anderson
e8f1a7fdc8 Introduce IBootControl 1.1.
libsnapshot needs to communicate to the bootloader that a merge is in
progress. This can be used to prevent factory data resets, prevent
flashing or wiping userdata/metadata, and warning when the active slot
changes.

Bug: 138861550
Test: builds
Change-Id: I577877696b5ec6920b9520d518374931ce9ddfaa
Merged-In: I577877696b5ec6920b9520d518374931ce9ddfaa
2019-10-07 12:41:46 -07:00