summaryrefslogtreecommitdiff
path: root/apex/Android.bp
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-12-15 18:28:20 +0000
committerAnton Hansson <hansson@google.com>2021-02-01 11:26:27 +0000
commit42fd56a03bebcd9060fb5a4945d9fd941c5532c3 (patch)
tree308e3b6e756632a86292cb17fa8fcaf09178b295 /apex/Android.bp
parentb9653a95dfa2a121800160b47af7869072620ba6 (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 Exempt-From-Owner-Approval: cp Merged-In: I1df8b8e087d27f62ce8c09d7e6e32d511efdba6b 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 04eb9de45798..f635539ed50c 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 " +
@@ -129,6 +133,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.
@@ -140,6 +151,10 @@ java_defaults {
enabled: true,
sdk_version: "module_current",
},
+ defaults_visibility: [
+ ":__subpackages__",
+ "//packages/modules:__subpackages__",
+ ],
}
stubs_defaults {