summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2021-07-14 00:47:40 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-07-14 00:47:40 +0000
commit257608f993c4505bcc6cbf640ffe07adf16ab45f (patch)
treec6468498f245e61086c9e96296c4693b15eeba12 /java/java.go
parent5445c84f4d4c1f09fd13f7f1f8ec408380495299 (diff)
parentd5fe8782e089ec1539a133f270aa62f5d3ead61a (diff)
Merge "SdkLibraryImport's DexJarInstallPath uses installPath from source module"
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go
index be1ad874f..d763a4b31 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1166,7 +1166,8 @@ type Import struct {
properties ImportProperties
// output file containing classes.dex and resources
- dexJarFile android.Path
+ dexJarFile android.Path
+ dexJarInstallFile android.Path
combinedClasspathFile android.Path
classLoaderContexts dexpreopt.ClassLoaderContextMap
@@ -1311,6 +1312,7 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) {
di := ctx.OtherModuleProvider(deapexerModule, android.DeapexerProvider).(android.DeapexerInfo)
if dexOutputPath := di.PrebuiltExportPath(apexRootRelativePathToJavaLib(j.BaseModuleName())); dexOutputPath != nil {
j.dexJarFile = dexOutputPath
+ j.dexJarInstallFile = android.PathForModuleInPartitionInstall(ctx, "apex", ai.ApexVariationName, apexRootRelativePathToJavaLib(j.BaseModuleName()))
// Initialize the hiddenapi structure.
j.initHiddenAPI(ctx, dexOutputPath, outputFile, nil)
@@ -1351,6 +1353,7 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) {
dexOutputFile = j.hiddenAPIEncodeDex(ctx, dexOutputFile)
j.dexJarFile = dexOutputFile
+ j.dexJarInstallFile = android.PathForModuleInstall(ctx, "framework", jarName)
}
}
@@ -1392,7 +1395,7 @@ func (j *Import) DexJarBuildPath() android.Path {
}
func (j *Import) DexJarInstallPath() android.Path {
- return nil
+ return j.dexJarInstallFile
}
func (j *Import) ClassLoaderContexts() dexpreopt.ClassLoaderContextMap {