From 9284f67fe48e32bb43736942f4ec4a5f8b1d905f Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Mon, 10 Mar 2025 17:29:53 +0000 Subject: Remove ab_update=true from dynamic_partition_list.txt When building with Make, this entry is present only in misc_info.txt and not not in dynamic_partition_list.txt. This entry gets added to the first file via `dump-super-image-info`. This CL ports this behavior to Soong by moving this entry out of `dumpDynamicPartitionInfo` and into `buildMiscInfo` Bug: 399788100 Test: Verified that this entry is present in Soong's misc_info.txt Test: Verified that this entry is absent in Soong's dynamic_partition_info.txt Change-Id: I98384510c7f47c403ca5d7edbf863e513c9d503d --- filesystem/super_image.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'filesystem') diff --git a/filesystem/super_image.go b/filesystem/super_image.go index 9e4412c13..51080258c 100644 --- a/filesystem/super_image.go +++ b/filesystem/super_image.go @@ -200,6 +200,7 @@ func (s *superImage) buildMiscInfo(ctx android.ModuleContext) (android.Path, and miscInfoString.WriteString(value) miscInfoString.WriteRune('\n') } + addStr("ab_update", strconv.FormatBool(proptools.Bool(s.properties.Ab_update))) subImageInfo := make(map[string]FilesystemInfo) var deps android.Paths @@ -329,8 +330,6 @@ func (s *superImage) dumpDynamicPartitionInfo(ctx android.ModuleContext, sb *str addStr("super_partition_groups", strings.Join(groups, " ")) addStr("dynamic_partition_list", strings.Join(partitionList, " ")) - addStr("ab_update", strconv.FormatBool(proptools.Bool(s.properties.Ab_update))) - if proptools.Bool(s.properties.Virtual_ab.Enable) { addStr("virtual_ab", "true") if proptools.Bool(s.properties.Virtual_ab.Retrofit) { -- cgit v1.2.3-59-g8ed1b