blob: 668ff1c0c49d17cacd2c58445a454c1a6a5e884b [file] [log] [blame]
Bob Badour45b6e7d2021-02-12 18:09:33 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "packages_providers_MediaProvider_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["packages_providers_MediaProvider_license"],
8}
9
Jeff Sharkey56c34e82019-11-21 15:56:37 -070010apex {
11 name: "com.android.mediaprovider",
Jeff Sharkey355d3c82019-12-16 11:56:52 -070012 defaults: ["com.android.mediaprovider-defaults"],
Jeff Sharkey56c34e82019-11-21 15:56:37 -070013 manifest: "apex_manifest.json",
Jeff Sharkey355d3c82019-12-16 11:56:52 -070014 apps: ["MediaProvider"],
Paul Duffin60f299c2021-03-15 19:42:39 +000015 compat_configs: ["media-provider-platform-compat-config"],
Jeff Sharkey355d3c82019-12-16 11:56:52 -070016}
Jeff Sharkey56c34e82019-11-21 15:56:37 -070017
Jeff Sharkey355d3c82019-12-16 11:56:52 -070018apex_defaults {
19 name: "com.android.mediaprovider-defaults",
satayevde9636a2021-05-12 15:47:03 +010020 bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"],
Anton Hanssonb7cac4a2021-05-20 17:59:27 +010021 prebuilts: ["current_sdkinfo"],
Jeff Sharkey56c34e82019-11-21 15:56:37 -070022 key: "com.android.mediaprovider.key",
23 certificate: ":com.android.mediaprovider.certificate",
24 file_contexts: ":com.android.mediaprovider-file_contexts",
Nikita Ioffe0bf6f892020-11-03 22:58:11 +000025 min_sdk_version: "30",
Nikita Ioffe1b65cb32021-02-04 01:27:26 +000026 // Indicates that pre-installed version of this apex can be compressed.
27 // Whether it actually will be compressed is controlled on per-device basis.
28 compressible: true,
Martijn Coenenfa4e5882021-02-17 11:50:20 +010029 updatable: true,
Jeff Sharkey56c34e82019-11-21 15:56:37 -070030}
31
32apex_key {
33 name: "com.android.mediaprovider.key",
34 public_key: "com.android.mediaprovider.avbpubkey",
35 private_key: "com.android.mediaprovider.pem",
36}
37
38android_app_certificate {
39 name: "com.android.mediaprovider.certificate",
40 certificate: "com.android.mediaprovider",
41}
Hai Zhang47753b42021-02-13 19:33:52 -080042
43sdk {
44 name: "mediaprovider-module-sdk",
Anton Hansson26781d52021-06-07 15:40:00 +010045 bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"],
Hai Zhang47753b42021-02-13 19:33:52 -080046}
satayevde9636a2021-05-12 15:47:03 +010047
48// Encapsulate the contributions made by the com.android.mediaprovider to the bootclasspath.
49bootclasspath_fragment {
50 name: "com.android.mediaprovider-bootclasspath-fragment",
51 contents: ["framework-mediaprovider"],
52 apex_available: ["com.android.mediaprovider"],
Paul Duffin427b7782021-06-28 23:58:22 +010053
54 // The bootclasspath_fragments that provide APIs on which this depends.
55 fragments: [
56 {
57 apex: "com.android.art",
58 module: "art-bootclasspath-fragment",
59 },
60 ],
61
Corina185eecf2021-11-09 17:19:57 +000062 // Additional stubs libraries that this fragment's contents use which are
63 // not provided by another bootclasspath_fragment.
64 additional_stubs: [
65 "android-non-updatable",
66 ],
67
Paul Duffin427b7782021-06-28 23:58:22 +010068 // Additional hidden API flag files to override the defaults. This must only be
69 // modified by the Soong or platform compat team.
70 hidden_api: {
71 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
72 },
satayevde9636a2021-05-12 15:47:03 +010073}