2019-08-27 10:19:38 +08:00
|
|
|
//
|
|
|
|
|
// Copyright (C) 2019 The Android Open Source Project
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
2021-02-12 14:45:04 -08:00
|
|
|
package {
|
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-13 12:28:49 +01:00
|
|
|
java_sdk_library {
|
2019-12-16 20:15:20 +08:00
|
|
|
name: "framework-tethering",
|
2023-01-16 18:02:30 +00:00
|
|
|
defaults: [
|
|
|
|
|
"framework-tethering-defaults",
|
|
|
|
|
],
|
2020-10-29 02:11:55 +00:00
|
|
|
impl_library_visibility: [
|
|
|
|
|
"//packages/modules/Connectivity/Tethering:__subpackages__",
|
2022-12-13 19:28:32 -08:00
|
|
|
"//packages/modules/Connectivity/framework",
|
|
|
|
|
"//packages/modules/Connectivity/framework-t",
|
|
|
|
|
"//packages/modules/Connectivity/service",
|
|
|
|
|
"//packages/modules/Connectivity/service-t",
|
2021-08-17 23:59:09 +08:00
|
|
|
|
|
|
|
|
// Using for test only
|
|
|
|
|
"//cts/tests/netlegacy22.api",
|
|
|
|
|
"//external/sl4a:__subpackages__",
|
2022-02-02 20:06:56 +09:00
|
|
|
"//frameworks/base/core/tests/bandwidthtests",
|
|
|
|
|
"//frameworks/base/core/tests/benchmarks",
|
|
|
|
|
"//frameworks/base/core/tests/utillib",
|
2021-08-17 23:59:09 +08:00
|
|
|
"//frameworks/base/packages/Connectivity/tests:__subpackages__",
|
2022-01-26 00:43:10 +08:00
|
|
|
"//frameworks/base/tests/vcn",
|
2021-08-17 23:59:09 +08:00
|
|
|
"//frameworks/libs/net/common/testutils",
|
|
|
|
|
"//frameworks/libs/net/common/tests:__subpackages__",
|
|
|
|
|
"//frameworks/opt/telephony/tests/telephonytests",
|
|
|
|
|
"//packages/modules/CaptivePortalLogin/tests",
|
|
|
|
|
"//packages/modules/Connectivity/Tethering/tests:__subpackages__",
|
2021-06-07 13:10:49 +09:00
|
|
|
"//packages/modules/Connectivity/tests:__subpackages__",
|
2022-01-26 00:43:10 +08:00
|
|
|
"//packages/modules/IPsec/tests/iketests",
|
2021-08-17 23:59:09 +08:00
|
|
|
"//packages/modules/NetworkStack/tests:__subpackages__",
|
|
|
|
|
"//packages/modules/Wifi/service/tests/wifitests",
|
2020-10-29 02:11:55 +00:00
|
|
|
],
|
2021-03-24 22:50:35 +09:00
|
|
|
stub_only_libs: ["framework-connectivity.stubs.module_lib"],
|
2023-01-12 11:41:54 +00:00
|
|
|
|
|
|
|
|
jarjar_rules: ":framework-tethering-jarjar-rules",
|
|
|
|
|
installable: true,
|
|
|
|
|
|
|
|
|
|
hostdex: true, // for hiddenapi check
|
|
|
|
|
permitted_packages: ["android.net"],
|
2023-03-10 13:30:00 +09:00
|
|
|
lint: { strict_updatability_linting: true },
|
2023-01-16 18:02:30 +00:00
|
|
|
}
|
|
|
|
|
|
2023-01-12 11:41:54 +00:00
|
|
|
java_library {
|
|
|
|
|
name: "framework-tethering-pre-jarjar",
|
2023-01-16 18:02:30 +00:00
|
|
|
defaults: [
|
|
|
|
|
"framework-tethering-defaults",
|
|
|
|
|
],
|
2023-01-12 11:41:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java_genrule {
|
|
|
|
|
name: "framework-tethering-jarjar-rules",
|
|
|
|
|
tool_files: [
|
|
|
|
|
":framework-tethering-pre-jarjar{.jar}",
|
|
|
|
|
":framework-tethering.stubs.module_lib{.jar}",
|
|
|
|
|
"jarjar-excludes.txt",
|
|
|
|
|
],
|
|
|
|
|
tools: [
|
|
|
|
|
"jarjar-rules-generator",
|
|
|
|
|
],
|
|
|
|
|
out: ["framework_tethering_jarjar_rules.txt"],
|
|
|
|
|
cmd: "$(location jarjar-rules-generator) " +
|
|
|
|
|
"$(location :framework-tethering-pre-jarjar{.jar}) " +
|
2023-03-15 10:30:10 +00:00
|
|
|
"--apistubs $(location :framework-tethering.stubs.module_lib{.jar}) " +
|
2023-01-12 11:41:54 +00:00
|
|
|
"--prefix android.net.http.internal " +
|
|
|
|
|
"--excludes $(location jarjar-excludes.txt) " +
|
|
|
|
|
"--output $(out)",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java_defaults {
|
|
|
|
|
name: "framework-tethering-defaults",
|
|
|
|
|
defaults: ["framework-module-defaults"],
|
|
|
|
|
srcs: [
|
|
|
|
|
":framework-tethering-srcs"
|
|
|
|
|
],
|
|
|
|
|
libs: ["framework-connectivity.stubs.module_lib"],
|
2021-01-15 20:26:28 +09:00
|
|
|
aidl: {
|
|
|
|
|
include_dirs: [
|
2021-05-23 16:38:40 +00:00
|
|
|
"packages/modules/Connectivity/framework/aidl-export",
|
2021-01-15 20:26:28 +09:00
|
|
|
],
|
|
|
|
|
},
|
2020-01-06 13:30:59 +09:00
|
|
|
apex_available: ["com.android.tethering"],
|
2020-10-31 22:41:41 +00:00
|
|
|
min_sdk_version: "30",
|
2019-08-27 10:19:38 +08:00
|
|
|
}
|
2019-09-30 14:40:57 +08:00
|
|
|
|
|
|
|
|
filegroup {
|
2019-12-16 20:15:20 +08:00
|
|
|
name: "framework-tethering-srcs",
|
2023-03-15 10:30:10 +00:00
|
|
|
defaults: ["framework-sources-module-defaults"],
|
2019-12-16 20:15:20 +08:00
|
|
|
srcs: [
|
2022-12-13 19:28:32 -08:00
|
|
|
"src/**/*.aidl",
|
|
|
|
|
"src/**/*.java",
|
2019-12-16 20:15:20 +08:00
|
|
|
],
|
|
|
|
|
path: "src"
|
2019-09-30 14:40:57 +08:00
|
|
|
}
|