diff options
Diffstat (limited to 'android/visibility.go')
| -rw-r--r-- | android/visibility.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/visibility.go b/android/visibility.go index 6558e4622..5aa7f3f67 100644 --- a/android/visibility.go +++ b/android/visibility.go @@ -496,6 +496,13 @@ func EffectiveVisibilityRules(ctx BaseModuleContext, module Module) []string { rule := effectiveVisibilityRules(ctx.Config(), qualified) + // Modules are implicitly visible to other modules in the same package, + // without checking the visibility rules. Here we need to add that visibility + // explicitly. + if rule != nil && !rule.matches(qualified) { + rule = append(rule, packageRule{dir}) + } + return rule.Strings() } |