Merge changes I45274836,I47268b81

* changes:
  Add PrebuiltNameFromSource
  Add IsModulePreferred
This commit is contained in:
Paul Duffin
2021-04-07 09:04:18 +00:00
committed by Gerrit Code Review
6 changed files with 32 additions and 23 deletions

View File

@@ -250,7 +250,7 @@ func prebuiltApexExportedModuleName(ctx android.BottomUpMutatorContext, name str
// the unprefixed name is the one to use. If the unprefixed one turns out to be a source module
// and not a renamed prebuilt module then that will be detected and reported as an error when
// processing the dependency in ApexInfoMutator().
prebuiltName := "prebuilt_" + name
prebuiltName := android.PrebuiltNameFromSource(name)
if ctx.OtherModuleExists(prebuiltName) {
name = prebuiltName
}