Support Factory OTA for Virtual A/B devices
In Factory OTA, secondary payload should be generated without virtual_ab flag set, so that update package generator generates a regular A/B OTA (with snapshot_enabled set to false), and OTA client writes system_b without snapshots. Test: apply secondary OTA Fixes: 138733621 Change-Id: I05d534a12d4a7891ce5597f3c29e55f5185e5a8d
This commit is contained in:
@@ -1635,6 +1635,10 @@ def GetTargetFilesZipForSecondaryImages(input_file, skip_postinstall=False):
|
|||||||
partitions = [partition for partition in partitions if partition
|
partitions = [partition for partition in partitions if partition
|
||||||
not in SECONDARY_PAYLOAD_SKIPPED_IMAGES]
|
not in SECONDARY_PAYLOAD_SKIPPED_IMAGES]
|
||||||
output_list.append('{}={}'.format(key, ' '.join(partitions)))
|
output_list.append('{}={}'.format(key, ' '.join(partitions)))
|
||||||
|
elif key == 'virtual_ab' or key == "virtual_ab_retrofit":
|
||||||
|
# Remove virtual_ab flag from secondary payload so that OTA client
|
||||||
|
# don't use snapshots for secondary update
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
output_list.append(line)
|
output_list.append(line)
|
||||||
return '\n'.join(output_list)
|
return '\n'.join(output_list)
|
||||||
|
Reference in New Issue
Block a user