blob: 3c964e5e2b8b4f76c51ce17a1b358d321a353e72 [file] [log] [blame]
Sandro Montanari9ffc0682024-07-24 15:50:37 +00001// Copyright (C) 2024 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14package {
15 default_team: "trendy_team_platform_security",
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19// Main lib for Certificate Transparency services.
20java_library {
21 name: "service-networksecurity-pre-jarjar",
22 defaults: ["framework-system-server-module-defaults"],
23 visibility: ["//packages/modules/Connectivity:__subpackages__"],
24
25 srcs: [
26 "src/**/*.java",
Bessie Jianga1082d82024-12-20 09:37:24 +000027 ":statslog-certificate-transparency-java-gen",
Sandro Montanari9ffc0682024-07-24 15:50:37 +000028 ],
29
30 libs: [
Jihoon Kang8401b6a2024-08-30 00:29:58 +000031 "framework-configinfrastructure.stubs.module_lib",
Sandro Montanari9ffc0682024-07-24 15:50:37 +000032 "framework-connectivity-pre-jarjar",
33 "service-connectivity-pre-jarjar",
Bessie Jianga1082d82024-12-20 09:37:24 +000034 "framework-statsd.stubs.module_lib",
Sandro Montanari32c060f2025-01-15 09:49:10 +000035 "ServiceConnectivityResources",
Sandro Montanari9ffc0682024-07-24 15:50:37 +000036 ],
37
Sandro Montanari478ba512024-11-04 17:38:20 +000038 static_libs: [
39 "auto_value_annotations",
Sandro Montanari88564f62024-12-05 17:02:29 +000040 "android.security.flags-aconfig-java-export",
Sandro Montanari478ba512024-11-04 17:38:20 +000041 ],
42
43 plugins: [
44 "auto_value_plugin",
45 "auto_annotation_plugin",
46 ],
47
Sandro Montanari9ffc0682024-07-24 15:50:37 +000048 // This is included in service-connectivity which is 30+
49 // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX
50 // (service-connectivity is only used on 31+) and use 31 here
51 min_sdk_version: "30",
52 sdk_version: "system_server_current",
53 apex_available: ["com.android.tethering"],
54}
Bessie Jianga1082d82024-12-20 09:37:24 +000055
56genrule {
57 name: "statslog-certificate-transparency-java-gen",
58 tools: ["stats-log-api-gen"],
59 cmd: "$(location stats-log-api-gen) --java $(out) --module certificate_transparency --javaPackage com.android.server.net.ct --javaClass CertificateTransparencyStatsLog",
60 out: ["com/android/server/net/ct/CertificateTransparencyStatsLog.java"],
61}