summaryrefslogtreecommitdiff
path: root/libpackagelistparser/packagelistparser.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-07-24 13:51:32 -0700
committerYifan Hong <elsk@google.com>2019-07-24 17:19:06 -0700
commit9d0e6cdfefa0b0614833fff38b01b0fcfc7379eb (patch)
treec4c74857d6f457c4b767802b5ee5859709255b57 /libpackagelistparser/packagelistparser.cpp
parent4e6275ddafd3baefd6efeb5dff66948e83ed4618 (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.cpp')
0 files changed, 0 insertions, 0 deletions