From 8199595ddee39c2e17515ca48182a615ef3b9801 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 16 Jan 2022 20:44:58 +0100 Subject: [PATCH] Add exported-to-kati namespaces to root namespace This lets us use boot jar modules that are hidden behind soong_namespace. Change-Id: If0068387efdeca5458b5b97ce6b993b10a268bd2 --- android/namespace.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/namespace.go b/android/namespace.go index ebf85a1fd..3b9ae3a87 100644 --- a/android/namespace.go +++ b/android/namespace.go @@ -156,6 +156,9 @@ func (r *NameResolver) addNamespace(namespace *Namespace) (err error) { return fmt.Errorf("a namespace must be the first module in the file") } } + if (namespace.exportToKati) { + r.rootNamespace.visibleNamespaces = append(r.rootNamespace.visibleNamespaces, namespace) + } r.sortedNamespaces.add(namespace) r.namespacesByDir.Store(namespace.Path, namespace)