File tree Expand file tree Collapse file tree
packages/Tethering/common/TetheringLib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,14 @@ java_sdk_library {
105105 " framework_media_annotation" ,
106106 ],
107107
108- visibility : [" //frameworks/av/apex:__subpackages__" ],
108+ // Allow access to the stubs from anywhere.
109+ visibility : [" //visibility:public" ],
110+
111+ // Restrict access to implementation library.
112+ impl_library_visibility : [
113+ " //visibility:override" , // Ignore the visibility property.
114+ " //frameworks/av/apex:__subpackages__" ,
115+ ],
109116}
110117
111118
Original file line number Diff line number Diff line change @@ -24,6 +24,16 @@ filegroup {
2424java_sdk_library {
2525 name : " framework-permission" ,
2626 defaults : [" framework-module-defaults" ],
27+
28+ // Allow access to the stubs from anywhere.
29+ visibility : [" //visibility:public" ],
30+
31+ // Restrict access to implementation library.
32+ impl_library_visibility : [
33+ " //visibility:override" , // Ignore the visibility property.
34+ " //frameworks/base/apex/permission:__subpackages__" ,
35+ ],
36+
2737 srcs : [
2838 " :framework-permission-sources" ,
2939 ],
@@ -43,8 +53,4 @@ java_sdk_library {
4353 ],
4454 hostdex : true ,
4555 installable : true ,
46- visibility : [
47- " //frameworks/base/apex/permission:__subpackages__" ,
48- ],
49- stubs_library_visibility : [" //visibility:public" ],
5056}
Original file line number Diff line number Diff line change @@ -75,15 +75,20 @@ java_sdk_library {
7575 ],
7676
7777 hostdex : true , // for hiddenapi check
78+
7879 visibility : [
79- " //frameworks/base/apex/statsd:__subpackages__" ,
80- ],
81- stubs_library_visibility : [
8280 " //frameworks/base" , // Framework
83- " //frameworks/base/apex/statsd" , // statsd apex
81+ " //frameworks/base/apex/statsd:__subpackages__ " , // statsd apex
8482 " //frameworks/opt/net/wifi/service" , // wifi service
8583 " //packages/providers/MediaProvider" , // MediaProvider apk
8684 ],
85+
86+ // Restrict access to implementation library.
87+ impl_library_visibility : [
88+ " //visibility:override" , // Ignore the visibility property.
89+ " //frameworks/base/apex/statsd:__subpackages__" , // statsd apex
90+ ],
91+
8792 apex_available : [
8893 " com.android.os.statsd" ,
8994 " test_com.android.os.statsd" ,
Original file line number Diff line number Diff line change 1616java_sdk_library {
1717 name : " framework-tethering" ,
1818 defaults : [" framework-module-defaults" ],
19+
20+ // Allow access to the stubs from anywhere.
21+ visibility : [" //visibility:public" ],
22+
23+ // Restrict access to implementation library.
24+ impl_library_visibility : [
25+ " //visibility:override" , // Ignore the visibility property.
26+ " //frameworks/base/packages/Tethering:__subpackages__" ,
27+ ],
28+
1929 srcs : [
2030 " :framework-tethering-srcs" ,
2131 ],
@@ -29,8 +39,6 @@ java_sdk_library {
2939 installable : true ,
3040
3141 hostdex : true , // for hiddenapi check
32- visibility : [" //frameworks/base/packages/Tethering:__subpackages__" ],
33- stubs_library_visibility : [" //visibility:public" ],
3442 apex_available : [" com.android.tethering" ],
3543 permitted_packages : [" android.net" ],
3644}
Original file line number Diff line number Diff line change @@ -123,10 +123,16 @@ java_sdk_library {
123123 enabled : false
124124 },
125125 hostdex : true , // for hiddenapi check
126- visibility : [
126+
127+ // Allow access to the stubs from anywhere.
128+ visibility : [" //visibility:public" ],
129+
130+ // Restrict access to implementation library.
131+ impl_library_visibility : [
132+ " //visibility:override" , // Ignore the visibility property.
127133 " //frameworks/opt/net/wifi/service:__subpackages__" ,
128134 ] + test_access_hidden_api_whitelist,
129- stubs_library_visibility : [ " //visibility:public " ],
135+
130136 apex_available : [
131137 " com.android.wifi" ,
132138 " test_com.android.wifi" ,
You can’t perform that action at this time.
0 commit comments