Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 415e2387 authored by Paul Duffin's avatar Paul Duffin Committed by Gerrit Code Review
Browse files

Merge "Clean up the visibility rules for framework modules"

parents df792ee3 3434c933
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -16,6 +16,16 @@
java_sdk_library {
    name: "framework-tethering",
    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: [
        ":framework-tethering-srcs",
    ],
@@ -29,8 +39,6 @@ java_sdk_library {
    installable: true,

    hostdex: true, // for hiddenapi check
    visibility: ["//frameworks/base/packages/Tethering:__subpackages__"],
    stubs_library_visibility: ["//visibility:public"],
    apex_available: ["com.android.tethering"],
    permitted_packages: ["android.net"],
}