From 95572ff2daceffac17516f4c87ca3fed88526df4 Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Thu, 7 Dec 2023 16:38:45 -0800 Subject: [PATCH] Remove the code for bazel when reading ReleaseAconfigValueSets. Bug: 315353489 Test: CI Change-Id: I652f78df6d9256cdb35b8b498e20bcb76f1437b3 --- android/config.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/android/config.go b/android/config.go index 929350584..f6a813b6b 100644 --- a/android/config.go +++ b/android/config.go @@ -210,22 +210,7 @@ func (c Config) ReleaseVersion() string { // The aconfig value set passed to aconfig, derived from RELEASE_VERSION func (c Config) ReleaseAconfigValueSets() []string { - // This logic to handle both Soong module name and bazel target is temporary in order to - // provide backward compatibility where aosp and internal both have the release - // aconfig value set but can't be updated at the same time to use bazel target - var valueSets []string - for _, valueSet := range c.config.productVariables.ReleaseAconfigValueSets { - value := strings.Split(valueSet, ":") - valueLen := len(value) - if valueLen > 2 { - // This shouldn't happen as this should be either a module name or a bazel target path. - panic(fmt.Errorf("config file: invalid value for release aconfig value sets: %s", valueSet)) - } - if valueLen > 0 { - valueSets = append(valueSets, value[valueLen-1]) - } - } - return valueSets + return c.config.productVariables.ReleaseAconfigValueSets } // The flag default permission value passed to aconfig