blob: 481557b8633759b21ade970e422cd95bc38bccfc [file] [log] [blame]
markchien932da862019-08-27 10:19:38 +08001//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
markchien932da862019-08-27 10:19:38 +080015
Bob Badour97e6be22021-02-12 14:45:04 -080016package {
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Paul Duffin2dae2722020-05-13 12:28:49 +010020java_sdk_library {
markchien9d353822019-12-16 20:15:20 +080021 name: "framework-tethering",
Paul Duffin2dae2722020-05-13 12:28:49 +010022 defaults: ["framework-module-defaults"],
Baligh Uddinf814b9b2020-10-29 02:11:55 +000023 impl_library_visibility: [
Baligh Uddinf814b9b2020-10-29 02:11:55 +000024 "//packages/modules/Connectivity/Tethering:__subpackages__",
Igor Chernyshev9dac6602022-12-13 19:28:32 -080025 "//packages/modules/Connectivity/framework",
26 "//packages/modules/Connectivity/framework-t",
27 "//packages/modules/Connectivity/service",
28 "//packages/modules/Connectivity/service-t",
markchien2fbd3e72021-08-17 23:59:09 +080029
30 // Using for test only
31 "//cts/tests/netlegacy22.api",
32 "//external/sl4a:__subpackages__",
Remi NGUYEN VANbdaa3512022-02-02 20:06:56 +090033 "//frameworks/base/core/tests/bandwidthtests",
34 "//frameworks/base/core/tests/benchmarks",
35 "//frameworks/base/core/tests/utillib",
markchien2fbd3e72021-08-17 23:59:09 +080036 "//frameworks/base/packages/Connectivity/tests:__subpackages__",
Aaron Huang7174ac32022-01-26 00:43:10 +080037 "//frameworks/base/tests/vcn",
markchien2fbd3e72021-08-17 23:59:09 +080038 "//frameworks/libs/net/common/testutils",
39 "//frameworks/libs/net/common/tests:__subpackages__",
40 "//frameworks/opt/telephony/tests/telephonytests",
41 "//packages/modules/CaptivePortalLogin/tests",
42 "//packages/modules/Connectivity/Tethering/tests:__subpackages__",
Remi NGUYEN VANfe20e132021-06-07 13:10:49 +090043 "//packages/modules/Connectivity/tests:__subpackages__",
Aaron Huang7174ac32022-01-26 00:43:10 +080044 "//packages/modules/IPsec/tests/iketests",
markchien2fbd3e72021-08-17 23:59:09 +080045 "//packages/modules/NetworkStack/tests:__subpackages__",
46 "//packages/modules/Wifi/service/tests/wifitests",
Baligh Uddinf814b9b2020-10-29 02:11:55 +000047 ],
Paul Duffin2a8d3802020-06-02 11:36:56 +010048
Anton Hansson9aed1382020-08-18 12:52:51 +010049 srcs: [":framework-tethering-srcs"],
Remi NGUYEN VANf2010392021-03-24 22:50:35 +090050 libs: ["framework-connectivity.stubs.module_lib"],
51 stub_only_libs: ["framework-connectivity.stubs.module_lib"],
Remi NGUYEN VAN74b27442021-01-15 20:26:28 +090052 aidl: {
53 include_dirs: [
Baligh Uddin36847132021-05-23 16:38:40 +000054 "packages/modules/Connectivity/framework/aidl-export",
Remi NGUYEN VAN74b27442021-01-15 20:26:28 +090055 ],
56 },
Paul Duffin2dae2722020-05-13 12:28:49 +010057
markchien9d353822019-12-16 20:15:20 +080058 jarjar_rules: "jarjar-rules.txt",
59 installable: true,
60
Jiyong Park1eb89332020-01-06 13:30:59 +090061 hostdex: true, // for hiddenapi check
Jiyong Park1eb89332020-01-06 13:30:59 +090062 apex_available: ["com.android.tethering"],
Vladimir Markoeae43d42020-03-25 11:19:36 +000063 permitted_packages: ["android.net"],
Nikita Ioffe583e35a2020-10-31 22:41:41 +000064 min_sdk_version: "30",
Chiachang Wang3bc52762021-11-25 14:17:57 +080065 lint: { strict_updatability_linting: true },
markchien932da862019-08-27 10:19:38 +080066}
markchienee6ad372019-09-30 14:40:57 +080067
markchienee6ad372019-09-30 14:40:57 +080068filegroup {
markchien9d353822019-12-16 20:15:20 +080069 name: "framework-tethering-srcs",
70 srcs: [
Igor Chernyshev9dac6602022-12-13 19:28:32 -080071 "src/**/*.aidl",
72 "src/**/*.java",
markchien9d353822019-12-16 20:15:20 +080073 ],
74 path: "src"
markchienee6ad372019-09-30 14:40:57 +080075}