Merge "Don't install modules in unexported namespaces"

am: bd1dd19c3a

Change-Id: Id3c784619c402e1d5ccb882cbf2e4f3dd2deaa46
This commit is contained in:
android-build-prod (mdb) 2018-05-08 11:37:46 -07:00 committed by android-build-merger
commit 263532199c
1 changed files with 7 additions and 0 deletions

View File

@ -1015,6 +1015,13 @@ func (a *androidModuleContext) skipInstall(fullInstallPath OutputPath) bool {
return true
}
// We'll need a solution for choosing which of modules with the same name in different
// namespaces to install. For now, reuse the list of namespaces exported to Make as the
// list of namespaces to install in a Soong-only build.
if !a.module.base().commonProperties.NamespaceExportedToMake {
return true
}
if a.Device() {
if a.Config().SkipDeviceInstall() {
return true