summaryrefslogtreecommitdiff
path: root/wifi
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-05-31 11:32:06 +0100
committerPaul Duffin <paulduffin@google.com>2020-05-31 13:45:51 +0100
commitdde22307b149df3b1c731cf1546324702dd79d61 (patch)
treefacab894e9076de49173215e41c3565bdd972523 /wifi
parent85215ae5cf171e4840bd1cf3a00d987e24e1cc67 (diff)
Clean up the visibility rules for framework modules
Switching from java_library to java_sdk_library switched the meaning of the module name from referring to the implementation library to referring to the stubs. This change updates the visibility rules to reflect that new meaning. Visibility rules that were previously set for the java_library have been moved to the impl_library_visibility property and the special //visibility:override value has been prepended to prevent it from inheriting the values from the visibility property. Visibility rules set for the stubs (via stubs_library_visibility) property have been moved to the visibility property. Bug: 155164730 Test: m nothing Exempt-From-Owner-Approval: Build cleanup Change-Id: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640
Diffstat (limited to 'wifi')
-rw-r--r--wifi/Android.bp10
1 files changed, 8 insertions, 2 deletions
diff --git a/wifi/Android.bp b/wifi/Android.bp
index 63c14e9350cb..0df578f2216b 100644
--- a/wifi/Android.bp
+++ b/wifi/Android.bp
@@ -123,10 +123,16 @@ java_sdk_library {
enabled: false
},
hostdex: true, // for hiddenapi check
- visibility: [
+
+ // Allow access to the stubs from anywhere.
+ visibility: ["//visibility:public"],
+
+ // Restrict access to implementation library.
+ impl_library_visibility: [
+ "//visibility:override", // Ignore the visibility property.
"//frameworks/opt/net/wifi/service:__subpackages__",
] + test_access_hidden_api_whitelist,
- stubs_library_visibility: ["//visibility:public"],
+
apex_available: [
"com.android.wifi",
"test_com.android.wifi",