blob: fce436079beaca62dfc4960454f27314009fc3fd [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__",
25 ],
Paul Duffin2a8d3802020-06-02 11:36:56 +010026
Anton Hansson9aed1382020-08-18 12:52:51 +010027 srcs: [":framework-tethering-srcs"],
Remi NGUYEN VAN02b94fa2021-03-24 22:50:35 +090028 libs: ["framework-connectivity.stubs.module_lib"],
29 stub_only_libs: ["framework-connectivity.stubs.module_lib"],
Remi NGUYEN VANcfe67632021-01-15 20:26:28 +090030 aidl: {
31 include_dirs: [
Baligh Uddin2afd0982021-05-24 03:50:01 +000032 "packages/modules/Connectivity/framework/aidl-export",
Remi NGUYEN VANcfe67632021-01-15 20:26:28 +090033 ],
34 },
Paul Duffin2dae2722020-05-13 12:28:49 +010035
markchien9d353822019-12-16 20:15:20 +080036 jarjar_rules: "jarjar-rules.txt",
37 installable: true,
38
Jiyong Park1eb89332020-01-06 13:30:59 +090039 hostdex: true, // for hiddenapi check
Jiyong Park1eb89332020-01-06 13:30:59 +090040 apex_available: ["com.android.tethering"],
Vladimir Markoeae43d42020-03-25 11:19:36 +000041 permitted_packages: ["android.net"],
Nikita Ioffe583e35a2020-10-31 22:41:41 +000042 min_sdk_version: "30",
markchien932da862019-08-27 10:19:38 +080043}
markchienee6ad372019-09-30 14:40:57 +080044
markchienee6ad372019-09-30 14:40:57 +080045filegroup {
markchien9d353822019-12-16 20:15:20 +080046 name: "framework-tethering-srcs",
47 srcs: [
Remi NGUYEN VAN3662c1b2020-01-20 21:26:34 +090048 "src/android/net/TetheredClient.aidl",
49 "src/android/net/TetheredClient.java",
markchien9d353822019-12-16 20:15:20 +080050 "src/android/net/TetheringManager.java",
markchien249752d2020-01-21 13:11:06 +080051 "src/android/net/TetheringConstants.java",
markchien9d353822019-12-16 20:15:20 +080052 "src/android/net/IIntResultListener.aidl",
53 "src/android/net/ITetheringEventCallback.aidl",
54 "src/android/net/ITetheringConnector.aidl",
markchien249752d2020-01-21 13:11:06 +080055 "src/android/net/TetheringCallbackStartedParcel.aidl",
markchien9d353822019-12-16 20:15:20 +080056 "src/android/net/TetheringConfigurationParcel.aidl",
markchienf6761bd2020-01-20 19:31:56 +080057 "src/android/net/TetheringRequestParcel.aidl",
markchien9d353822019-12-16 20:15:20 +080058 "src/android/net/TetherStatesParcel.aidl",
markchien9935dbe2021-05-17 20:43:41 +080059 "src/android/net/TetheringInterface.aidl",
60 "src/android/net/TetheringInterface.java",
markchien9d353822019-12-16 20:15:20 +080061 ],
62 path: "src"
markchienee6ad372019-09-30 14:40:57 +080063}