Merge "Install appSet using InstallFileWithExtraFilesZip"
This commit is contained in:
@@ -922,10 +922,16 @@ func (a *apexBundle) buildFlattenedApex(ctx android.ModuleContext) {
|
|||||||
installedSymlinks = append(installedSymlinks,
|
installedSymlinks = append(installedSymlinks,
|
||||||
ctx.InstallAbsoluteSymlink(installDir, fi.stem(), pathOnDevice))
|
ctx.InstallAbsoluteSymlink(installDir, fi.stem(), pathOnDevice))
|
||||||
} else {
|
} else {
|
||||||
target := ctx.InstallFile(installDir, fi.stem(), fi.builtFile)
|
if fi.class == appSet {
|
||||||
for _, sym := range fi.symlinks {
|
as := fi.module.(*java.AndroidAppSet)
|
||||||
installedSymlinks = append(installedSymlinks,
|
ctx.InstallFileWithExtraFilesZip(installDir, as.BaseModuleName()+".apk",
|
||||||
ctx.InstallSymlink(installDir, sym, target))
|
as.OutputFile(), as.PackedAdditionalOutputs())
|
||||||
|
} else {
|
||||||
|
target := ctx.InstallFile(installDir, fi.stem(), fi.builtFile)
|
||||||
|
for _, sym := range fi.symlinks {
|
||||||
|
installedSymlinks = append(installedSymlinks,
|
||||||
|
ctx.InstallSymlink(installDir, sym, target))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user