• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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",
27        ":statslog-certificate-transparency-java-gen",
28    ],
29
30    libs: [
31        "framework-configinfrastructure.stubs.module_lib",
32        "framework-connectivity-pre-jarjar",
33        "service-connectivity-pre-jarjar",
34        "framework-statsd.stubs.module_lib",
35        "ServiceConnectivityResources",
36    ],
37
38    static_libs: [
39        "auto_value_annotations",
40        "android.security.flags-aconfig-java-export",
41    ],
42
43    plugins: [
44        "auto_value_plugin",
45        "auto_annotation_plugin",
46    ],
47
48    // 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}
55
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}
62