From b5195ff5fee5500b92ed7a50d6cc1c5ec8c29109 Mon Sep 17 00:00:00 2001 From: Devin Moore Date: Fri, 11 Feb 2022 18:44:26 +0000 Subject: [PATCH] Get build.prop for init_boot.img from the ramdisk props boot.img and init_boot.img get their build properties from the platform ramdisk properties. Test: "m dist" then drop the OTA zip file into android.github.io/analyseOTA to verify init_boot is present. Bug: 211823573 Change-Id: I411e62bf0fc3cb49d4b12dadb52d9820fca041fa --- tools/releasetools/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 850619940b..60a9265720 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -498,8 +498,9 @@ class BuildInfo(object): def GetPartitionBuildProp(self, prop, partition): """Returns the inquired build property for the provided partition.""" - # Boot image uses ro.[product.]bootimage instead of boot. - prop_partition = "bootimage" if partition == "boot" else partition + # Boot image and init_boot image uses ro.[product.]bootimage instead of boot. + # This comes from the generic ramdisk + prop_partition = "bootimage" if partition == "boot" or partition == "init_boot" else partition # If provided a partition for this property, only look within that # partition's build.prop.