diff options
author | Yifan Hong <elsk@google.com> | 2019-07-24 13:51:32 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-07-24 17:19:06 -0700 |
commit | 9d0e6cdfefa0b0614833fff38b01b0fcfc7379eb (patch) | |
tree | c4c74857d6f457c4b767802b5ee5859709255b57 /libpackagelistparser/packagelistparser_test.cpp | |
parent | 4e6275ddafd3baefd6efeb5dff66948e83ed4618 (diff) |
MetadataBuilder::NewForUpdate: check sysprop instead
Check the value of ro.boot.dynamic_partitions_retrofit instead of
checking the name of the super partition being 'super' is a more
reliable way of determining retrofit DAP devices.
Some devices launch with DAP (e.g. cuttlefish) doesn't have "super"
as the super partition name. When Virtual A/B is implemented on
cuttlefish, update_engine calls NewForUpdate for the current super
partition metadata. Hence, this code needs to check the retrofit
sysprop instead.
Also, renamed IsRetrofitDevice to IsRetrofitMetadata to avoid the
confusion.
Test: OTA on retrofit DAP device
Test: OTA on launch DAP device
Test: liblp_test_static
Change-Id: I4636de854734df1bb61779d9a955217e89fdb2fd
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions