blob: 8b469e4e69e5cb9dc2d5089262f8592630034193 [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 {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000018 default_team: "trendy_team_fwk_core_networking",
Bob Badour6c7ed9d2021-02-12 17:07:05 -080019 // See: http://go/android-license-faq
Baligh Uddin36847132021-05-23 16:38:40 +000020 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour6c7ed9d2021-02-12 17:07:05 -080021}
22
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +090023service_remoteauth_pre_jarjar_lib = "service-remoteauth-pre-jarjar"
24
25// The above variables may have different values
26// depending on the branch, and this comment helps
27// separate them from the rest of the file to avoid merge conflicts
28
Tyler Wearb37f5512021-10-01 13:22:00 -070029aidl_interface {
30 name: "connectivity_native_aidl_interface",
31 local_include_dir: "binder",
Tyler Wearb37f5512021-10-01 13:22:00 -070032 srcs: [
33 "binder/android/net/connectivity/aidl/*.aidl",
34 ],
35 backend: {
36 java: {
37 apex_available: [
38 "com.android.tethering",
39 ],
40 min_sdk_version: "30",
41 },
42 ndk: {
43 apex_available: [
44 "com.android.tethering",
45 ],
46 min_sdk_version: "30",
47 },
48 },
49 versions: ["1"],
50
51}
52
53cc_library_static {
54 name: "connectivity_native_aidl_interface-lateststable-ndk",
55 min_sdk_version: "30",
56 whole_static_libs: [
57 "connectivity_native_aidl_interface-V1-ndk",
58 ],
59 apex_available: [
60 "com.android.tethering",
61 ],
62}
63
64java_library {
65 name: "connectivity_native_aidl_interface-lateststable-java",
66 sdk_version: "system_current",
67 min_sdk_version: "30",
68 static_libs: [
69 "connectivity_native_aidl_interface-V1-java",
70 ],
71 apex_available: [
72 "com.android.tethering",
73 ],
74}
75
markchien8fb75e32021-11-11 17:53:56 +080076// The library name match the service-connectivity jarjar rules that put the JNI utils in the
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090077// android.net.connectivity.com.android.net.module.util package.
markchien8fb75e32021-11-11 17:53:56 +080078cc_library_shared {
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090079 name: "libandroid_net_connectivity_com_android_net_module_util_jni",
markchien8fb75e32021-11-11 17:53:56 +080080 min_sdk_version: "30",
81 cflags: [
82 "-Wall",
83 "-Werror",
84 "-Wno-unused-parameter",
85 "-Wthread-safety",
86 ],
87 srcs: [
88 "jni/com_android_net_module_util/onload.cpp",
89 ],
markchien8fb75e32021-11-11 17:53:56 +080090 static_libs: [
91 "libnet_utils_device_common_bpfjni",
Tyler Wearb37f5512021-10-01 13:22:00 -070092 "libnet_utils_device_common_bpfutils",
markchien8fb75e32021-11-11 17:53:56 +080093 ],
94 shared_libs: [
95 "liblog",
96 "libnativehelper",
97 ],
98 apex_available: [
99 "com.android.tethering",
100 ],
101}
102
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000103cc_library_shared {
104 name: "libservice-connectivity",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000105 min_sdk_version: "30",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900106 cflags: [
107 "-Wall",
108 "-Werror",
109 "-Wno-unused-parameter",
110 "-Wthread-safety",
111 ],
112 srcs: [
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900113 ":services.connectivity-netstats-jni-sources",
Hungming Chene2cf0552021-12-25 17:05:41 +0800114 "jni/com_android_server_connectivity_ClatCoordinator.cpp",
Kangping Dong192e4b02023-10-25 20:34:21 +0800115 "jni/com_android_server_ServiceManagerWrapper.cpp",
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000116 "jni/onload.cpp",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900117 ],
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000118 header_libs: [
Patrick Rohr361b8592022-01-28 15:39:17 +0100119 "bpf_connectivity_headers",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000120 ],
Hungming Chene2cf0552021-12-25 17:05:41 +0800121 static_libs: [
122 "libclat",
123 "libip_checksum",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900124 "libmodules-utils-build",
Hungming Chene2cf0552021-12-25 17:05:41 +0800125 "libnetjniutils",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900126 "libnet_utils_device_common_bpfjni",
Patrick Rohr08bf0562025-01-16 11:41:59 -0800127 "libserviceconnectivityjni",
Patrick Rohr361b8592022-01-28 15:39:17 +0100128 "netd_aidl_interface-lateststable-ndk",
Hungming Chene2cf0552021-12-25 17:05:41 +0800129 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900130 shared_libs: [
Maciej Żenczykowskidcae3512022-01-31 19:59:32 -0800131 "libbase",
Kangping Dong192e4b02023-10-25 20:34:21 +0800132 "libbinder_ndk",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900133 "libcutils",
Maciej Żenczykowskidcae3512022-01-31 19:59:32 -0800134 "libnetdutils",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900135 "liblog",
136 "libnativehelper",
Remi NGUYEN VANd9504892022-02-02 13:03:29 +0900137 "libnetworkstats",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900138 ],
Pete Bentleyb1456112021-01-07 13:51:18 +0000139 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000140 "com.android.tethering",
Pete Bentleyb1456112021-01-07 13:51:18 +0000141 ],
142}
143
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900144java_library {
Aaron Huang63338842021-01-08 18:32:00 +0800145 name: "service-connectivity-pre-jarjar",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000146 sdk_version: "system_server_current",
Remi NGUYEN VANda43ef02021-03-23 14:45:58 +0000147 min_sdk_version: "30",
Remi NGUYEN VAN02eee9a2023-01-30 19:19:48 +0900148 // NetworkStackApiShimSettingsForCurrentBranch provides the latest available shims depending on
149 // the branch to "service-connectivity".
150 // There are Tethering.apk and TetheringNext.apk variants for the tethering APEX,
151 // which use NetworkStackApiStableShims and NetworkStackApiCurrentShims respectively.
152 // Note that there can be no service-connectivity-next because it would need to be configured in
153 // default_art_config.mk which doesn't support conditionals, hence this scheme of using a
154 // variable here.
155 defaults: ["NetworkStackApiShimSettingsForCurrentBranch"],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900156 srcs: [
Remi NGUYEN VANcdb45f82021-05-13 12:53:15 +0000157 "src/**/*.java",
Aaron Huang63338842021-01-08 18:32:00 +0800158 ":framework-connectivity-shared-srcs",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000159 ":services-connectivity-shared-srcs",
Motomu Utsumi166f9662022-09-01 10:35:29 +0900160 ":statslog-connectivity-java-gen",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900161 ],
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900162 libs: [
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000163 "framework-annotations-lib",
Patrick Rohr65dc1292025-01-22 14:37:18 -0800164 "framework-bluetooth.stubs.module_lib",
Jihoon Kang8401b6a2024-08-30 00:29:58 +0000165 "framework-configinfrastructure.stubs.module_lib",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +0900166 "framework-connectivity-pre-jarjar",
Paul Duffin5118a522022-10-05 18:34:24 +0100167 // The framework-connectivity-t library is only available on T+ platforms
168 // so any calls to it must be protected with a check to ensure that it is
169 // available. The linter will detect any unprotected calls through an API
170 // but not direct calls to the implementation. So, this depends on the
171 // module lib stubs directly to ensure the linter will work correctly
172 // as depending on framework-connectivity-t would cause it to be compiled
173 // against the implementation because the two libraries are in the same
174 // APEX.
paulhu537f7202022-02-08 21:25:28 +0800175 "framework-connectivity-t.stubs.module_lib",
Igor Chernyshev9dac6602022-12-13 19:28:32 -0800176 // TODO: figure out why just using "framework-tethering" uses the stubs, even though both
177 // service-connectivity and framework-tethering are in the same APEX.
178 "framework-tethering.impl",
Jihoon Kang8401b6a2024-08-30 00:29:58 +0000179 "framework-wifi.stubs.module_lib",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900180 "unsupportedappusage",
Remi NGUYEN VAN907ebd42021-03-08 22:05:03 +0900181 "ServiceConnectivityResources",
Jihoon Kang8401b6a2024-08-30 00:29:58 +0000182 "framework-statsd.stubs.module_lib",
183 "framework-permission.stubs.module_lib",
184 "framework-permission-s.stubs.module_lib",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900185 ],
186 static_libs: [
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +0900187 // Do not add libs here if they are already included
188 // in framework-connectivity
Igor Chernyshev9dac6602022-12-13 19:28:32 -0800189 "androidx.annotation_annotation",
Hungming Chen01f25502022-06-28 22:47:00 +0800190 "connectivity-net-module-utils-bpf",
Tyler Wearb37f5512021-10-01 13:22:00 -0700191 "connectivity_native_aidl_interface-lateststable-java",
Lorenzo Colitti191f1b22024-04-17 22:06:08 +0900192 "dnsresolver_aidl_interface-V15-java",
William Escandeea9e22e2021-08-19 12:26:52 +0200193 "modules-utils-shell-command-handler",
Handa Wang9b0df362024-07-02 13:17:43 +0000194 "net-utils-service-connectivity",
lucaslinef337532021-01-18 11:58:24 +0800195 "netd-client",
Remi NGUYEN VAN4ee6c502021-03-22 10:25:12 +0000196 "networkstack-client",
lifrc0d25c12021-03-09 17:24:46 +0800197 "PlatformProperties",
Remi NGUYEN VANd8bc0fa2021-03-11 15:41:52 +0900198 "service-connectivity-protos",
Frank Li55f79d42022-11-25 06:00:54 +0000199 "service-connectivity-stats-protos",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900200 ],
201 apex_available: [
Remi NGUYEN VANeaa96582021-01-08 01:19:44 +0000202 "com.android.tethering",
Remi NGUYEN VAN59262cb2020-12-21 18:40:08 +0900203 ],
Cole Fausta52ecf02023-12-20 11:57:07 -0800204 lint: {
Cole Fausta52ecf02023-12-20 11:57:07 -0800205 baseline_filename: "lint-baseline.xml",
Cole Faustbe30b3e2024-01-25 02:41:58 +0000206
Cole Fausta52ecf02023-12-20 11:57:07 -0800207 },
paulhu802ab972021-12-14 01:30:22 +0000208 visibility: [
209 "//packages/modules/Connectivity/service-t",
Yan Yanb4ccc6a2024-11-02 01:37:17 +0000210 "//packages/modules/Connectivity/service-b",
Sandro Montanari9ffc0682024-07-24 15:50:37 +0000211 "//packages/modules/Connectivity/networksecurity:__subpackages__",
paulhu802ab972021-12-14 01:30:22 +0000212 "//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 Faustbe30b3e2024-01-25 02:41:58 +0000234
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",
Sandro Montanari9ffc0682024-07-24 15:50:37 +0000253 "service-networksecurity-pre-jarjar",
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +0900254 service_remoteauth_pre_jarjar_lib,
Kangping Donge7fef892023-08-11 15:30:09 +0800255 "service-thread-pre-jarjar",
Yan Yanb4ccc6a2024-11-02 01:37:17 +0000256 ] + select(release_flag("RELEASE_MOVE_VCN_TO_MAINLINE"), {
257 true: ["service-connectivity-b-pre-jarjar"],
258 default: [],
259 }),
260
Remi NGUYEN VAN371e7f72022-07-25 18:52:58 +0900261 // The below libraries are not actually needed to build since no source is compiled
262 // (only combining prebuilt static_libs), but they are necessary so that R8 has the right
263 // references to optimize the code. Without these, there will be missing class warnings and
264 // code may be wrongly optimized.
265 // R8 runs after jarjar, so the framework-X libraries need to be the post-jarjar artifacts
266 // (.impl), if they are not just stubs, so that the name of jarjared classes match.
267 libs: [
268 "androidx.annotation_annotation",
269 "framework-annotations-lib",
270 "framework-connectivity.impl",
271 "framework-connectivity-t.impl",
Igor Chernyshev9dac6602022-12-13 19:28:32 -0800272 "framework-tethering.impl",
Jihoon Kang8401b6a2024-08-30 00:29:58 +0000273 "framework-wifi.stubs.module_lib",
Remi NGUYEN VAN371e7f72022-07-25 18:52:58 +0900274 "libprotobuf-java-nano",
Jihoon Kang8401b6a2024-08-30 00:29:58 +0000275 "framework-permission.stubs.module_lib",
276 "framework-permission-s.stubs.module_lib",
Remi NGUYEN VAN371e7f72022-07-25 18:52:58 +0900277 ],
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +0900278 jarjar_rules: ":connectivity-jarjar-rules",
Aaron Huang63338842021-01-08 18:32:00 +0800279 apex_available: [
Aaron Huang63338842021-01-08 18:32:00 +0800280 "com.android.tethering",
281 ],
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +0900282 optimize: {
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +0900283 proguard_flags_files: ["proguard.flags"],
284 },
Aaron Huang63338842021-01-08 18:32:00 +0800285}
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900286
Paul Duffin5fc809f2022-05-20 14:15:42 +0000287// A special library created strictly for use by the tests as they need the
288// implementation library but that is not available when building from prebuilts.
289// Using a library with a different name to what is used by the prebuilts ensures
290// that this will never depend on the prebuilt.
291// Switching service-connectivity to a java_sdk_library would also have worked as
292// that has built in support for managing this but that is too big a change at this
293// point.
294java_library {
295 name: "service-connectivity-for-tests",
296 defaults: ["service-connectivity-defaults"],
297}
298
299java_library {
300 name: "service-connectivity",
301 defaults: ["service-connectivity-defaults"],
302 installable: true,
303}
304
Frank Lie6b47f32022-10-25 18:57:10 +0000305java_library_static {
306 name: "service-connectivity-stats-protos",
307 sdk_version: "system_current",
308 min_sdk_version: "30",
309 proto: {
310 type: "lite",
311 },
312 srcs: [
313 "src/com/android/metrics/stats.proto",
314 ],
315 static_libs: ["ConnectivityServiceprotos"],
316 apex_available: ["com.android.tethering"],
317}
318
Cole Faust9ff8f4c2024-10-22 16:31:00 -0700319java_genrule {
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900320 name: "connectivity-jarjar-rules",
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900321 defaults: ["jarjar-rules-combine-defaults"],
322 srcs: [
323 ":framework-connectivity-jarjar-rules",
324 ":service-connectivity-jarjar-gen",
325 ":service-nearby-jarjar-gen",
Sandro Montanari9ffc0682024-07-24 15:50:37 +0000326 ":service-networksecurity-jarjar-gen",
Casey Borders13a35ea2023-07-13 00:30:38 +0000327 ":service-remoteauth-jarjar-gen",
Kangping Donge7fef892023-08-11 15:30:09 +0800328 ":service-thread-jarjar-gen",
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900329 ],
330 out: ["connectivity-jarjar-rules.txt"],
Remi NGUYEN VAN8ea5ee62021-06-28 18:48:43 +0900331 visibility: ["//packages/modules/Connectivity:__subpackages__"],
332}
Wayne Ma0ea3bdc2022-01-12 01:12:11 +0800333
334// TODO: This filegroup temporary exposes for NetworkStats. It should be
335// removed right after NetworkStats moves into mainline module.
336filegroup {
337 name: "traffic-controller-utils",
338 srcs: ["src/com/android/server/BpfNetMaps.java"],
339 visibility: ["//packages/modules/Connectivity:__subpackages__"],
340}
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900341
342java_genrule {
343 name: "service-connectivity-jarjar-gen",
344 tool_files: [
345 ":service-connectivity-pre-jarjar{.jar}",
Yan Yanb4ccc6a2024-11-02 01:37:17 +0000346 ":service-connectivity-b-pre-jarjar{.jar}",
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900347 ":service-connectivity-tiramisu-pre-jarjar{.jar}",
348 "jarjar-excludes.txt",
349 ],
350 tools: [
351 "jarjar-rules-generator",
352 ],
353 out: ["service_connectivity_jarjar_rules.txt"],
354 cmd: "$(location jarjar-rules-generator) " +
Remi NGUYEN VAN0bd90f12022-08-10 20:15:46 +0900355 "$(location :service-connectivity-pre-jarjar{.jar}) " +
Yan Yanb4ccc6a2024-11-02 01:37:17 +0000356 "$(location :service-connectivity-b-pre-jarjar{.jar}) " +
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900357 "$(location :service-connectivity-tiramisu-pre-jarjar{.jar}) " +
358 "--prefix android.net.connectivity " +
359 "--excludes $(location jarjar-excludes.txt) " +
360 "--output $(out)",
361 visibility: ["//visibility:private"],
362}
363
364java_genrule {
365 name: "service-nearby-jarjar-gen",
366 tool_files: [
367 ":service-nearby-pre-jarjar{.jar}",
368 "jarjar-excludes.txt",
369 ],
370 tools: [
371 "jarjar-rules-generator",
372 ],
373 out: ["service_nearby_jarjar_rules.txt"],
374 cmd: "$(location jarjar-rules-generator) " +
Remi NGUYEN VAN0bd90f12022-08-10 20:15:46 +0900375 "$(location :service-nearby-pre-jarjar{.jar}) " +
Remi NGUYEN VANe55a88d2022-04-20 15:59:16 +0900376 "--prefix com.android.server.nearby " +
377 "--excludes $(location jarjar-excludes.txt) " +
378 "--output $(out)",
379 visibility: ["//visibility:private"],
380}
Motomu Utsumi166f9662022-09-01 10:35:29 +0900381
Casey Borders13a35ea2023-07-13 00:30:38 +0000382java_genrule {
383 name: "service-remoteauth-jarjar-gen",
384 tool_files: [
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +0900385 ":" + service_remoteauth_pre_jarjar_lib + "{.jar}",
Casey Borders13a35ea2023-07-13 00:30:38 +0000386 "jarjar-excludes.txt",
387 ],
388 tools: [
389 "jarjar-rules-generator",
390 ],
391 out: ["service_remoteauth_jarjar_rules.txt"],
392 cmd: "$(location jarjar-rules-generator) " +
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +0900393 "$(location :" + service_remoteauth_pre_jarjar_lib + "{.jar}) " +
Casey Borders13a35ea2023-07-13 00:30:38 +0000394 "--prefix com.android.server.remoteauth " +
395 "--excludes $(location jarjar-excludes.txt) " +
396 "--output $(out)",
397 visibility: ["//visibility:private"],
398}
399
Kangping Donge7fef892023-08-11 15:30:09 +0800400java_genrule {
401 name: "service-thread-jarjar-gen",
402 tool_files: [
403 ":service-thread-pre-jarjar{.jar}",
404 "jarjar-excludes.txt",
405 ],
406 tools: [
407 "jarjar-rules-generator",
408 ],
409 out: ["service_thread_jarjar_rules.txt"],
410 cmd: "$(location jarjar-rules-generator) " +
411 "$(location :service-thread-pre-jarjar{.jar}) " +
412 "--prefix com.android.server.thread " +
413 "--excludes $(location jarjar-excludes.txt) " +
414 "--output $(out)",
415 visibility: ["//visibility:private"],
416}
417
Sandro Montanari9ffc0682024-07-24 15:50:37 +0000418java_genrule {
419 name: "service-networksecurity-jarjar-gen",
420 tool_files: [
421 ":service-networksecurity-pre-jarjar{.jar}",
422 "jarjar-excludes.txt",
423 ],
424 tools: [
425 "jarjar-rules-generator",
426 ],
427 out: ["service_ct_jarjar_rules.txt"],
428 cmd: "$(location jarjar-rules-generator) " +
429 "$(location :service-networksecurity-pre-jarjar{.jar}) " +
430 "--prefix com.android.server.net.ct " +
431 "--excludes $(location jarjar-excludes.txt) " +
432 "--output $(out)",
433 visibility: ["//visibility:private"],
434}
435
Motomu Utsumi166f9662022-09-01 10:35:29 +0900436genrule {
Paul Duffin5118a522022-10-05 18:34:24 +0100437 name: "statslog-connectivity-java-gen",
438 tools: ["stats-log-api-gen"],
439 cmd: "$(location stats-log-api-gen) --java $(out) --module connectivity --javaPackage com.android.server --javaClass ConnectivityStatsLog",
440 out: ["com/android/server/ConnectivityStatsLog.java"],
Motomu Utsumi166f9662022-09-01 10:35:29 +0900441}