Merge "apex manifest is always installed as apex_manifest.json"
This commit is contained in:
commit
1f2310b093
1 changed files with 9 additions and 1 deletions
10
apex/apex.go
10
apex/apex.go
|
@ -850,7 +850,15 @@ func (a *apexBundle) buildFlattenedApex(ctx android.ModuleContext) {
|
||||||
// For flattened APEX, do nothing but make sure that apex_manifest.json file is also copied along
|
// For flattened APEX, do nothing but make sure that apex_manifest.json file is also copied along
|
||||||
// with other ordinary files.
|
// with other ordinary files.
|
||||||
manifest := android.PathForModuleSrc(ctx, proptools.StringDefault(a.properties.Manifest, "apex_manifest.json"))
|
manifest := android.PathForModuleSrc(ctx, proptools.StringDefault(a.properties.Manifest, "apex_manifest.json"))
|
||||||
a.filesInfo = append(a.filesInfo, apexFile{manifest, ctx.ModuleName() + ".apex_manifest.json", android.Common, ".", etc, nil})
|
|
||||||
|
// rename to apex_manifest.json
|
||||||
|
copiedManifest := android.PathForModuleOut(ctx, "apex_manifest.json")
|
||||||
|
ctx.Build(pctx, android.BuildParams{
|
||||||
|
Rule: android.Cp,
|
||||||
|
Input: manifest,
|
||||||
|
Output: copiedManifest,
|
||||||
|
})
|
||||||
|
a.filesInfo = append(a.filesInfo, apexFile{copiedManifest, ctx.ModuleName() + ".apex_manifest.json", android.Common, ".", etc, nil})
|
||||||
|
|
||||||
for _, fi := range a.filesInfo {
|
for _, fi := range a.filesInfo {
|
||||||
dir := filepath.Join("apex", ctx.ModuleName(), fi.installDir)
|
dir := filepath.Join("apex", ctx.ModuleName(), fi.installDir)
|
||||||
|
|
Loading…
Reference in a new issue