• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    sh_binaries: [
18        // MediaProvider CLI (cli/media_provider_cli_wrapper.sh)
19        "media_provider"
20    ],
21    prebuilts: [
22        "current_sdkinfo",
23        "privapp_allowlist_com.android.providers.media.module.xml"
24    ],
25    key: "com.android.mediaprovider.key",
26    certificate: ":com.android.mediaprovider.certificate",
27    file_contexts: ":com.android.mediaprovider-file_contexts",
28    defaults: ["r-launched-apex-module"],
29    // Indicates that pre-installed version of this apex can be compressed.
30    // Whether it actually will be compressed is controlled on per-device basis.
31    compressible: true,
32}
33
34apex_key {
35    name: "com.android.mediaprovider.key",
36    public_key: "com.android.mediaprovider.avbpubkey",
37    private_key: "com.android.mediaprovider.pem",
38}
39
40android_app_certificate {
41    name: "com.android.mediaprovider.certificate",
42    certificate: "com.android.mediaprovider",
43}
44
45sdk {
46    name: "mediaprovider-module-sdk",
47    apexes: [
48        // Adds exportable dependencies of the APEX to the sdk,
49        // e.g. *classpath_fragments.
50        "com.android.mediaprovider",
51    ],
52}
53
54// Encapsulate the contributions made by the com.android.mediaprovider to the bootclasspath.
55bootclasspath_fragment {
56    name: "com.android.mediaprovider-bootclasspath-fragment",
57    contents: ["framework-mediaprovider"],
58    apex_available: ["com.android.mediaprovider"],
59
60    // The bootclasspath_fragments that provide APIs on which this depends.
61    fragments: [
62        {
63            apex: "com.android.art",
64            module: "art-bootclasspath-fragment",
65        },
66    ],
67
68    // Additional stubs libraries that this fragment's contents use which are
69    // not provided by another bootclasspath_fragment.
70    additional_stubs: [
71        "android-non-updatable",
72    ],
73
74    // Additional hidden API flag files to override the defaults. This must only be
75    // modified by the Soong or platform compat team.
76    hidden_api: {
77        max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
78
79        // The following packages contain classes from other modules on the
80        // bootclasspath. That means that the hidden API flags for this module
81        // has to explicitly list every single class this module provides in
82        // that package to differentiate them from the classes provided by other
83        // modules. That can include private classes that are not part of the
84        // API.
85        split_packages: [
86            "android.provider",
87        ],
88    },
89}
90