summaryrefslogtreecommitdiff
path: root/apex/Android.bp
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-07-02 16:41:45 +0100
committerAnton Hansson <hansson@google.com>2020-07-02 16:41:45 +0100
commitd346b43c1fff4b74a42258f3591812d26030c7f2 (patch)
tree5ec214a412e34b7b50c437b69b7844de50df3837 /apex/Android.bp
parent31fdc7415460ca1aace74da11d2375b165018529 (diff)
Make module stubs publicly visible
Previously they were limited to frameworks/base so that they could be combined into the "main" android stubs. However, limiting their visibility is inflexible and unnecessary, and due to limitations in the build system also makes it impossible to create rules for prebuilts of these module stubs that set `prefer: false`. This CL makes it possible to disable the prebuilts, which multiple downstream branches would like to do. Bug: 159902351 Test: m nothing (with prefer: false on prebuilts) Change-Id: Id0eee4bf4e78f5dfddf6ad569e49719fefde658e
Diffstat (limited to 'apex/Android.bp')
-rw-r--r--apex/Android.bp4
1 files changed, 1 insertions, 3 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 371bd7fc9479..992648b04ef0 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -94,10 +94,8 @@ java_defaults {
annotations_enabled: true,
- // The stub libraries must be visible to frameworks/base so they can be combined
- // into API specific libraries.
stubs_library_visibility: [
- "//frameworks/base", // Framework
+ "//visibility:public",
],
// Set the visibility of the modules creating the stubs source.