Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 1 | // |
| 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 Badour | 6c7ed9d | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "frameworks_base_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["frameworks_base_license"], |
| 24 | } |
| 25 | |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 26 | cc_library_shared { |
| 27 | name: "libservice-connectivity", |
Remi NGUYEN VAN | b36fb99 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 28 | min_sdk_version: "30", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Werror", |
| 32 | "-Wno-unused-parameter", |
| 33 | "-Wthread-safety", |
| 34 | ], |
| 35 | srcs: [ |
| 36 | "jni/com_android_server_TestNetworkService.cpp", |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 37 | "jni/onload.cpp", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 38 | ], |
Remi NGUYEN VAN | 47cc651 | 2021-03-24 01:49:39 +0000 | [diff] [blame] | 39 | stl: "libc++_static", |
Remi NGUYEN VAN | b36fb99 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 40 | header_libs: [ |
| 41 | "libbase_headers", |
| 42 | ], |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 43 | shared_libs: [ |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 44 | "liblog", |
| 45 | "libnativehelper", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 46 | ], |
Pete Bentley | b145611 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 47 | apex_available: [ |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 48 | "com.android.tethering", |
Pete Bentley | b145611 | 2021-01-07 13:51:18 +0000 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 52 | java_library { |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 53 | name: "service-connectivity-pre-jarjar", |
Remi NGUYEN VAN | f19e30d | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 54 | sdk_version: "system_server_current", |
Remi NGUYEN VAN | b36fb99 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 55 | min_sdk_version: "30", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 56 | srcs: [ |
| 57 | ":connectivity-service-srcs", |
Remi NGUYEN VAN | f19e30d | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 58 | ":framework-connectivity-shared-srcs", |
| 59 | ":services-connectivity-shared-srcs", |
| 60 | // TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes |
| 61 | ":net-module-utils-srcs", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 62 | ], |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 63 | libs: [ |
Remi NGUYEN VAN | f19e30d | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 64 | // TODO (b/183097033) remove once system_server_current includes core_current |
| 65 | "stable.core.platform.api.stubs", |
| 66 | "android_system_server_stubs_current", |
| 67 | "framework-annotations-lib", |
| 68 | "framework-connectivity.impl", |
| 69 | "framework-tethering.stubs.module_lib", |
| 70 | "framework-wifi.stubs.module_lib", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 71 | "unsupportedappusage", |
Remi NGUYEN VAN | 907ebd4 | 2021-03-08 22:05:03 +0900 | [diff] [blame] | 72 | "ServiceConnectivityResources", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 73 | ], |
| 74 | static_libs: [ |
lucaslin | 593a1b4 | 2021-03-29 18:56:47 +0800 | [diff] [blame] | 75 | "dnsresolver_aidl_interface-V8-java", |
Remi NGUYEN VAN | 96a931b | 2021-03-02 03:28:50 +0000 | [diff] [blame] | 76 | "modules-utils-os", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 77 | "net-utils-device-common", |
| 78 | "net-utils-framework-common", |
lucaslin | ef33753 | 2021-01-18 11:58:24 +0800 | [diff] [blame] | 79 | "netd-client", |
Remi NGUYEN VAN | f19e30d | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 80 | "netlink-client", |
| 81 | "networkstack-client", |
lifr | c0d25c1 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 82 | "PlatformProperties", |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 83 | "service-connectivity-protos", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 84 | ], |
| 85 | apex_available: [ |
Remi NGUYEN VAN | eaa9658 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 86 | "com.android.tethering", |
Remi NGUYEN VAN | 59262cb | 2020-12-21 18:40:08 +0900 | [diff] [blame] | 87 | ], |
| 88 | } |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 89 | |
| 90 | java_library { |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 91 | name: "service-connectivity-protos", |
Remi NGUYEN VAN | f19e30d | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 92 | sdk_version: "system_current", |
Remi NGUYEN VAN | b36fb99 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 93 | min_sdk_version: "30", |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 94 | proto: { |
| 95 | type: "nano", |
| 96 | }, |
| 97 | srcs: [ |
| 98 | ":system-messages-proto-src", |
| 99 | ], |
| 100 | libs: ["libprotobuf-java-nano"], |
| 101 | apex_available: [ |
Remi NGUYEN VAN | d8bc0fa | 2021-03-11 15:41:52 +0900 | [diff] [blame] | 102 | "com.android.tethering", |
| 103 | ], |
| 104 | } |
| 105 | |
| 106 | java_library { |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 107 | name: "service-connectivity", |
Remi NGUYEN VAN | f19e30d | 2021-03-22 10:25:12 +0000 | [diff] [blame] | 108 | sdk_version: "system_server_current", |
Remi NGUYEN VAN | b36fb99 | 2021-03-23 14:45:58 +0000 | [diff] [blame] | 109 | min_sdk_version: "30", |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 110 | installable: true, |
lifr | c0d25c1 | 2021-03-09 17:24:46 +0800 | [diff] [blame] | 111 | static_libs: [ |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 112 | "service-connectivity-pre-jarjar", |
| 113 | ], |
| 114 | jarjar_rules: "jarjar-rules.txt", |
| 115 | apex_available: [ |
Aaron Huang | 6333884 | 2021-01-08 18:32:00 +0800 | [diff] [blame] | 116 | "com.android.tethering", |
| 117 | ], |
| 118 | } |