Bob Badour | 45b6e7d | 2021-02-12 18:09:33 -0800 | [diff] [blame] | 1 | package { |
| 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 Sharkey | 56c34e8 | 2019-11-21 15:56:37 -0700 | [diff] [blame] | 10 | apex { |
| 11 | name: "com.android.mediaprovider", |
Jeff Sharkey | 355d3c8 | 2019-12-16 11:56:52 -0700 | [diff] [blame] | 12 | defaults: ["com.android.mediaprovider-defaults"], |
Jeff Sharkey | 56c34e8 | 2019-11-21 15:56:37 -0700 | [diff] [blame] | 13 | manifest: "apex_manifest.json", |
Jeff Sharkey | 355d3c8 | 2019-12-16 11:56:52 -0700 | [diff] [blame] | 14 | apps: ["MediaProvider"], |
Paul Duffin | 60f299c | 2021-03-15 19:42:39 +0000 | [diff] [blame] | 15 | compat_configs: ["media-provider-platform-compat-config"], |
Jeff Sharkey | 355d3c8 | 2019-12-16 11:56:52 -0700 | [diff] [blame] | 16 | } |
Jeff Sharkey | 56c34e8 | 2019-11-21 15:56:37 -0700 | [diff] [blame] | 17 | |
Jeff Sharkey | 355d3c8 | 2019-12-16 11:56:52 -0700 | [diff] [blame] | 18 | apex_defaults { |
| 19 | name: "com.android.mediaprovider-defaults", |
satayev | de9636a | 2021-05-12 15:47:03 +0100 | [diff] [blame] | 20 | bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"], |
Anton Hansson | b7cac4a | 2021-05-20 17:59:27 +0100 | [diff] [blame] | 21 | prebuilts: ["current_sdkinfo"], |
Jeff Sharkey | 56c34e8 | 2019-11-21 15:56:37 -0700 | [diff] [blame] | 22 | key: "com.android.mediaprovider.key", |
| 23 | certificate: ":com.android.mediaprovider.certificate", |
| 24 | file_contexts: ":com.android.mediaprovider-file_contexts", |
Nikita Ioffe | 0bf6f89 | 2020-11-03 22:58:11 +0000 | [diff] [blame] | 25 | min_sdk_version: "30", |
Nikita Ioffe | 1b65cb3 | 2021-02-04 01:27:26 +0000 | [diff] [blame] | 26 | // 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 Coenen | fa4e588 | 2021-02-17 11:50:20 +0100 | [diff] [blame] | 29 | updatable: true, |
Jeff Sharkey | 56c34e8 | 2019-11-21 15:56:37 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | apex_key { |
| 33 | name: "com.android.mediaprovider.key", |
| 34 | public_key: "com.android.mediaprovider.avbpubkey", |
| 35 | private_key: "com.android.mediaprovider.pem", |
| 36 | } |
| 37 | |
| 38 | android_app_certificate { |
| 39 | name: "com.android.mediaprovider.certificate", |
| 40 | certificate: "com.android.mediaprovider", |
| 41 | } |
Hai Zhang | 47753b4 | 2021-02-13 19:33:52 -0800 | [diff] [blame] | 42 | |
| 43 | sdk { |
| 44 | name: "mediaprovider-module-sdk", |
Anton Hansson | 26781d5 | 2021-06-07 15:40:00 +0100 | [diff] [blame] | 45 | bootclasspath_fragments: ["com.android.mediaprovider-bootclasspath-fragment"], |
Hai Zhang | 47753b4 | 2021-02-13 19:33:52 -0800 | [diff] [blame] | 46 | } |
satayev | de9636a | 2021-05-12 15:47:03 +0100 | [diff] [blame] | 47 | |
| 48 | // Encapsulate the contributions made by the com.android.mediaprovider to the bootclasspath. |
| 49 | bootclasspath_fragment { |
| 50 | name: "com.android.mediaprovider-bootclasspath-fragment", |
| 51 | contents: ["framework-mediaprovider"], |
| 52 | apex_available: ["com.android.mediaprovider"], |
Paul Duffin | 427b778 | 2021-06-28 23:58:22 +0100 | [diff] [blame] | 53 | |
| 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 | |
Corina | 185eecf | 2021-11-09 17:19:57 +0000 | [diff] [blame] | 62 | // 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 Duffin | 427b778 | 2021-06-28 23:58:22 +0100 | [diff] [blame] | 68 | // 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 | }, |
satayev | de9636a | 2021-05-12 15:47:03 +0100 | [diff] [blame] | 73 | } |