No description
Find a file
Tao Bao 16cda2fbff 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
Merged-In: Id9db17ae0132ca3a820b4be5a5ef06ca3fef71ed
(cherry picked from commit 8f05cca1d9)
2017-09-29 10:44:57 -07:00
core Add support for profiles without preopt 2017-09-19 08:50:50 -07:00
target DO NOT MERGE: Fix incorrect TARGET_2ND_CPU_VARIANT for A/B devices 2017-09-21 19:44:05 +09:00
tests Only set TARGET_PLATFORM version in lunch when explicitly requested 2017-05-03 02:47:59 +00:00
tools Use computed salt for AVB-signed images. 2017-09-29 10:44:57 -07:00
.gitignore Add build subprojects to .gitignore 2015-07-23 13:18:47 -07:00
Android.mk Add new Android.mk to handle repo move 2016-06-16 15:30:19 -07:00
buildspec.mk.default Add TARGET_PLATFORM_VERSION to lunch 2017-03-23 09:44:08 -07:00
CleanSpec.mk Copy adbd from system/bin to recovery/root/sbin 2017-08-15 11:33:17 +08:00
envsetup.sh Merge "Revert "Use java prebuilts"" am: 4d69df5191 am: f4e78ccf25 2017-07-19 22:58:23 +00:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07:00