1// 2// Copyright (C) 2024 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 17package { 18 default_team: "trendy_team_enigma", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22filegroup { 23 name: "vcn-location-sources", 24 srcs: select(release_flag("RELEASE_MOVE_VCN_TO_MAINLINE"), { 25 true: [ 26 "vcn-location-flag/module/com/android/server/vcn/VcnLocation.java", 27 ], 28 default: [ 29 "vcn-location-flag/platform/com/android/server/vcn/VcnLocation.java", 30 ], 31 }), 32 visibility: [ 33 "//frameworks/base/services/core", 34 "//packages/modules/Connectivity/service-t", 35 ], 36} 37 38// TODO: b/374174952 This library is only used in "service-connectivity-b-platform" 39// After VCN moves to Connectivity/ and the modularization is done, this lib and 40// "service-connectivity-b-platform" can both be removed 41java_library { 42 name: "connectivity-utils-service-vcn-internal", 43 sdk_version: "module_current", 44 min_sdk_version: "30", 45 srcs: ["service-utils/**/*.java"], 46 libs: [ 47 "framework-annotations-lib", 48 "unsupportedappusage", 49 ], 50 visibility: ["//visibility:private"], 51} 52 53filegroup { 54 name: "service-vcn-sources", 55 srcs: ["src/**/*.java"], 56 path: "src", 57 visibility: [ 58 "//packages/modules/Connectivity/service-b", 59 ], 60} 61 62// This java_defaults will be used for "service-connectivity-b-platform" and 63// "service-connectivity-b-pre-jarjar" 64java_defaults { 65 name: "service-connectivity-b-pre-jarjar-defaults", 66 defaults: ["framework-system-server-module-defaults"], // This is a system server jar 67 68 srcs: [ 69 ":service-vcn-sources", 70 ], 71 72 libs: [ 73 "android.net.ipsec.ike.stubs.module_lib", 74 "framework-annotations-lib", 75 "framework-connectivity-pre-jarjar", 76 "framework-connectivity-t-pre-jarjar", 77 "framework-connectivity-b-pre-jarjar", 78 "framework-wifi.stubs.module_lib", 79 "keepanno-annotations", 80 "modules-utils-statemachine", 81 "unsupportedappusage", 82 ], 83 84 // TODO: b/374174952 Dynamically include these libs when VCN 85 // modularization is released 86 static_libs: [ 87 "net-utils-service-vcn", 88 "modules-utils-handlerexecutor", 89 ], 90 91 defaults_visibility: [ 92 "//packages/modules/Connectivity/service-b", 93 ], 94} 95 96// This library is only used to be included into services.jar when the build system 97// flag RELEASE_MOVE_VCN_TO_MAINLINE is disabled. When the flag is enabled, a module 98// version of this library will be included in Tethering module 99java_library { 100 name: "service-connectivity-b-platform", 101 defaults: ["service-connectivity-b-pre-jarjar-defaults"], 102 static_libs: ["connectivity-utils-service-vcn-internal"], 103 104 sdk_version: "system_server_current", 105 min_sdk_version: "35", 106 107 // TODO (b/374174952 ): This file is for jarjaring files in 108 // "connectivity-utils-service-vcn-internal". 109 jarjar_rules: "service-vcn-platform-jarjar-rules.txt", 110 111 visibility: [ 112 "//frameworks/base/services", 113 ], 114 apex_available: [ 115 "//apex_available:platform", 116 ], 117} 118