summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-01-22 07:48:05 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-01-22 07:48:05 +0000
commitf8c06c159e8ba3fa7afdc263d72f91cbd50a9e36 (patch)
tree535466172a4f6787bffa6b9473d176051740700e /java/java.go
parent5c7c78a2e0a1a00cd0bdf7759af8a43e2a4ccac2 (diff)
parent4bdea39ad2fb3cf3ba26a931fa6e81a29c9257d4 (diff)
Merge "Don't install java libraries that are already in an apex."
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 9c4bd869e..7e82c59d6 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1395,7 +1395,7 @@ func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) {
j.deviceProperties.UncompressDex = j.shouldUncompressDex(ctx)
j.compile(ctx)
- if Bool(j.properties.Installable) || ctx.Host() {
+ if (Bool(j.properties.Installable) || ctx.Host()) && !android.DirectlyInAnyApex(ctx, ctx.ModuleName()) {
if j.deviceProperties.UncompressDex {
alignedOutputFile := android.PathForModuleOut(ctx, "aligned", ctx.ModuleName()+".jar")
TransformZipAlign(ctx, alignedOutputFile, j.outputFile)