blob: a0241f0af92f7b2713d3ffd0ccec31297e8cb392 [file] [log] [blame]
Remi NGUYEN VANded23152018-12-07 16:52:24 +09001//
2// Copyright (C) 2018 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
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090017// The network stack can be compiled using system_current (non-finalized) SDK, or finalized system_X
18// SDK. There is also a variant that uses system_current SDK and runs in the system process
19// (InProcessNetworkStack). The following structure is used to create the build rules:
20//
21// NetworkStackAndroidLibraryDefaults <-- common defaults for android libs
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +090022// / \
23// +NetworkStackApiStableShims --> / \ <-- +NetworkStackApiCurrentShims
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +090024// +NetworkStackReleaseApiLevel / \ +NetworkStackDevApiLevel
Lorenzo Colittid6709182021-02-22 01:38:39 +090025// +jarjar apishim.api[latest].* / \
26// to apishim.* / \
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +090027// / \
Lorenzo Colittid6709182021-02-22 01:38:39 +090028// / \
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +090029// / \ android libs w/ all code
Lorenzo Colittid6709182021-02-22 01:38:39 +090030// / <- +module src/ -> \ (also used in unit tests)
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +090031// / \ |
32// NetworkStackApiStableLib NetworkStackApiCurrentLib <--*
33// | |
34// | <-- +NetworkStackAppDefaults --> |
35// | (APK build params) |
36// | |
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +090037// | <-- +NetworkStackReleaseApiLevel | <-- +NetworkStackDevApiLevel
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +090038// | |
39// | |
40// NetworkStackApiStable NetworkStack, InProcessNetworkStack, <-- APKs
41// TestNetworkStack
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090042
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090043// Common defaults to define SDK level
Bob Badourdd486972021-02-12 15:05:06 -080044package {
45 default_applicable_licenses: ["Android-Apache-2.0"],
46}
47
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090048java_defaults {
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +090049 name: "NetworkStackDevApiLevel",
Remi NGUYEN VAN5b3ea2f2020-11-24 02:43:44 +000050 min_sdk_version: "29",
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090051 sdk_version: "system_current",
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090052}
53
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090054java_defaults {
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +090055 name: "NetworkStackReleaseApiLevel",
Remi NGUYEN VAN38dc8342020-05-18 18:09:28 +090056 sdk_version: "system_30",
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +090057 min_sdk_version: "29",
Remi NGUYEN VAN67933142020-05-07 18:53:35 +090058 target_sdk_version: "30",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090059}
60
Lorenzo Colittid6709182021-02-22 01:38:39 +090061// Libraries for the API shims
62java_defaults {
63 name: "NetworkStackShimsDefaults",
64 libs: [
65 "androidx.annotation_annotation",
66 "networkstack-client",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090067 ],
Lorenzo Colitti0ef45d42021-03-04 09:35:46 +090068 apex_available: [
69 "com.android.tethering",
70 "//apex_available:platform", // For InProcessNetworkStack and InProcessTethering
71 ],
Lorenzo Colittid6709182021-02-22 01:38:39 +090072 min_sdk_version: "29",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090073}
74
Lorenzo Colittid6709182021-02-22 01:38:39 +090075// Common shim code. This includes the shim interface definitions themselves, and things like
76// ShimUtils and UnsupportedApiLevelException. Compiles against system_current because ShimUtils
77// needs access to all Build.VERSION_CODES.*, which by definition are only in the newest SDK.
78// TODO: consider moving ShimUtils into a library (or removing it in favour of SdkLevel) and compile
79// this target against the lowest-supported SDK (currently 29).
80java_library {
81 name: "NetworkStackShimsCommon",
82 defaults: ["NetworkStackShimsDefaults"],
83 srcs: ["apishim/common/**/*.java"],
84 sdk_version: "system_current",
85 visibility: ["//visibility:private"],
86}
87
88// Each level of the shims (29, 30, ...) is its own java_library compiled against the corresponding
89// system_X SDK. this ensures that each shim can only use SDK classes that exist in its SDK level.
90java_library {
91 name: "NetworkStackApi29Shims",
92 defaults: ["NetworkStackShimsDefaults"],
93 srcs: ["apishim/29/**/*.java"],
94 libs: [
95 "NetworkStackShimsCommon",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090096 ],
Lorenzo Colittid6709182021-02-22 01:38:39 +090097 sdk_version: "system_29",
98 visibility: ["//visibility:private"],
99}
100
101java_library {
102 name: "NetworkStackApi30Shims",
103 defaults: ["NetworkStackShimsDefaults"],
104 srcs: [
105 "apishim/30/**/*.java",
106 ],
107 libs: [
108 "NetworkStackShimsCommon",
109 "NetworkStackApi29Shims",
110 ],
111 sdk_version: "system_30",
112 visibility: ["//visibility:private"],
Pedro Loureiro633685e2021-02-25 15:32:07 +0000113 lint: {
114 baseline_filename: "lint-baseline-api-30-shims.xml",
115 },
Lorenzo Colittid6709182021-02-22 01:38:39 +0900116}
117
118// Shims for APIs being added to the current development version of Android. These APIs are not
Lorenzo Colitti52f7eb12021-02-24 17:10:56 +0900119// stable and have no defined version number. These could be called 10000, but they use the next
120// integer so if the next SDK release happens to use that integer, we don't need to rename them.
Lorenzo Colittid6709182021-02-22 01:38:39 +0900121java_library {
122 name: "NetworkStackApi31Shims",
123 defaults: ["NetworkStackShimsDefaults"],
124 srcs: [
125 "apishim/31/**/*.java",
126 ],
127 libs: [
128 "NetworkStackShimsCommon",
129 "NetworkStackApi29Shims",
130 "NetworkStackApi30Shims",
Chiachang Wangffe87162021-02-26 17:36:52 +0800131 "framework-connectivity",
Lorenzo Colittid6709182021-02-22 01:38:39 +0900132 ],
Chiachang Wangffe87162021-02-26 17:36:52 +0800133 sdk_version: "module_current",
Lorenzo Colittid6709182021-02-22 01:38:39 +0900134 visibility: ["//visibility:private"],
135}
136
137// API current uses the API current shims directly.
138// The current (in-progress) shims are in the com.android.networkstack.apishim package and are
139// called directly by the networkstack code.
140java_library {
141 name: "NetworkStackApiCurrentShims",
142 defaults: ["NetworkStackShimsDefaults"],
143 static_libs: [
144 "NetworkStackShimsCommon",
145 "NetworkStackApi29Shims",
146 "NetworkStackApi30Shims",
147 "NetworkStackApi31Shims",
148 ],
Chiachang Wangffe87162021-02-26 17:36:52 +0800149 sdk_version: "module_current",
Chiachang Wanga331c3a2021-02-26 18:01:18 +0800150 visibility: [
Lorenzo Colitti0ef45d42021-03-04 09:35:46 +0900151 "//packages/modules/Connectivity/Tethering",
Chiachang Wanga331c3a2021-02-26 18:01:18 +0800152 "//packages/modules/Connectivity/tests/cts/net",
153 ],
Lorenzo Colittid6709182021-02-22 01:38:39 +0900154}
155
156// API stable uses jarjar to rename the latest stable apishim package from
157// com.android.networkstack.apishim.apiXX to com.android.networkstack.apishim, which is called by
158// the networkstack code.
159java_library {
160 name: "NetworkStackApiStableShims",
161 defaults: ["NetworkStackShimsDefaults"],
162 static_libs: [
163 "NetworkStackShimsCommon",
164 "NetworkStackApi29Shims",
165 "NetworkStackApi30Shims",
166 ],
167 jarjar_rules: "apishim/jarjar-rules-compat.txt",
168 sdk_version: "system_30",
Chiachang Wanga331c3a2021-02-26 18:01:18 +0800169 visibility: [
Lorenzo Colitti0ef45d42021-03-04 09:35:46 +0900170 "//packages/modules/Connectivity/Tethering",
Chiachang Wanga331c3a2021-02-26 18:01:18 +0800171 "//packages/modules/Connectivity/tests/cts/net",
172 ],
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900173}
174
175// Common defaults for android libraries containing network stack code, used to compile variants of
176// the network stack in the system process and in the network_stack process
177java_defaults {
178 name: "NetworkStackAndroidLibraryDefaults",
Remi NGUYEN VANded23152018-12-07 16:52:24 +0900179 srcs: [
Remi NGUYEN VAN82b4b422019-01-20 09:35:10 +0900180 ":framework-networkstack-shared-srcs",
Lorenzo Colittid6709182021-02-22 01:38:39 +0900181 ":networkstack-module-utils-srcs",
Remi NGUYEN VANded23152018-12-07 16:52:24 +0900182 ],
Artur Satayev0eb158a2019-12-10 12:54:01 +0000183 libs: ["unsupportedappusage"],
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +0900184 static_libs: [
Niklas Lindgren0c904882018-12-07 11:08:04 +0100185 "androidx.annotation_annotation",
Jeongik Cha848a5b52021-01-26 22:35:03 +0900186 "netd_aidl_interface-lateststable-java",
Remi NGUYEN VAN1fc930c2019-08-09 13:23:47 +0900187 "netlink-client",
Remi NGUYEN VANbbb97032019-08-08 15:53:54 +0900188 "networkstack-client",
Remi NGUYEN VAN5b00d422020-06-08 15:34:22 +0900189 "net-utils-framework-common",
Remi NGUYEN VAN84ba8152020-06-22 18:50:20 +0900190 // See note on statsprotos when adding/updating proto build rules
Chiachang Wang8b5f84a2019-02-22 11:13:07 +0800191 "datastallprotosnano",
lifrcb15db32020-05-21 20:32:36 +0800192 "statsprotos",
paulhu5982eff2019-03-29 19:21:30 +0800193 "captiveportal-lib",
Chalard Jean6f675212020-06-25 23:41:16 +0900194 "net-utils-device-common",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +0900195 ],
Kun Niuf3b69042019-07-01 17:03:20 -0700196 plugins: ["java_api_finder"],
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +0900197}
198
Lorenzo Colittid6709182021-02-22 01:38:39 +0900199// The versions of the android library containing network stack code compiled for each SDK variant.
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900200android_library {
201 name: "NetworkStackApiCurrentLib",
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900202 defaults: ["NetworkStackDevApiLevel", "NetworkStackAndroidLibraryDefaults"],
Muhammad Qureshiaa428cc2020-01-29 11:15:16 -0800203 srcs: [
Muhammad Qureshiaa428cc2020-01-29 11:15:16 -0800204 "src/**/*.java",
Muhammad Qureshicd7415e2021-02-11 01:54:48 +0000205 ":statslog-networkstack-java-gen-current"
Muhammad Qureshiaa428cc2020-01-29 11:15:16 -0800206 ],
Lorenzo Colittid6709182021-02-22 01:38:39 +0900207 static_libs: ["NetworkStackApiCurrentShims"],
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +0900208 manifest: "AndroidManifestBase.xml",
Lorenzo Colitti55672ee2021-03-01 16:10:19 +0900209 visibility: [
210 "//frameworks/base/tests/net/integration",
211 "//packages/modules/Connectivity/Tethering/tests/integration",
212 "//packages/modules/Connectivity/tests/cts/net",
213 "//packages/modules/NetworkStack/tests/unit",
214 "//packages/modules/NetworkStack/tests/integration",
215 ],
Pedro Loureiro633685e2021-02-25 15:32:07 +0000216 lint: {
217 baseline_filename: "lint-baseline-current-lib.xml",
218 },
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +0900219}
220
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900221android_library {
222 name: "NetworkStackApiStableLib",
Lorenzo Colittid6709182021-02-22 01:38:39 +0900223 defaults: ["NetworkStackReleaseApiLevel", "NetworkStackAndroidLibraryDefaults"],
Muhammad Qureshiaa428cc2020-01-29 11:15:16 -0800224 srcs: [
225 "src/**/*.java",
Muhammad Qureshicd7415e2021-02-11 01:54:48 +0000226 ":statslog-networkstack-java-gen-stable",
Muhammad Qureshiaa428cc2020-01-29 11:15:16 -0800227 ],
Lorenzo Colittid6709182021-02-22 01:38:39 +0900228 static_libs: ["NetworkStackApiStableShims"],
Remi NGUYEN VAN794a4b52019-09-06 13:00:33 +0900229 manifest: "AndroidManifestBase.xml",
Lorenzo Colitti55672ee2021-03-01 16:10:19 +0900230 visibility: [
Remi NGUYEN VAN170801b2021-05-11 15:09:29 +0000231 "//frameworks/base/packages/Connectivity/tests/integration",
Lorenzo Colitti55672ee2021-03-01 16:10:19 +0900232 "//frameworks/base/tests/net/integration",
233 "//packages/modules/Connectivity/Tethering/tests/integration",
234 "//packages/modules/Connectivity/tests/cts/net",
Remi NGUYEN VAN170801b2021-05-11 15:09:29 +0000235 "//packages/modules/Connectivity/tests/integration",
Lorenzo Colitti55672ee2021-03-01 16:10:19 +0900236 "//packages/modules/NetworkStack/tests/unit",
237 "//packages/modules/NetworkStack/tests/integration",
238 ],
Pedro Loureiro633685e2021-02-25 15:32:07 +0000239 lint: {
240 baseline_filename: "lint-baseline-stable-lib.xml",
241 },
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900242}
243
Lorenzo Colittib891b5e2020-02-05 16:48:09 +0900244filegroup {
245 name: "NetworkStackJarJarRules",
246 srcs: ["jarjar-rules-shared.txt"],
247 visibility: [
248 "//packages/modules/NetworkStack/tests/unit",
249 "//packages/modules/NetworkStack/tests/integration",
Baligh Uddin1151e2e2020-10-29 02:12:29 +0000250 "//packages/modules/Connectivity/Tethering/tests/integration",
Lorenzo Colittib891b5e2020-02-05 16:48:09 +0900251 ]
252}
253
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900254// Common defaults for compiling the actual APK, based on the NetworkStackApiXBase android libraries
255java_defaults {
256 name: "NetworkStackAppDefaults",
257 privileged: true,
258 jni_libs: [
259 "libnativehelper_compat_libc++",
260 "libnetworkstackutilsjni",
261 ],
262 // Resources already included in NetworkStackBase
263 resource_dirs: [],
Lorenzo Colittib891b5e2020-02-05 16:48:09 +0900264 jarjar_rules: ":NetworkStackJarJarRules",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900265 use_embedded_native_libs: true,
266 optimize: {
267 proguard_flags_files: ["proguard.flags"],
268 },
269}
270
271// Non-updatable network stack running in the system server process for devices not using the module
272android_app {
273 name: "InProcessNetworkStack",
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900274 defaults: [ "NetworkStackAppDefaults", "NetworkStackDevApiLevel"],
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900275 static_libs: ["NetworkStackApiCurrentLib"],
276 certificate: "platform",
277 manifest: "AndroidManifest_InProcess.xml",
278 // InProcessNetworkStack is a replacement for NetworkStack
Remi NGUYEN VANec9d8a62019-11-11 03:52:43 +0000279 overrides: ["NetworkStack", "NetworkStackNext"],
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900280 // The permission configuration *must* be included to ensure security of the device
281 // The InProcessNetworkStack goes together with the PlatformCaptivePortalLogin, which replaces
282 // the default CaptivePortalLogin.
283 required: ["PlatformNetworkPermissionConfig", "PlatformCaptivePortalLogin"],
284}
285
Remi NGUYEN VAN255d4912020-02-05 13:42:45 +0900286// Pre-merge the AndroidManifest for NetworkStackNext, so that its manifest can be merged on top
287android_library {
288 name: "NetworkStackNextManifestBase",
289 defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"],
290 static_libs: ["NetworkStackApiCurrentLib"],
291 manifest: "AndroidManifest.xml"
292}
293
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900294// NetworkStack build targeting the current API release, for testing on in-development SDK
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900295android_app {
Remi NGUYEN VANec9d8a62019-11-11 03:52:43 +0000296 name: "NetworkStackNext",
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900297 defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"],
Remi NGUYEN VAN255d4912020-02-05 13:42:45 +0900298 static_libs: ["NetworkStackNextManifestBase"],
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900299 certificate: "networkstack",
Remi NGUYEN VAN255d4912020-02-05 13:42:45 +0900300 manifest: "AndroidManifest_Next.xml",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900301 // The permission configuration *must* be included to ensure security of the device
302 required: ["NetworkPermissionConfig"],
303}
304
305// Updatable network stack for finalized API
306android_app {
Remi NGUYEN VANec9d8a62019-11-11 03:52:43 +0000307 name: "NetworkStack",
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900308 defaults: ["NetworkStackAppDefaults", "NetworkStackReleaseApiLevel"],
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900309 static_libs: ["NetworkStackApiStableLib"],
310 certificate: "networkstack",
311 manifest: "AndroidManifest.xml",
312 // The permission configuration *must* be included to ensure security of the device
313 required: ["NetworkPermissionConfig"],
Artur Satayev862a1a12020-04-09 11:35:52 +0100314 updatable: true,
Remi NGUYEN VAN99645762019-07-11 14:33:15 +0900315}
316
paulhue455e2a2019-03-29 17:22:20 +0800317cc_library_shared {
318 name: "libnetworkstackutilsjni",
319 srcs: [
320 "jni/network_stack_utils_jni.cpp"
321 ],
Jooyung Hand3fb9f52020-04-29 02:43:03 +0900322 sdk_version: "29",
323 min_sdk_version: "29",
paulhue455e2a2019-03-29 17:22:20 +0800324 shared_libs: [
325 "liblog",
Lorenzo Colitti88ddd882019-05-01 11:54:33 +0900326 "libnativehelper_compat_libc++",
paulhue455e2a2019-03-29 17:22:20 +0800327 ],
Orion Hodson94561f62020-12-08 09:56:29 +0000328 static_libs: [
329 "libnetjniutils",
330 ],
Lorenzo Colitti88ddd882019-05-01 11:54:33 +0900331
332 // We cannot use plain "libc++" here to link libc++ dynamically because it results in:
333 // java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found
334 // even if "libc++" is added into jni_libs below. Adding "libc++_shared" into jni_libs doesn't
335 // build because soong complains of:
336 // module NetworkStack missing dependencies: libc++_shared
337 //
338 // So, link libc++ statically. This means that we also need to ensure that all the C++ libraries
339 // we depend on do not dynamically link libc++. This is currently the case, because liblog is
340 // C-only and libnativehelper_compat_libc also uses stl: "c++_static".
341 //
342 // TODO: find a better solution for this in R.
343 stl: "c++_static",
paulhue455e2a2019-03-29 17:22:20 +0800344 cflags: [
345 "-Wall",
346 "-Werror",
347 "-Wno-unused-parameter",
348 ],
349}
350
Chiachang Wang80242272019-04-11 21:24:28 +0800351genrule {
Muhammad Qureshicd7415e2021-02-11 01:54:48 +0000352 name: "statslog-networkstack-java-gen-current",
Chiachang Wang80242272019-04-11 21:24:28 +0800353 tools: ["stats-log-api-gen"],
354 cmd: "$(location stats-log-api-gen) --java $(out) --module network_stack" +
Muhammad Qureshi8e0e9bc2019-12-31 11:26:33 -0800355 " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog" +
Muhammad Qureshicd7415e2021-02-11 01:54:48 +0000356 " --minApiLevel 29",
Chiachang Wang80242272019-04-11 21:24:28 +0800357 out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"],
358}
Kun Niu8e89dd42019-07-16 18:33:45 -0700359
Muhammad Qureshicd7415e2021-02-11 01:54:48 +0000360genrule {
361 name: "statslog-networkstack-java-gen-stable",
362 tools: ["stats-log-api-gen"],
363 cmd: "$(location stats-log-api-gen) --java $(out) --module network_stack" +
364 " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog" +
365 " --minApiLevel 29 --compileApiLevel 30",
366 out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"],
367}
368
369
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900370version_code_networkstack_next = "300000000"
371version_code_networkstack_test = "999999999"
372
Kun Niu8e89dd42019-07-16 18:33:45 -0700373genrule {
374 name: "NetworkStackTestAndroidManifest",
375 srcs: ["AndroidManifest.xml"],
376 out: ["TestAndroidManifest.xml"],
Remi NGUYEN VAN16fe4542020-01-16 13:48:38 +0900377 cmd: "sed -E 's/versionCode=\"[0-9]+\"/versionCode=\""
378 + version_code_networkstack_test
379 + "\"/' $(in) > $(out)",
380 visibility: ["//visibility:private"],
381}
382
Kun Niu8e89dd42019-07-16 18:33:45 -0700383android_app {
384 name: "TestNetworkStack",
Remi NGUYEN VAN1d52af02020-12-22 02:08:55 +0000385 defaults: ["NetworkStackAppDefaults", "NetworkStackReleaseApiLevel"],
386 static_libs: ["NetworkStackApiStableLib"],
Kun Niu8e89dd42019-07-16 18:33:45 -0700387 certificate: "networkstack",
388 manifest: ":NetworkStackTestAndroidManifest",
Kun Niu8e89dd42019-07-16 18:33:45 -0700389 // The permission configuration *must* be included to ensure security of the device
390 required: ["NetworkPermissionConfig"],
391}
lifrcb15db32020-05-21 20:32:36 +0800392
Remi NGUYEN VAN84ba8152020-06-22 18:50:20 +0900393// When adding or modifying protos, the jarjar rules and possibly proguard rules need
394// to be updated: proto libraries may pull additional static libraries.
lifrcb15db32020-05-21 20:32:36 +0800395java_library_static {
396 name: "statsprotos",
397 proto: {
398 type: "lite",
399 },
400 srcs: [
401 "src/com/android/networkstack/metrics/stats.proto",
402 ],
403 static_libs: [
404 "networkstackprotos",
405 ],
406 defaults: ["NetworkStackReleaseApiLevel"],
407}