platform_build/tools/releasetools
Tao Bao 8f05cca1d9 Use computed salt for AVB-signed images.
We want the generated images being identical for the same source files.
Currently the generated ext4 image (either from make_ext4fs or mke2fs)
is reproducible, but the AVB footer added by avbtool contain changes
because of the random salt being used.

This CL changes the avbtool invocation to specify "--salt <hexstring>"
(already supported by avbtool) to use reproducible salt that's computed
based on fingerprints (or thumbprints if applicable).

Bug: 67023482
Test: Regenerate images from the same source as follows:
  Use a target_files.zip from an AVB-enabled target.
    $ zip -d target_files.zip IMAGES/\*
    $ ./build/make/tools/releasetools/add_img_to_target_files.py \
          -v target_files.zip
  Repeat the above commands and compare the generated images.
Change-Id: Id9db17ae0132ca3a820b4be5a5ef06ca3fef71ed
2017-09-28 10:22:19 -07:00
..
add_img_to_target_files
add_img_to_target_files.py Use computed salt for AVB-signed images. 2017-09-28 10:22:19 -07:00
blockimgdiff.py releasetools: Add a verbose parameter to common.Run(). 2017-05-04 11:18:56 -07:00
build_image.py Use computed salt for AVB-signed images. 2017-09-28 10:22:19 -07:00
check_ota_package_signature.py releasetools: Validate A/B OTA payload signatures. 2017-09-01 14:33:15 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py releasetools: Add support for compressed APKs. 2017-08-21 13:21:20 +01:00
common.py Use computed salt for AVB-signed images. 2017-09-28 10:22:19 -07:00
edify_generator.py Fix the broken script in AssertFingerprintOrThumbprint. 2017-06-05 12:27:52 -07:00
img_from_target_files
img_from_target_files.py Remove the obsolete logic in img_from_target_files.py. 2017-05-31 11:17:56 -07: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 Add compatibility metadata for Treble-enabled non-A/B OTA packages. 2017-08-28 15:19:44 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07: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: Add support for compressed APKs. 2017-08-21 13:21:20 +01:00
sparse_img.py releasetools: Reduce memory footprint for BBOTA generation. 2017-03-06 08:46:30 -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 Fix unittest for blockimgdiff 2017-03-24 16:28:16 -07:00
test_common.py Verify the contents in install-recovery.sh 2017-06-20 17:28:35 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
validate_target_files.py Skip checking files that have less blocks in block map. 2017-09-08 11:22:59 -07:00