1package { 2 // See: http://go/android-license-faq 3 default_applicable_licenses: ["Android-Apache-2.0"], 4} 5 6apex { 7 name: "com.android.mediaprovider", 8 defaults: ["com.android.mediaprovider-defaults"], 9 manifest: "apex_manifest.json", 10 apps: ["MediaProvider"], 11 compat_configs: ["media-provider-platform-compat-config"], 12} 13 14apex_defaults { 15 name: "com.android.mediaprovider-defaults", 16 bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"], 17 prebuilts: [ 18 "current_sdkinfo", 19 "privapp_allowlist_com.android.providers.media.module.xml" 20 ], 21 key: "com.android.mediaprovider.key", 22 certificate: ":com.android.mediaprovider.certificate", 23 file_contexts: ":com.android.mediaprovider-file_contexts", 24 defaults: ["r-launched-apex-module"], 25 // Indicates that pre-installed version of this apex can be compressed. 26 // Whether it actually will be compressed is controlled on per-device basis. 27 compressible: true, 28} 29 30apex_key { 31 name: "com.android.mediaprovider.key", 32 public_key: "com.android.mediaprovider.avbpubkey", 33 private_key: "com.android.mediaprovider.pem", 34} 35 36android_app_certificate { 37 name: "com.android.mediaprovider.certificate", 38 certificate: "com.android.mediaprovider", 39} 40 41sdk { 42 name: "mediaprovider-module-sdk", 43 bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"], 44} 45 46// Encapsulate the contributions made by the com.android.mediaprovider to the bootclasspath. 47bootclasspath_fragment { 48 name: "com.android.mediaprovider-bootclasspath-fragment", 49 contents: ["framework-mediaprovider"], 50 apex_available: ["com.android.mediaprovider"], 51 52 // The bootclasspath_fragments that provide APIs on which this depends. 53 fragments: [ 54 { 55 apex: "com.android.art", 56 module: "art-bootclasspath-fragment", 57 }, 58 ], 59 60 // Additional stubs libraries that this fragment's contents use which are 61 // not provided by another bootclasspath_fragment. 62 additional_stubs: [ 63 "android-non-updatable", 64 ], 65 66 // Additional hidden API flag files to override the defaults. This must only be 67 // modified by the Soong or platform compat team. 68 hidden_api: { 69 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], 70 71 // The following packages contain classes from other modules on the 72 // bootclasspath. That means that the hidden API flags for this module 73 // has to explicitly list every single class this module provides in 74 // that package to differentiate them from the classes provided by other 75 // modules. That can include private classes that are not part of the 76 // API. 77 split_packages: [ 78 "android.provider", 79 ], 80 }, 81} 82