1// Copyright (C) 2022 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. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19apex_key { 20 name: "com.android.adservices.key", 21 public_key: "com.android.adservices.avbpubkey", 22 private_key: "com.android.adservices.pem", 23} 24 25android_app_certificate { 26 name: "com.android.adservices.certificate", 27 certificate: "com.android.adservices", 28} 29 30apex { 31 name: "com.android.adservices", 32 manifest: "manifest.json", 33 apps: ["AdServicesApk", "SdkSandbox"], 34 file_contexts: ":com.android.adservices-file_contexts", 35 key: "com.android.adservices.key", 36 bootclasspath_fragments: ["com.android.adservices-bootclasspath-fragment"], 37 systemserverclasspath_fragments: ["com.android.adservices-systemserverclasspath-fragment"], 38 prebuilts: [ 39 "current_sdkinfo", 40 "privapp_allowlist_com.android.adservices.api.xml" 41 ], 42 certificate: ":com.android.adservices.certificate", 43 defaults: ["t-launched-apex-module"], 44 // Indicates that pre-installed version of this apex can be compressed. 45 // Whether it actually will be compressed is controlled on per-device basis. 46 compressible: true, 47} 48 49sdk { 50 name: "adservices-module-sdk", 51 bootclasspath_fragments: ["com.android.adservices-bootclasspath-fragment"], 52 systemserverclasspath_fragments: ["com.android.adservices-systemserverclasspath-fragment"], 53} 54 55systemserverclasspath_fragment { 56 name: "com.android.adservices-systemserverclasspath-fragment", 57 contents: [ 58 "service-adservices", 59 "service-sdksandbox", 60 ], 61 apex_available: ["com.android.adservices"], 62} 63 64// Encapsulate the contributions made by com.android.adservices to the bootclasspath. 65bootclasspath_fragment { 66 name: "com.android.adservices-bootclasspath-fragment", 67 contents: [ 68 "framework-adservices", 69 "framework-sdksandbox", 70 ], 71 apex_available: ["com.android.adservices"], 72 73 // The bootclasspath_fragments that provide APIs on which this depends. 74 fragments: [ 75 { 76 apex: "com.android.art", 77 module: "art-bootclasspath-fragment", 78 }, 79 ], 80 81 // Additional stubs libraries that this fragment's contents use which are 82 // not provided by another bootclasspath_fragment. 83 additional_stubs: [ 84 "android-non-updatable", 85 ], 86 87 hidden_api: { 88 89 // This module does not contain any split packages. 90 split_packages: [], 91 92 // The following packages and all their subpackages currently only 93 // contain classes from this bootclasspath_fragment. Listing a package 94 // here won't prevent other bootclasspath modules from adding classes in 95 // any of those packages but it will prevent them from adding those 96 // classes into an API surface, e.g. public, system, etc.. Doing so will 97 // result in a build failure due to inconsistent flags. 98 package_prefixes: [ 99 "android.adservices", 100 "android.app.sdksandbox", 101 "com.android.adservices", 102 ], 103 }, 104} 105