Files
build/tools
Tao Bao c96316c89b Revert "Revert "releasetools: Generate streamable A/B OTA packages.""
This reverts commit ea4325baf8 to re-land
commit ef1bb4360f. It fixes the bug when
handling a package without care_map.txt (e.g. dm-verity not enabled).

In order to support streaming A/B OTA packages, we pack
payload_properties.txt and care_map.txt in ZIP_STORED mode. These two
entries along with payload.bin (already in ZIP_STORED prior to this CL)
can be fetched directly based on the offset and length info.

We write the offset and length info into the package metadata entry
(META-INF/com/android/metadata), which can be parsed by the OTA server.

payload_properties.txt and care_map.txt are usually less than 1-KiB. So
the change only incurs marginal size increase.

Bug: 33382114
Test: Generate an A/B OTA package. Verify the 'streaming-property-files'
      entry in the metadata file.
Test: Generate an A/B OTA package on a device with dm-verity not enabled.

Change-Id: I3469c8b62385a1fc58b4fb82e3f9d4690aef52ba
2017-01-24 22:27:02 -08:00
..
2016-06-06 14:51:52 -07:00
2017-01-04 18:22:05 +00:00
2016-06-14 13:50:38 -07:00
2016-06-16 14:52:47 -07:00
2014-08-08 13:18:53 -07:00
2016-10-17 12:22:44 -07:00
2016-06-06 14:51:52 -07:00
2015-11-19 18:42:52 +00:00
2012-08-16 22:45:55 -07:00
2016-09-15 14:40:39 -07:00