summaryrefslogtreecommitdiff
path: root/java/dexpreopt_config.go
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-03-14 15:31:47 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-03-15 14:28:38 +0000
commitb9a46fb62480f6412b95086c51b0a059ceef1628 (patch)
treecdb00272c528f9808b62609baf55a4ae43d67c22 /java/dexpreopt_config.go
parent1e17a78c557ab4914e7d57f12b6659c92ff584b0 (diff)
Pass --preloaded-classes to boot image compilation.
Test: m Bug: 162110941 Change-Id: I0df016c5d170ca101cd18cacc331499ae76677a6
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r--java/dexpreopt_config.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go
index 21e1d12c0..4d0bd09c6 100644
--- a/java/dexpreopt_config.go
+++ b/java/dexpreopt_config.go
@@ -62,18 +62,20 @@ func genBootImageConfigRaw(ctx android.PathContext) map[string]*bootImageConfig
installDirOnDevice: "system/framework",
profileInstallPathInApex: "etc/boot-image.prof",
modules: artModules,
+ preloadedClassesFile: "art/build/boot/preloaded-classes",
}
// Framework config for the boot image extension.
// It includes framework libraries and depends on the ART config.
frameworkSubdir := "system/framework"
frameworkCfg := bootImageConfig{
- extends: &artCfg,
- name: frameworkBootImageName,
- stem: "boot",
- installDirOnHost: frameworkSubdir,
- installDirOnDevice: frameworkSubdir,
- modules: frameworkModules,
+ extends: &artCfg,
+ name: frameworkBootImageName,
+ stem: "boot",
+ installDirOnHost: frameworkSubdir,
+ installDirOnDevice: frameworkSubdir,
+ modules: frameworkModules,
+ preloadedClassesFile: "frameworks/base/config/preloaded-classes",
}
return map[string]*bootImageConfig{