platform_system_core/fs_mgr/liblp
David Anderson cd7a635dc7 liblp: Add an attribute to indicate that a partition has been updated.
When the bootloader (or fastbootd) flashes the super partition, we need
to make sure that init doesn't re-map any snapshot or snapshot-merge targets.
A simple way to do this is to introduce an attribute that is only added
by update_engine. When this flag is present, we know the partition has
not been flashed.

This bumps the minor version of LpMetadata. To make this as uninvasive
as possible, the new minor version is only used when MetadataBuilder
detects the new attribute. The new liblp can read older metadata, but will
reject it if it contains an illegal attribute set.

Bug: 139154795
Test: liblp_test gtest
Change-Id: I5ae15d11219b41575a9f71d7dbdb43cbf07a3529
2019-08-23 14:44:52 -07:00
..
include/liblp liblp: Add an attribute to indicate that a partition has been updated. 2019-08-23 14:44:52 -07:00
Android.bp liblp_test_static: fix test 2019-08-22 14:59:10 -07:00
Android.mk Allow makefiles to be parsed in a trimmed down manifest. 2019-03-25 09:14:33 +00:00
AndroidTest.xml VtsKernelLiblpTest: use static test 2019-06-14 11:37:09 -07:00
builder.cpp liblp: Add an attribute to indicate that a partition has been updated. 2019-08-23 14:44:52 -07:00
builder_test.cpp liblp: Add an attribute to indicate that a partition has been updated. 2019-08-23 14:44:52 -07:00
device_test.cpp liblp: Expose MockPropertyFetcher for liblp-dependent tests. 2019-08-23 14:44:51 -07:00
images.cpp liblp: Replace some |const char*| inputs with std::string. 2019-06-07 11:09:26 -07:00
images.h liblp: Replace some |const char*| inputs with std::string. 2019-06-07 11:09:26 -07:00
io_test.cpp liblp: Add an attribute to indicate that a partition has been updated. 2019-08-23 14:44:52 -07:00
liblp_test.h liblp: Expose MockPropertyFetcher for liblp-dependent tests. 2019-08-23 14:44:51 -07:00
partition_opener.cpp liblp: Support sdcards in PartitionOpener. 2019-08-21 12:27:56 -07:00
property_fetcher.cpp liblp: Add PropertyFetcher. 2019-08-06 17:39:37 -07:00
reader.cpp liblp: Add an attribute to indicate that a partition has been updated. 2019-08-23 14:44:52 -07:00
reader.h liblp: Allow automatic slot suffixing of partition names. 2018-11-08 09:51:03 -08:00
test_partition_opener.cpp liblp: Add an abstraction layer for opening partitions. 2018-10-24 14:18:38 -07:00
test_partition_opener.h liblp: Add an abstraction layer for opening partitions. 2018-10-24 14:18:38 -07:00
utility.cpp liblp: Add an attribute to indicate that a partition has been updated. 2019-08-23 14:44:52 -07:00
utility.h liblp: UpdateMetadataForInPlaceSnapshot 2019-08-14 14:27:03 -07:00
utility_test.cpp liblp: UpdateMetadataForInPlaceSnapshot 2019-08-14 14:27:03 -07:00
writer.cpp Add header that declares memcpy() 2019-08-12 18:34:49 +00:00
writer.h liblp: Add an abstraction layer for opening partitions. 2018-10-24 14:18:38 -07:00