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 {
|
2024-01-31 11:08:57 +00:00
|
|
|
default_team: "trendy_team_fwk_core_networking",
|
2021-02-12 14:45:04 -08:00
|
|
|
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",
|
2024-02-28 07:50:15 +00:00
|
|
|
"//frameworks/base/services/tests/VpnTests",
|
2022-01-26 00:43:10 +08:00
|
|
|
"//frameworks/base/tests/vcn",
|
2021-08-17 23:59:09 +08:00
|
|
|
"//frameworks/opt/telephony/tests/telephonytests",
|
|
|
|
|
"//packages/modules/CaptivePortalLogin/tests",
|
2023-09-11 11:48:36 +09:00
|
|
|
"//packages/modules/Connectivity/staticlibs/testutils",
|
|
|
|
|
"//packages/modules/Connectivity/staticlibs/tests:__subpackages__",
|
2021-08-17 23:59:09 +08:00
|
|
|
"//packages/modules/Connectivity/Tethering/tests:__subpackages__",
|
2021-06-07 13:10:49 +09:00
|
|
|
"//packages/modules/Connectivity/tests:__subpackages__",
|
2023-12-04 12:53:39 +08:00
|
|
|
"//packages/modules/Connectivity/thread/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
|
|
|
],
|
2024-02-02 14:30:01 +09:00
|
|
|
stub_only_libs: [
|
|
|
|
|
"framework-connectivity.stubs.module_lib",
|
|
|
|
|
"sdk_module-lib_current_framework-wifi",
|
|
|
|
|
],
|
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"],
|
2024-01-31 11:08:57 +00:00
|
|
|
lint: {
|
|
|
|
|
strict_updatability_linting: true,
|
2024-06-20 09:05:51 +02:00
|
|
|
baseline_filename: "lint-baseline.xml",
|
2024-01-31 11:08:57 +00:00
|
|
|
},
|
2024-02-15 15:21:39 +09:00
|
|
|
aconfig_declarations: [
|
|
|
|
|
"com.android.net.flags-aconfig",
|
|
|
|
|
],
|
2023-01-16 18:02:30 +00:00
|
|
|
}
|
|
|
|
|
|
2023-01-12 11:41:54 +00:00
|
|
|
java_library {
|
2024-01-31 11:08:57 +00:00
|
|
|
name: "framework-tethering-pre-jarjar",
|
|
|
|
|
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: [
|
2024-01-31 11:08:57 +00:00
|
|
|
":framework-tethering-srcs",
|
2023-01-12 11:41:54 +00:00
|
|
|
],
|
2024-02-02 14:30:01 +09:00
|
|
|
libs: [
|
|
|
|
|
"framework-connectivity.stubs.module_lib",
|
|
|
|
|
"sdk_module-lib_current_framework-wifi",
|
|
|
|
|
],
|
2024-08-15 12:34:15 +09:00
|
|
|
static_libs: [
|
|
|
|
|
"com.android.net.flags-aconfig-java",
|
|
|
|
|
],
|
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",
|
2024-02-02 14:30:01 +09:00
|
|
|
"packages/modules/Wifi/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
|
|
|
],
|
2024-01-31 11:08:57 +00:00
|
|
|
path: "src",
|
2019-09-30 14:40:57 +08:00
|
|
|
}
|