summaryrefslogtreecommitdiff
path: root/apex/Android.bp
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2020-12-15 18:28:20 +0000
committer Anton Hansson <hansson@google.com> 2020-12-16 12:17:24 +0000
commitc7aa3f18f600971670f0f47e69955deab1d1b90a (patch)
tree44ac29beb828da2a25ce5f5ab30c847520e53310 /apex/Android.bp
parentec0354cc5f54ac5b916c4446f6eb40b8eac4d165 (diff)
Limit build visibility of modules in apex/...
This changes the default visibility of soong modules in this directory to __subpackages__, from the current public default. This helps accidental dependencies sneaking in without intent from the module owner. Bug: 175604587 Test: m nothing Change-Id: I1df8b8e087d27f62ce8c09d7e6e32d511efdba6b
Diffstat (limited to 'apex/Android.bp')
-rw-r--r--apex/Android.bp15
1 files changed, 15 insertions, 0 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 4e80acb64e05..77ff6dbd8b8b 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_visibility: [":__subpackages__"],
+}
+
mainline_stubs_args =
"--error UnhiddenSystemApi " +
"--hide BroadcastBehavior " +
@@ -136,6 +140,13 @@ java_defaults {
enabled: true,
sdk_version: "module_current",
},
+ defaults_visibility: [
+ ":__subpackages__",
+ "//frameworks/base/libs/hwui",
+ "//frameworks/base/wifi",
+ "//packages/modules:__subpackages__",
+ "//packages/providers/MediaProvider:__subpackages__",
+ ],
}
// Defaults for mainline module system server provided java_sdk_library instances.
@@ -147,6 +158,10 @@ java_defaults {
enabled: true,
sdk_version: "module_current",
},
+ defaults_visibility: [
+ ":__subpackages__",
+ "//packages/modules:__subpackages__",
+ ],
}
stubs_defaults {