Restrict visibility of a static library module.
Static linking violates the APEX surface, so it shouldn't be public.
Bug: 133140750
Test: m
Change-Id: If75e74c24574679aed8c6499f8e70a6419acebbc
diff --git a/libdexfile/Android.bp b/libdexfile/Android.bp
index d4aead0..dea2a1a 100644
--- a/libdexfile/Android.bp
+++ b/libdexfile/Android.bp
@@ -390,9 +390,14 @@
cc_library_static {
name: "libdexfile_support_static",
- visibility: ["//visibility:public"],
- host_supported: true,
defaults: ["libdexfile_static_defaults"],
+ visibility: [
+ "//art:__subpackages__",
+ // TODO(b/133140750): Clean this up.
+ "//system/core/debuggerd",
+ "//system/extras/simpleperf",
+ ],
+ host_supported: true,
srcs: [
"external/dex_file_supp.cc",
],