| |
| java_defaults { |
| name: "mediaprovider_defaults", |
| |
| manifest: "AndroidManifest.xml", |
| |
| static_libs: [ |
| "androidx.appcompat_appcompat", |
| "androidx.core_core", |
| "guava", |
| ], |
| |
| jni_libs: [ |
| "libfuse_jni", |
| "libfuse" |
| ], |
| |
| resource_dirs: [ |
| "res", |
| ], |
| |
| srcs: [ |
| "src/**/*.aidl", |
| "src/**/*.java", |
| ":framework-mediaprovider-sources", |
| ":framework-mediaprovider-annotation-sources", |
| ":statslog-mediaprovider-java-gen", |
| ], |
| |
| optimize: { |
| proguard_flags_files: ["proguard.flags"], |
| }, |
| |
| plugins: [ |
| "compat-changeid-annotation-processor", |
| "java_api_finder", |
| ], |
| |
| // STOPSHIP: remove this when building against system_current |
| platform_apis: true, |
| // sdk_version: "system_current", |
| |
| certificate: "media", |
| |
| privileged: true, |
| } |
| |
| android_app { |
| name: "MediaProviderLegacy", |
| defaults: ["mediaprovider_defaults"], |
| manifest: "AndroidManifest_Legacy.xml", |
| } |
| |
| android_app { |
| name: "MediaProvider", |
| defaults: ["mediaprovider_defaults"], |
| manifest: "AndroidManifest.xml", |
| aaptflags: ["--custom-package com.android.providers.media"], |
| } |
| |
| platform_compat_config { |
| name: "media-provider-platform-compat-config", |
| src: ":MediaProvider", |
| } |
| |
| genrule { |
| name: "statslog-mediaprovider-java-gen", |
| tools: ["stats-log-api-gen"], |
| cmd: "$(location stats-log-api-gen) --java $(out) --module mediaprovider --javaPackage com.android.providers.media --javaClass MediaProviderStatsLog", |
| out: ["com/android/providers/media/MediaProviderStatsLog.java"], |
| } |