blob: 7c5da0ddaae2f39f25ae618b6cf771e2eb85fc0c [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 VANc41daa42023-08-14 15:34:20 +090022service_remoteauth_pre_jarjar_lib = "service-remoteauth-pre-jarjar"
23
24// The above variables may have different values
25// depending on the branch, and this comment helps
26// separate them from the rest of the file to avoid merge conflicts
27
Tyler Wearb37f5512021-10-01 13:22:00 -070028aidl_interface {
29 name: "connectivity_native_aidl_interface",
30 local_include_dir: "binder",
Tyler Wearb37f5512021-10-01 13:22:00 -070031 srcs: [
32 "binder/android/net/connectivity/aidl/*.aidl",
33 ],
34 backend: {
35 java: {
36 apex_available: [
37 "com.android.tethering",
38 ],
39 min_sdk_version: "30",
40 },
41 ndk: {
42 apex_available: [
43 "com.android.tethering",
44 ],
45 min_sdk_version: "30",
46 },
47 },
48 versions: ["1"],
49
50}
51
52cc_library_static {
53 name: "connectivity_native_aidl_interface-lateststable-ndk",
54 min_sdk_version: "30",
55 whole_static_libs: [
56 "connectivity_native_aidl_interface-V1-ndk",
57 ],
58 apex_available: [
59 "com.android.tethering",
60 ],
61}
62
63java_library {
64 name: "connectivity_native_aidl_interface-lateststable-java",
65 sdk_version: "system_current",
66 min_sdk_version: "30",
67 static_libs: [
68 "connectivity_native_aidl_interface-V1-java",
69 ],
70 apex_available: [
71 "com.android.tethering",
72 ],
Cole Fausta52ecf02023-12-20 11:57:07 -080073 lint: {
74 baseline_filename: "lint-baseline.xml",
75 },
Tyler Wearb37f5512021-10-01 13:22:00 -070076}
77
markchien8fb75e32021-11-11 17:53:56 +080078// The library name match the service-connectivity jarjar rules that put the JNI utils in the
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090079// android.net.connectivity.com.android.net.module.util package.
markchien8fb75e32021-11-11 17:53:56 +080080cc_library_shared {
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090081 name: "libandroid_net_connectivity_com_android_net_module_util_jni",
markchien8fb75e32021-11-11 17:53:56 +080082 min_sdk_version: "30",
83 cflags: [
84 "-Wall",
85 "-Werror",
86 "-Wno-unused-parameter",
87 "-Wthread-safety",
88 ],
89 srcs: [
90 "jni/com_android_net_module_util/onload.cpp",
91 ],
markchien8fb75e32021-11-11 17:53:56 +080092 static_libs: [
93 "libnet_utils_device_common_bpfjni",
Tyler Wearb37f5512021-10-01 13:22:00 -070094 "libnet_utils_device_common_bpfutils",
markchien8fb75e32021-11-11 17:53:56 +080095 ],
96 shared_libs: [
97 "liblog",
98 "libnativehelper",
99 ],
100 apex_available: [
101 "com.android.tethering",
102 ],
103}
104
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000105cc_library_shared {
106 name: "libservice-connectivity",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000107 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900108 cflags: [
109 "-Wall",
110 "-Werror",
111 "-Wno-unused-parameter",
112 "-Wthread-safety",
113 ],
114 srcs: [
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900115 ":services.connectivity-netstats-jni-sources",
Hungming Chene2cf0552021-12-25 17:05:41 +0800116 "jni/com_android_server_connectivity_ClatCoordinator.cpp",
Kangping Dong192e4b02023-10-25 20:34:21 +0800117 "jni/com_android_server_ServiceManagerWrapper.cpp",
Patrick Rohr361b8592022-01-28 15:39:17 +0100118 "jni/com_android_server_TestNetworkService.cpp",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000119 "jni/onload.cpp",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900120 ],
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000121 header_libs: [
Patrick Rohr361b8592022-01-28 15:39:17 +0100122 "bpf_connectivity_headers",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000123 ],
Hungming Chene2cf0552021-12-25 17:05:41 +0800124 static_libs: [
125 "libclat",
126 "libip_checksum",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900127 "libmodules-utils-build",
Hungming Chene2cf0552021-12-25 17:05:41 +0800128 "libnetjniutils",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900129 "libnet_utils_device_common_bpfjni",
Patrick Rohr361b8592022-01-28 15:39:17 +0100130 "netd_aidl_interface-lateststable-ndk",
Hungming Chene2cf0552021-12-25 17:05:41 +0800131 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900132 shared_libs: [
Maciej Żenczykowskidcae3512022-01-31 19:59:32 -0800133 "libbase",
Kangping Dong192e4b02023-10-25 20:34:21 +0800134 "libbinder_ndk",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900135 "libcutils",
Maciej Żenczykowskidcae3512022-01-31 19:59:32 -0800136 "libnetdutils",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900137 "liblog",
138 "libnativehelper",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900139 "libnetworkstats",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900140 ],
Pete Bentleyb1456112021-01-07 13:51:18 +0000141 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000142 "com.android.tethering",
Pete Bentleyb1456112021-01-07 13:51:18 +0000143 ],
144}
145
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900146java_library {
Aaron Huang63338842021-01-08 18:32:00 +0800147 name: "service-connectivity-pre-jarjar",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000148 sdk_version: "system_server_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000149 min_sdk_version: "30",
Remi NGUYEN VAN02eee9a2023-01-30 19:19:48 +0900150 // NetworkStackApiShimSettingsForCurrentBranch provides the latest available shims depending on
151 // the branch to "service-connectivity".
152 // There are Tethering.apk and TetheringNext.apk variants for the tethering APEX,
153 // which use NetworkStackApiStableShims and NetworkStackApiCurrentShims respectively.
154 // Note that there can be no service-connectivity-next because it would need to be configured in
155 // default_art_config.mk which doesn't support conditionals, hence this scheme of using a
156 // variable here.
157 defaults: ["NetworkStackApiShimSettingsForCurrentBranch"],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900158 srcs: [
Remi NGUYEN VANcdb45f82021-05-13 12:53:15 +0000159 "src/**/*.java",
Aaron Huang63338842021-01-08 18:32:00 +0800160 ":framework-connectivity-shared-srcs",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000161 ":services-connectivity-shared-srcs",
Motomu Utsumi166f9662022-09-01 10:35:29 +0900162 ":statslog-connectivity-java-gen",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900163 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900164 libs: [
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000165 "framework-annotations-lib",
Hassan Alic4f63fa2022-11-17 16:13:48 +0000166 "framework-configinfrastructure",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +0900167 "framework-connectivity-pre-jarjar",
Paul Duffin5118a522022-10-05 18:34:24 +0100168 // The framework-connectivity-t library is only available on T+ platforms
169 // so any calls to it must be protected with a check to ensure that it is
170 // available. The linter will detect any unprotected calls through an API
171 // but not direct calls to the implementation. So, this depends on the
172 // module lib stubs directly to ensure the linter will work correctly
173 // as depending on framework-connectivity-t would cause it to be compiled
174 // against the implementation because the two libraries are in the same
175 // APEX.
paulhu537f7202022-02-08 21:25:28 +0800176 "framework-connectivity-t.stubs.module_lib",
Igor Chernyshev9dac6602022-12-13 19:28:32 -0800177 // TODO: figure out why just using "framework-tethering" uses the stubs, even though both
178 // service-connectivity and framework-tethering are in the same APEX.
179 "framework-tethering.impl",
Paul Duffin5118a522022-10-05 18:34:24 +0100180 "framework-wifi",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900181 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +0900182 "ServiceConnectivityResources",
Paul Duffin5118a522022-10-05 18:34:24 +0100183 "framework-statsd",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900184 ],
185 static_libs: [
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +0900186 // Do not add libs here if they are already included
187 // in framework-connectivity
Igor Chernyshev9dac6602022-12-13 19:28:32 -0800188 "androidx.annotation_annotation",
Hungming Chen01f25502022-06-28 22:47:00 +0800189 "connectivity-net-module-utils-bpf",
Tyler Wearb37f5512021-10-01 13:22:00 -0700190 "connectivity_native_aidl_interface-lateststable-java",
Mike Yud0ad17c2023-08-29 01:55:28 +0000191 "dnsresolver_aidl_interface-V13-java",
William Escandeea9e22e2021-08-19 12:26:52 +0200192 "modules-utils-shell-command-handler",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900193 "net-utils-device-common",
Patrick Rohr734f24e2022-08-09 19:23:18 -0700194 "net-utils-device-common-ip",
Xiao Ma09c07272021-07-01 14:00:34 +0000195 "net-utils-device-common-netlink",
Xiao Ma0a171c02022-01-23 16:14:51 +0000196 "net-utils-services-common",
lucaslinef337532021-01-18 11:58:24 +0800197 "netd-client",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000198 "networkstack-client",
lifrc0d25c12021-03-09 17:24:46 +0800199 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900200 "service-connectivity-protos",
Frank Li55f79d42022-11-25 06:00:54 +0000201 "service-connectivity-stats-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900202 ],
203 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000204 "com.android.tethering",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900205 ],
Cole Fausta52ecf02023-12-20 11:57:07 -0800206 lint: {
207 strict_updatability_linting: true,
208 baseline_filename: "lint-baseline.xml",
209 },
paulhu802ab972021-12-14 01:30:22 +0000210 visibility: [
211 "//packages/modules/Connectivity/service-t",
212 "//packages/modules/Connectivity/tests:__subpackages__",
Kangping Dong192e4b02023-10-25 20:34:21 +0800213 "//packages/modules/Connectivity/thread/service:__subpackages__",
214 "//packages/modules/Connectivity/thread/tests:__subpackages__",
paulhu802ab972021-12-14 01:30:22 +0000215 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900216}
Aaron Huang63338842021-01-08 18:32:00 +0800217
218java_library {
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900219 name: "service-connectivity-protos",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000220 sdk_version: "system_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000221 min_sdk_version: "30",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900222 proto: {
223 type: "nano",
224 },
225 srcs: [
226 ":system-messages-proto-src",
227 ],
228 libs: ["libprotobuf-java-nano"],
229 apex_available: [
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900230 "com.android.tethering",
231 ],
Paul Duffin5118a522022-10-05 18:34:24 +0100232 lint: {
233 strict_updatability_linting: true,
Cole Fausta52ecf02023-12-20 11:57:07 -0800234 baseline_filename: "lint-baseline.xml",
Paul Duffin5118a522022-10-05 18:34:24 +0100235 },
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900236}
237
Paul Duffin5fc809f2022-05-20 14:15:42 +0000238java_defaults {
239 name: "service-connectivity-defaults",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000240 sdk_version: "system_server_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000241 min_sdk_version: "30",
zhidoub33a2632022-09-06 17:58:20 +0000242 defaults: [
243 "standalone-system-server-module-optimize-defaults",
244 ],
paulhu802ab972021-12-14 01:30:22 +0000245 // This library combines system server jars that have access to different bootclasspath jars.
246 // Lower SDK service jars must not depend on higher SDK jars as that would let them
247 // transitively depend on the wrong bootclasspath jars. Sources also cannot be added here as
Remi NGUYEN VAN371e7f72022-07-25 18:52:58 +0900248 // they would depend on bootclasspath jars that may not be available.
lifrc0d25c12021-03-09 17:24:46 +0800249 static_libs: [
Aaron Huang63338842021-01-08 18:32:00 +0800250 "service-connectivity-pre-jarjar",
paulhu802ab972021-12-14 01:30:22 +0000251 "service-connectivity-tiramisu-pre-jarjar",
Remi NGUYEN VANb6cde3d2022-03-10 04:32:15 +0000252 "service-nearby-pre-jarjar",
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +0900253 service_remoteauth_pre_jarjar_lib,
Kangping Donge7fef892023-08-11 15:30:09 +0800254 "service-thread-pre-jarjar",
Aaron Huang63338842021-01-08 18:32:00 +0800255 ],
Remi NGUYEN VAN371e7f72022-07-25 18:52:58 +0900256 // The below libraries are not actually needed to build since no source is compiled
257 // (only combining prebuilt static_libs), but they are necessary so that R8 has the right
258 // references to optimize the code. Without these, there will be missing class warnings and
259 // code may be wrongly optimized.
260 // R8 runs after jarjar, so the framework-X libraries need to be the post-jarjar artifacts
261 // (.impl), if they are not just stubs, so that the name of jarjared classes match.
262 libs: [
263 "androidx.annotation_annotation",
264 "framework-annotations-lib",
265 "framework-connectivity.impl",
266 "framework-connectivity-t.impl",
Igor Chernyshev9dac6602022-12-13 19:28:32 -0800267 "framework-tethering.impl",
Paul Duffin5118a522022-10-05 18:34:24 +0100268 "framework-wifi",
Remi NGUYEN VAN371e7f72022-07-25 18:52:58 +0900269 "libprotobuf-java-nano",
270 ],
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +0900271 jarjar_rules: ":connectivity-jarjar-rules",
Aaron Huang63338842021-01-08 18:32:00 +0800272 apex_available: [
Aaron Huang63338842021-01-08 18:32:00 +0800273 "com.android.tethering",
274 ],
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +0900275 optimize: {
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +0900276 proguard_flags_files: ["proguard.flags"],
277 },
Paul Duffin5118a522022-10-05 18:34:24 +0100278 lint: {
279 strict_updatability_linting: true,
280 },
Aaron Huang63338842021-01-08 18:32:00 +0800281}
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900282
Paul Duffin5fc809f2022-05-20 14:15:42 +0000283// A special library created strictly for use by the tests as they need the
284// implementation library but that is not available when building from prebuilts.
285// Using a library with a different name to what is used by the prebuilts ensures
286// that this will never depend on the prebuilt.
287// Switching service-connectivity to a java_sdk_library would also have worked as
288// that has built in support for managing this but that is too big a change at this
289// point.
290java_library {
291 name: "service-connectivity-for-tests",
292 defaults: ["service-connectivity-defaults"],
Cole Fausta52ecf02023-12-20 11:57:07 -0800293 lint: {
294 baseline_filename: "lint-baseline.xml",
295 },
Paul Duffin5fc809f2022-05-20 14:15:42 +0000296}
297
298java_library {
299 name: "service-connectivity",
300 defaults: ["service-connectivity-defaults"],
301 installable: true,
Cole Fausta52ecf02023-12-20 11:57:07 -0800302 lint: {
303 baseline_filename: "lint-baseline.xml",
304 },
Paul Duffin5fc809f2022-05-20 14:15:42 +0000305}
306
Frank Lie6b47f32022-10-25 18:57:10 +0000307java_library_static {
308 name: "service-connectivity-stats-protos",
309 sdk_version: "system_current",
310 min_sdk_version: "30",
311 proto: {
312 type: "lite",
313 },
314 srcs: [
315 "src/com/android/metrics/stats.proto",
316 ],
317 static_libs: ["ConnectivityServiceprotos"],
318 apex_available: ["com.android.tethering"],
Cole Fausta52ecf02023-12-20 11:57:07 -0800319 lint: {
320 baseline_filename: "lint-baseline.xml",
321 },
Frank Lie6b47f32022-10-25 18:57:10 +0000322}
323
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900324genrule {
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900325 name: "connectivity-jarjar-rules",
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900326 defaults: ["jarjar-rules-combine-defaults"],
327 srcs: [
328 ":framework-connectivity-jarjar-rules",
329 ":service-connectivity-jarjar-gen",
330 ":service-nearby-jarjar-gen",
Casey Borders13a35ea2023-07-13 00:30:38 +0000331 ":service-remoteauth-jarjar-gen",
Kangping Donge7fef892023-08-11 15:30:09 +0800332 ":service-thread-jarjar-gen",
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900333 ],
334 out: ["connectivity-jarjar-rules.txt"],
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900335 visibility: ["//packages/modules/Connectivity:__subpackages__"],
336}
Wayne Ma0ea3bdc2022-01-12 01:12:11 +0800337
338// TODO: This filegroup temporary exposes for NetworkStats. It should be
339// removed right after NetworkStats moves into mainline module.
340filegroup {
341 name: "traffic-controller-utils",
342 srcs: ["src/com/android/server/BpfNetMaps.java"],
343 visibility: ["//packages/modules/Connectivity:__subpackages__"],
344}
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900345
346java_genrule {
347 name: "service-connectivity-jarjar-gen",
348 tool_files: [
349 ":service-connectivity-pre-jarjar{.jar}",
350 ":service-connectivity-tiramisu-pre-jarjar{.jar}",
351 "jarjar-excludes.txt",
352 ],
353 tools: [
354 "jarjar-rules-generator",
355 ],
356 out: ["service_connectivity_jarjar_rules.txt"],
357 cmd: "$(location jarjar-rules-generator) " +
Remi NGUYEN VAN0bd90f12022-08-10 20:15:46 +0900358 "$(location :service-connectivity-pre-jarjar{.jar}) " +
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900359 "$(location :service-connectivity-tiramisu-pre-jarjar{.jar}) " +
360 "--prefix android.net.connectivity " +
361 "--excludes $(location jarjar-excludes.txt) " +
362 "--output $(out)",
363 visibility: ["//visibility:private"],
364}
365
366java_genrule {
367 name: "service-nearby-jarjar-gen",
368 tool_files: [
369 ":service-nearby-pre-jarjar{.jar}",
370 "jarjar-excludes.txt",
371 ],
372 tools: [
373 "jarjar-rules-generator",
374 ],
375 out: ["service_nearby_jarjar_rules.txt"],
376 cmd: "$(location jarjar-rules-generator) " +
Remi NGUYEN VAN0bd90f12022-08-10 20:15:46 +0900377 "$(location :service-nearby-pre-jarjar{.jar}) " +
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900378 "--prefix com.android.server.nearby " +
379 "--excludes $(location jarjar-excludes.txt) " +
380 "--output $(out)",
381 visibility: ["//visibility:private"],
382}
Motomu Utsumi166f9662022-09-01 10:35:29 +0900383
Casey Borders13a35ea2023-07-13 00:30:38 +0000384java_genrule {
385 name: "service-remoteauth-jarjar-gen",
386 tool_files: [
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +0900387 ":" + service_remoteauth_pre_jarjar_lib + "{.jar}",
Casey Borders13a35ea2023-07-13 00:30:38 +0000388 "jarjar-excludes.txt",
389 ],
390 tools: [
391 "jarjar-rules-generator",
392 ],
393 out: ["service_remoteauth_jarjar_rules.txt"],
394 cmd: "$(location jarjar-rules-generator) " +
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +0900395 "$(location :" + service_remoteauth_pre_jarjar_lib + "{.jar}) " +
Casey Borders13a35ea2023-07-13 00:30:38 +0000396 "--prefix com.android.server.remoteauth " +
397 "--excludes $(location jarjar-excludes.txt) " +
398 "--output $(out)",
399 visibility: ["//visibility:private"],
400}
401
Kangping Donge7fef892023-08-11 15:30:09 +0800402java_genrule {
403 name: "service-thread-jarjar-gen",
404 tool_files: [
405 ":service-thread-pre-jarjar{.jar}",
406 "jarjar-excludes.txt",
407 ],
408 tools: [
409 "jarjar-rules-generator",
410 ],
411 out: ["service_thread_jarjar_rules.txt"],
412 cmd: "$(location jarjar-rules-generator) " +
413 "$(location :service-thread-pre-jarjar{.jar}) " +
414 "--prefix com.android.server.thread " +
415 "--excludes $(location jarjar-excludes.txt) " +
416 "--output $(out)",
417 visibility: ["//visibility:private"],
418}
419
Motomu Utsumi166f9662022-09-01 10:35:29 +0900420genrule {
Paul Duffin5118a522022-10-05 18:34:24 +0100421 name: "statslog-connectivity-java-gen",
422 tools: ["stats-log-api-gen"],
423 cmd: "$(location stats-log-api-gen) --java $(out) --module connectivity --javaPackage com.android.server --javaClass ConnectivityStatsLog",
424 out: ["com/android/server/ConnectivityStatsLog.java"],
Motomu Utsumi166f9662022-09-01 10:35:29 +0900425}