Merge "Clean up the visibility rules for framework modules" into rvc-dev am: 07555b53a5 am: 408914d348 am: c610401918
Change-Id: I15eb542ecff199567da1d16e9d7c7bc2d1648563
This commit is contained in:
@@ -16,6 +16,16 @@
|
|||||||
java_sdk_library {
|
java_sdk_library {
|
||||||
name: "framework-tethering",
|
name: "framework-tethering",
|
||||||
defaults: ["framework-module-defaults"],
|
defaults: ["framework-module-defaults"],
|
||||||
|
|
||||||
|
// 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/base/packages/Tethering:__subpackages__",
|
||||||
|
],
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
":framework-tethering-srcs",
|
":framework-tethering-srcs",
|
||||||
],
|
],
|
||||||
@@ -29,8 +39,6 @@ java_sdk_library {
|
|||||||
installable: true,
|
installable: true,
|
||||||
|
|
||||||
hostdex: true, // for hiddenapi check
|
hostdex: true, // for hiddenapi check
|
||||||
visibility: ["//frameworks/base/packages/Tethering:__subpackages__"],
|
|
||||||
stubs_library_visibility: ["//visibility:public"],
|
|
||||||
apex_available: ["com.android.tethering"],
|
apex_available: ["com.android.tethering"],
|
||||||
permitted_packages: ["android.net"],
|
permitted_packages: ["android.net"],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user