aboutsummaryrefslogtreecommitdiff
path: root/android/neverallow.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/neverallow.go')
-rw-r--r--android/neverallow.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/neverallow.go b/android/neverallow.go
index 98b443ee4..7004751d9 100644
--- a/android/neverallow.go
+++ b/android/neverallow.go
@@ -253,6 +253,7 @@ func createInstallInRootAllowingRules() []Rule {
NotModuleType("prebuilt_first_stage_ramdisk").
NotModuleType("prebuilt_res").
NotModuleType("prebuilt_any").
+ NotModuleType("prebuilt_lib").
Because("install_in_root is only for init_first_stage or librecovery_ui_ext."),
}
}
@@ -741,7 +742,7 @@ func (r *rule) appliesToDirectDeps(ctx BottomUpMutatorContext) bool {
}
matches := false
- ctx.VisitDirectDeps(func(m Module) {
+ ctx.VisitDirectDepsProxy(func(m ModuleProxy) {
if !matches {
name := ctx.OtherModuleName(m)
matches = r.directDeps[name]