Set default visibility to private
Bug: 134379140
Test: m checkbuild
Change-Id: Icd00c8eb24cf1ab901b461339cdacce0468fad5e
diff --git a/Android.bp b/Android.bp
index dcafbaf..8a01f91 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2,6 +2,10 @@
// libraries. This is currently needed to build, for example, adb. But it's
// probably something that should be changed.
+package {
+ default_visibility: ["//visibility:private"],
+}
+
// Pull in the autogenerated sources modules
build = ["sources.bp"]
@@ -77,6 +81,7 @@
// Target and host library
cc_library {
name: "libcrypto",
+ visibility: ["//visibility:public"],
vendor_available: true,
native_bridge_supported: true,
vndk: {
@@ -98,6 +103,7 @@
// modules should use the static variant of libcrypto.
cc_library_static {
name: "libcrypto_static",
+ visibility: ["//visibility:public"],
defaults: [
"libcrypto_sources",
"libcrypto_defaults",
@@ -125,6 +131,7 @@
// Deprecated: all users should move to libssl
cc_library_static {
name: "libssl_static",
+ visibility: ["//visibility:public"],
defaults: [
"libssl_sources",
"boringssl_defaults",
@@ -135,6 +142,7 @@
// Static and Shared library
cc_library {
name: "libssl",
+ visibility: ["//visibility:public"],
recovery_available: true,
vendor_available: true,
native_bridge_supported: true,