platform_build/tools/releasetools
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
..
add_img_to_target_files store images in target-files 2014-07-31 11:06:30 -07:00
add_img_to_target_files.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
blockimgdiff.py blockimgdiff.py: Clean up stash id computation in BBOTA v3+. 2016-12-28 09:26:46 -08:00
build_image.py Pass flash erase & logical block size to mke2fs 2017-01-13 12:17:05 -08:00
check_ota_package_signature.py Add a script that verifies OTA package signature. 2016-09-16 15:08:40 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py Handle multiple APKs from the same package in check_target_files_signatures.py. 2016-07-27 19:52:28 -07:00
common.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
edify_generator.py Merge \"Remove obsolete MTD support from the releasetools scripts.\" 2016-06-17 04:59:26 +00:00
img_from_target_files Allow to build the update.zip for emulator build. 2014-06-04 17:04:14 +00:00
img_from_target_files.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py Revert "Revert "releasetools: Generate streamable A/B OTA packages."" 2017-01-24 22:27:02 -08:00
pylintrc Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Use java_path in sign_target_files_apks.py. 2016-11-08 12:48:43 -08:00
sparse_img.py Fix metadata location when file system doesn't span the partition 2016-02-10 10:53:47 -08:00
target_files_diff.py target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_blockimgdiff.py blockimgdiff.py: Add a test case for ReviseStashSize(). 2016-12-19 11:17:12 -08:00
test_common.py Fix the permission setting in common.ZipWriteStr() 2015-05-20 13:29:03 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00