summaryrefslogtreecommitdiff
path: root/java/dexpreopt_bootjars.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/dexpreopt_bootjars.go')
-rw-r--r--java/dexpreopt_bootjars.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go
index e0609a035..d40d72e09 100644
--- a/java/dexpreopt_bootjars.go
+++ b/java/dexpreopt_bootjars.go
@@ -310,6 +310,10 @@ func buildBootImage(ctx android.SingletonContext, image *bootImageConfig) *bootI
// This logic is tested in the apex package to avoid import cycle apex <-> java.
bootDexJars := make(android.Paths, len(image.modules))
ctx.VisitAllModules(func(module android.Module) {
+ if m, ok := module.(interface{ BootJarProvider() bool }); !ok ||
+ !m.BootJarProvider() {
+ return
+ }
if i, j := getBootImageJar(ctx, image, module); i != -1 {
bootDexJars[i] = j
}