diff options
| author | 2019-11-27 12:26:49 +0000 | |
|---|---|---|
| committer | 2019-11-27 12:29:50 +0000 | |
| commit | f2cb7e959bfdff98e207193aaea17d493d98d5eb (patch) | |
| tree | 1631ee606e4dadc64f02bf4f91ce0b16a07e4a41 /java/dexpreopt_config.go | |
| parent | 01f6b0a6564bc1d5d890c8626b722120cf6efda2 (diff) | |
Revert^2 "Do not dexpreopt system server jars from updatable modules."
This reverts commit 01f6b0a6564bc1d5d890c8626b722120cf6efda2.
Reason for revert: Build failure is not reproducible.
Forrest build on the same build ID 6033773 and same target
cf_x86_phone-userdebug_coverage finished successfully.
Change-Id: I5077f8332aa0b8037e324b89d41f35b86b8cf216
Diffstat (limited to 'java/dexpreopt_config.go')
| -rw-r--r-- | java/dexpreopt_config.go | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go index 15f11e11c..4747c645c 100644 --- a/java/dexpreopt_config.go +++ b/java/dexpreopt_config.go @@ -15,7 +15,6 @@ package java import ( - "fmt" "path/filepath" "strings" @@ -66,16 +65,6 @@ func setDexpreoptTestGlobalConfig(config android.Config, globalConfig dexpreopt. var dexpreoptGlobalConfigKey = android.NewOnceKey("DexpreoptGlobalConfig") var dexpreoptTestGlobalConfigKey = android.NewOnceKey("TestDexpreoptGlobalConfig") -// Expected format for apexJarValue = <apex name>:<jar name> -func splitApexJarPair(apexJarValue string) (string, string) { - var apexJarPair []string = strings.SplitN(apexJarValue, ":", 2) - if apexJarPair == nil || len(apexJarPair) != 2 { - panic(fmt.Errorf("malformed apexJarValue: %q, expected format: <apex>:<jar>", - apexJarValue)) - } - return apexJarPair[0], apexJarPair[1] -} - // systemServerClasspath returns the on-device locations of the modules in the system server classpath. It is computed // once the first time it is called for any ctx.Config(), and returns the same slice for all future calls with the same // ctx.Config(). @@ -89,9 +78,9 @@ func systemServerClasspath(ctx android.PathContext) []string { filepath.Join("/system/framework", m+".jar")) } for _, m := range global.UpdatableSystemServerJars { - apex, jar := splitApexJarPair(m) + apex, jar := dexpreopt.SplitApexJarPair(m) systemServerClasspathLocations = append(systemServerClasspathLocations, - filepath.Join("/apex", apex, "javalib", jar + ".jar")) + filepath.Join("/apex", apex, "javalib", jar+".jar")) } return systemServerClasspathLocations }) |