blob: b595ef2727011298e5fbfaa43e8a7aa922b799d1 [file] [log] [blame]
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +09001//
2// Copyright (C) 2020 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.
15//
16
Bob Badour6c7ed9d2021-02-12 17:07:05 -080017package {
18 // See: http://go/android-license-faq
Baligh Uddin36847132021-05-23 16:38:40 +000019 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour6c7ed9d2021-02-12 17:07:05 -080020}
21
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000022cc_library_shared {
23 name: "libservice-connectivity",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +000024 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090025 cflags: [
26 "-Wall",
27 "-Werror",
28 "-Wno-unused-parameter",
29 "-Wthread-safety",
30 ],
31 srcs: [
32 "jni/com_android_server_TestNetworkService.cpp",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000033 "jni/onload.cpp",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090034 ],
Remi NGUYEN VAN4be92df2021-03-24 01:49:39 +000035 stl: "libc++_static",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +000036 header_libs: [
37 "libbase_headers",
38 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090039 shared_libs: [
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090040 "liblog",
41 "libnativehelper",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090042 ],
Pete Bentleyb1456112021-01-07 13:51:18 +000043 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000044 "com.android.tethering",
Pete Bentleyb1456112021-01-07 13:51:18 +000045 ],
46}
47
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090048java_library {
Aaron Huang63338842021-01-08 18:32:00 +080049 name: "service-connectivity-pre-jarjar",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +000050 sdk_version: "system_server_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +000051 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090052 srcs: [
Remi NGUYEN VANcdb45f82021-05-13 12:53:15 +000053 "src/**/*.java",
Aaron Huang63338842021-01-08 18:32:00 +080054 ":framework-connectivity-shared-srcs",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +000055 ":services-connectivity-shared-srcs",
Remi NGUYEN VAN58cd2452021-07-07 17:45:45 +090056 // TODO: move to net-utils-device-common
57 ":connectivity-module-utils-srcs",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090058 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090059 libs: [
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +000060 "framework-annotations-lib",
61 "framework-connectivity.impl",
62 "framework-tethering.stubs.module_lib",
63 "framework-wifi.stubs.module_lib",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090064 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +090065 "ServiceConnectivityResources",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090066 ],
67 static_libs: [
Remi NGUYEN VAN30bebea2021-08-06 14:15:31 +090068 "dnsresolver_aidl_interface-V9-java",
Remi NGUYEN VAN58cd2452021-07-07 17:45:45 +090069 "modules-utils-build",
William Escandeea9e22e2021-08-19 12:26:52 +020070 "modules-utils-shell-command-handler",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090071 "net-utils-device-common",
Xiao Ma09c07272021-07-01 14:00:34 +000072 "net-utils-device-common-netlink",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090073 "net-utils-framework-common",
lucaslinef337532021-01-18 11:58:24 +080074 "netd-client",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +000075 "networkstack-client",
lifrc0d25c12021-03-09 17:24:46 +080076 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090077 "service-connectivity-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090078 ],
79 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +000080 "com.android.tethering",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090081 ],
Chiachang Wang3bc52762021-11-25 14:17:57 +080082 lint: { strict_updatability_linting: true },
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +090083}
Aaron Huang63338842021-01-08 18:32:00 +080084
85java_library {
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090086 name: "service-connectivity-protos",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +000087 sdk_version: "system_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +000088 min_sdk_version: "30",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090089 proto: {
90 type: "nano",
91 },
92 srcs: [
93 ":system-messages-proto-src",
94 ],
95 libs: ["libprotobuf-java-nano"],
96 apex_available: [
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +090097 "com.android.tethering",
98 ],
Chiachang Wang3bc52762021-11-25 14:17:57 +080099 lint: { strict_updatability_linting: true },
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900100}
101
102java_library {
Aaron Huang63338842021-01-08 18:32:00 +0800103 name: "service-connectivity",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000104 sdk_version: "system_server_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000105 min_sdk_version: "30",
Aaron Huang63338842021-01-08 18:32:00 +0800106 installable: true,
lifrc0d25c12021-03-09 17:24:46 +0800107 static_libs: [
Aaron Huang63338842021-01-08 18:32:00 +0800108 "service-connectivity-pre-jarjar",
109 ],
110 jarjar_rules: "jarjar-rules.txt",
111 apex_available: [
Aaron Huang63338842021-01-08 18:32:00 +0800112 "com.android.tethering",
113 ],
Chiachang Wang3bc52762021-11-25 14:17:57 +0800114 lint: { strict_updatability_linting: true },
Aaron Huang63338842021-01-08 18:32:00 +0800115}
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900116
117filegroup {
118 name: "connectivity-jarjar-rules",
119 srcs: ["jarjar-rules.txt"],
120 visibility: ["//packages/modules/Connectivity:__subpackages__"],
121}