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 // See: http://go/android-license-faq 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22apex { 23 name: "com.android.mediaprovider", 24 defaults: ["com.android.mediaprovider-defaults"], 25 manifest: "apex_manifest.json", 26 apps: [ 27 "MediaProvider", 28 "Photopicker", 29 ], 30 compat_configs: [ 31 "media-provider-platform-compat-config", 32 "framework-pdf-v-platform-compat-config", 33 ], 34 jni_libs: [ 35 "libpdfclient", 36 ], 37 compile_multilib: "both", 38} 39 40apex_defaults { 41 name: "com.android.mediaprovider-defaults", 42 required: ["preinstalled-packages-com.android.providers.media.module.xml"], 43 bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"], 44 sh_binaries: [ 45 // MediaProvider CLI (cli/media_provider_cli_wrapper.sh) 46 "media_provider", 47 ], 48 prebuilts: ["current_sdkinfo"], 49 key: "com.android.mediaprovider.key", 50 certificate: ":com.android.mediaprovider.certificate", 51 file_contexts: ":com.android.mediaprovider-file_contexts", 52 defaults: ["r-launched-apex-module"], 53 // Indicates that pre-installed version of this apex can be compressed. 54 // Whether it actually will be compressed is controlled on per-device basis. 55 compressible: true, 56} 57 58apex_key { 59 name: "com.android.mediaprovider.key", 60 public_key: "com.android.mediaprovider.avbpubkey", 61 private_key: "com.android.mediaprovider.pem", 62} 63 64android_app_certificate { 65 name: "com.android.mediaprovider.certificate", 66 certificate: "com.android.mediaprovider", 67} 68 69sdk { 70 name: "mediaprovider-module-sdk", 71 apexes: [ 72 // Adds exportable dependencies of the APEX to the sdk, 73 // e.g. *classpath_fragments. 74 "com.android.mediaprovider", 75 ], 76} 77 78// Encapsulate the contributions made by the com.android.mediaprovider to the bootclasspath. 79bootclasspath_fragment { 80 name: "com.android.mediaprovider-bootclasspath-fragment", 81 contents: [ 82 "framework-mediaprovider", 83 "framework-pdf", 84 "framework-pdf-v", 85 "framework-photopicker", 86 ], 87 apex_available: ["com.android.mediaprovider"], 88 // The bootclasspath_fragments that provide APIs on which this depends. 89 fragments: [ 90 { 91 apex: "com.android.art", 92 module: "art-bootclasspath-fragment", 93 }, 94 ], 95 // Additional stubs libraries that this fragment's contents use which are 96 // not provided by another bootclasspath_fragment. 97 additional_stubs: [ 98 "android-non-updatable", 99 ], 100 // Additional hidden API flag files to override the defaults. This must only be 101 // modified by the Soong or platform compat team. 102 hidden_api: { 103 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], 104 105 // The following packages contain classes from other modules on the 106 // bootclasspath. That means that the hidden API flags for this module 107 // has to explicitly list every single class this module provides in 108 // that package to differentiate them from the classes provided by other 109 // modules. That can include private classes that are not part of the 110 // API. 111 split_packages: [ 112 "android.graphics.pdf", 113 "android.graphics.pdf.flags", 114 "android.graphics.pdf.flags.readonly", 115 "android.provider", 116 "android.provider.mediacognitionutils", 117 "android.provider.media.internal.flags", 118 "android.graphics.pdf.common", 119 "android.graphics.pdf.concurrency", 120 "android.graphics.pdf.converters", 121 "android.graphics.pdf.internal.javax.annotation", 122 "android.graphics.pdf.internal.javax.annotation.concurrent", 123 "android.graphics.pdf.internal.javax.annotation.meta", 124 "android.graphics.pdf.models", 125 "android.graphics.pdf.utils", 126 "android.graphics.pdf.content", 127 "android.graphics.pdf.component", 128 "android.graphics.pdf.models.jni", 129 "android.graphics.pdf.models.selection", 130 "android.graphics.pdf.logging", 131 "android.widget.photopicker", 132 "com.android.providers.media.flags", 133 ], 134 }, 135} 136