summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-07-01 12:32:46 -0700
committerYifan Hong <elsk@google.com>2020-07-06 13:36:20 -0700
commita819a3cad239dfd18724c79cc3a4c8646e2f0ead (patch)
tree0dfc41095f94df78454538ed13c8aef62b4ea37e /trusty/coverage/coverage.cpp
parentd894b463f17892ef3c199c6c0b003e9f6bfde14c (diff)
liblp: Force 10.0 metadata on downgrade to Q.
Q liblp only supports 10.0 super partition metadata, so forcefully downgrade the current metadata version too. On retrofit Virtual A/B devices, the metadata version is at most 10.1, because the new VIRTUAL_AB flag is not set on retrofit devices. In version 10.1, two per-partition flags: UPDATED and DISABLED are introduced. - The updated flag is set when the device undergoes a Virtual A/B update before. Clear it. - The disabled flag should only be set on metadata files used by libfiemap ImageManager. It shouldn't be used on super partition metadata. Hence, this CL should only clear UPDATED flag. Test: R->R->Q OTA Bug: 159590481 Change-Id: I8b548c8ce36a75197e7172a77f9207fd44fe4670 (cherry picked from commit ba5dfd76ded0502660e4cf695a4c249516adecdf) Merged-In: I8b548c8ce36a75197e7172a77f9207fd44fe4670
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions