Merge "set up the salt for partitions without build.prop" am: 15b12d099a

Original change: https://android-review.googlesource.com/c/platform/build/+/2185143

Change-Id: I5f477ad4f2e3226efff9ecceff90d4ff33620d79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Kelvin Zhang
2022-08-22 17:28:47 +00:00
committed by Automerger Merge Worker

View File

@@ -861,6 +861,10 @@ def LoadInfoDict(input_file, repacking=False):
d["avb_{}_salt".format(partition)] = sha256(
fingerprint.encode()).hexdigest()
# Set up the salt for partitions without build.prop
if build_info.fingerprint:
d["avb_salt"] = sha256(build_info.fingerprint.encode()).hexdigest()
# Set the vbmeta digest if exists
try:
d["vbmeta_digest"] = read_helper("META/vbmeta_digest.txt").rstrip()