Call InstallFile even when !installable
Not calling InstallFile when !installable prevents the module not only from being installed to the partition, but also from being packaged for a packaging_base. InstallFile already has a routine for not generating the install rule when the module is not installable. So, the check for can be safely omitted at the call site. Bug: 199674764 Test: m com.android.virt. the virt apex has com.android.runtime.64only.apex in system/apex Change-Id: I0249f5916496ed136dbf1978e04e2971852de244
This commit is contained in:
parent
6a779a4b50
commit
17ff2838fc
1 changed files with 2 additions and 4 deletions
|
@ -824,10 +824,8 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
|
||||||
a.outputFile = signedCompressedOutputFile
|
a.outputFile = signedCompressedOutputFile
|
||||||
}
|
}
|
||||||
|
|
||||||
// Install to $OUT/soong/{target,host}/.../apex
|
// Install to $OUT/soong/{target,host}/.../apex.
|
||||||
if a.installable() {
|
ctx.InstallFile(a.installDir, a.Name()+suffix, a.outputFile)
|
||||||
ctx.InstallFile(a.installDir, a.Name()+suffix, a.outputFile)
|
|
||||||
}
|
|
||||||
|
|
||||||
// installed-files.txt is dist'ed
|
// installed-files.txt is dist'ed
|
||||||
a.installedFilesFile = a.buildInstalledFilesFile(ctx, a.outputFile, imageDir)
|
a.installedFilesFile = a.buildInstalledFilesFile(ctx, a.outputFile, imageDir)
|
||||||
|
|
Loading…
Reference in a new issue