From d346b43c1fff4b74a42258f3591812d26030c7f2 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Thu, 2 Jul 2020 16:41:45 +0100 Subject: 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 --- apex/Android.bp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apex/Android.bp') 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. -- cgit v1.2.3-59-g8ed1b