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 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_library_shared { 23 name: "libservice-connectivity", 24 min_sdk_version: "30", 25 cflags: [ 26 "-Wall", 27 "-Werror", 28 "-Wno-unused-parameter", 29 "-Wthread-safety", 30 ], 31 srcs: [ 32 "jni/com_android_server_TestNetworkService.cpp", 33 "jni/onload.cpp", 34 ], 35 stl: "libc++_static", 36 header_libs: [ 37 "libbase_headers", 38 ], 39 shared_libs: [ 40 "liblog", 41 "libnativehelper", 42 ], 43 apex_available: [ 44 "com.android.tethering", 45 ], 46} 47 48java_library { 49 name: "service-connectivity-pre-jarjar", 50 sdk_version: "system_server_current", 51 min_sdk_version: "30", 52 srcs: [ 53 "src/**/*.java", 54 ":framework-connectivity-shared-srcs", 55 ":services-connectivity-shared-srcs", 56 // TODO: move to net-utils-device-common, enable shrink optimization to avoid extra classes 57 ":net-module-utils-srcs", 58 ], 59 libs: [ 60 "framework-annotations-lib", 61 "framework-connectivity.impl", 62 "framework-tethering.stubs.module_lib", 63 "framework-wifi.stubs.module_lib", 64 "unsupportedappusage", 65 "ServiceConnectivityResources", 66 ], 67 static_libs: [ 68 "dnsresolver_aidl_interface-V9-java", 69 "modules-utils-os", 70 "net-utils-device-common", 71 "net-utils-framework-common", 72 "netd-client", 73 "netlink-client", 74 "networkstack-client", 75 "PlatformProperties", 76 "service-connectivity-protos", 77 ], 78 apex_available: [ 79 "com.android.tethering", 80 ], 81} 82 83java_library { 84 name: "service-connectivity-protos", 85 sdk_version: "system_current", 86 min_sdk_version: "30", 87 proto: { 88 type: "nano", 89 }, 90 srcs: [ 91 ":system-messages-proto-src", 92 ], 93 libs: ["libprotobuf-java-nano"], 94 apex_available: [ 95 "com.android.tethering", 96 ], 97} 98 99java_library { 100 name: "service-connectivity", 101 sdk_version: "system_server_current", 102 min_sdk_version: "30", 103 installable: true, 104 static_libs: [ 105 "service-connectivity-pre-jarjar", 106 ], 107 jarjar_rules: "jarjar-rules.txt", 108 apex_available: [ 109 "com.android.tethering", 110 ], 111} 112 113filegroup { 114 name: "connectivity-jarjar-rules", 115 srcs: ["jarjar-rules.txt"], 116 visibility: ["//packages/modules/Connectivity:__subpackages__"], 117} 118