platform_build_soong/java
Paul Duffin 1364891fad Use implementation jar for updatable-media in snapshot for S
While enabling prebuilts in T we hit b/229932396 which was caused by
some parts of the build depending on the prebuilt updatable-media jar
which used to be a full implementation jar but which is now an invalid
jar as the snapshot must not be including implementation details. We
fixed the issue in T but we are hitting the same problem in S with the
M-2022-07.

That is the first train in which the prebuilt updatable-media module
provides an invalid jar, prior to that it was always providing an
implementation jar. This change tweaks the sdk snapshot generation
code to use an implementation jar for updatable-media in the S
snapshot to avoid partners having to cherry pick changes similar to
those needed to fix b/229932396 in T.

Bug: 239121291
Test: packages/modules/common/build/mainline_modules_sdks.sh
      # Check that S media snapshot includes implementation jar.
      # Check that S art snapshot includes invalid jar.
      # Check that T media snapshot includes invalid jar.
Change-Id: Ib49484d00a60b4ed7f8268e04f9c10a3498edb56
2022-07-15 17:23:10 +00:00
..
config Use R8 wrapper target and flags. 2022-06-23 12:23:18 +02:00
core-libraries Strip annotations from library stubs 2022-05-10 19:41:59 +01:00
aapt2.go
aar.go Document AARImportProperties fields 2022-04-13 02:12:37 +00:00
Android.bp add missing java/*_test.go files 2022-05-31 18:07:03 +00:00
android_manifest.go Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
android_resources.go Initial bp2build converter for android_app. 2021-12-07 09:41:49 -05:00
androidmk.go Make sure dist files have license metadata. 2022-06-01 21:07:25 -07:00
androidmk_test.go Make "overrides" attribute of Android_app overridable 2022-05-16 18:26:52 -07:00
app.go Merge "rust: Allow rust_ffi_shared in jni_libs" 2022-06-28 12:57:05 +00:00
app_builder.go
app_import.go Fix documentation for android_app_import 2022-04-13 21:40:23 +00:00
app_import_test.go Export provenance metadata for prebuilt APKs and APEXes. 2022-04-05 16:16:16 -07:00
app_set.go Install android_app_set modules in Soong 2021-11-17 19:55:33 -08:00
app_set_test.go Extract primary apk from apk set zip 2021-11-17 19:55:33 -08:00
app_test.go Merge "Fix prebuilts of overridden apps" 2022-05-17 19:03:42 +00:00
base.go Merge "Revert "Add -Xjvm-defaults=all to kotlin compilations"" 2022-07-11 19:29:18 +00:00
boot_jars.go Disable boot jars package check if no boot jars have been configured 2021-06-22 14:55:30 +01:00
bootclasspath.go Ensure that *bootclasspath* module types depend on device variants 2022-05-11 15:20:37 +00:00
bootclasspath_fragment.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
bootclasspath_fragment_test.go bootclasspath_fragment: Require at least one hidden_api package property 2022-05-27 16:27:50 +01:00
builder.go Revert "Use kapt stubs for kotlin header jar for javac" 2022-04-06 07:04:09 +00:00
classpath_element.go Add ClasspathElement support 2021-06-18 21:02:10 +01:00
classpath_fragment.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
device_host_converter.go Add android_sdk_repo_host to build platform-tools&build-tools 2021-10-13 01:25:02 -07:00
device_host_converter_test.go
dex.go Revert "Revert "Use D8 by default for android_test"" 2022-06-02 19:12:30 +00:00
dex_test.go Don't pass static libs to r8 2022-03-18 20:48:27 +00:00
dexpreopt.go Remove obsolete dexpreopt config option UseArtImage. 2022-04-27 13:36:47 +01:00
dexpreopt_bootjars.go Add a new file for the boot image. 2022-07-11 17:47:58 +01:00
dexpreopt_bootjars_test.go Build boot images in bootclasspath_fragment/platform_bootclasspath 2021-05-12 21:51:27 +01:00
dexpreopt_check.go Update dexpreopt_check to check all system server jars. 2021-12-21 12:51:36 +00:00
dexpreopt_config.go Pass --preloaded-classes to boot image compilation. 2022-03-15 14:28:38 +00:00
dexpreopt_test.go Revert^2 "Preopt APEX system server jars." 2021-09-16 06:25:26 +00:00
droiddoc.go Add AIDL enforce_permissions attribute 2022-02-24 10:15:27 +11:00
droiddoc_test.go
droidstubs.go Check that API is up-to-date when building java_sdk_library 2022-05-27 14:03:44 +00:00
droidstubs_test.go Support using api-versions.xml from another module 2022-05-09 12:18:17 +00:00
fuzz.go Don't package host cross modules in javaFuzzPackager 2022-06-28 15:16:15 -07:00
fuzz_test.go Add jni support to java_fuzz_host 2022-04-26 18:49:02 +00:00
gen.go Add AIDL enforce_permissions attribute 2022-02-24 10:15:27 +11:00
genrule.go bp2build converts java_genrule and java_genrule_host 2022-01-21 17:50:40 +00:00
genrule_test.go bp2build converts java_genrule and java_genrule_host 2022-01-21 17:50:40 +00:00
hiddenapi.go hiddenapi: Prevent libraries for Q/R from include S+ flags. 2022-04-28 18:34:48 +01:00
hiddenapi_modular.go hiddenapi: Prevent libraries for Q/R from include S+ flags. 2022-04-28 18:34:48 +01:00
hiddenapi_monolithic.go Separate creation of signature patterns from overlap checking 2021-08-06 13:40:34 +01:00
hiddenapi_singleton.go Merge "Drop "prebuilt_" prefixes from names registered in ApexInfo.InApexXxx." 2021-05-27 17:23:16 +00:00
hiddenapi_singleton_test.go Propagate the dex jar path as an OptionalPath which is either valid or 2021-09-23 17:19:55 +01:00
jacoco.go Added quotes to protect wildcard 2021-06-30 14:29:49 -04:00
jacoco_test.go Added quotes to protect wildcard 2021-06-30 14:29:49 -04:00
java.go Use implementation jar for updatable-media in snapshot for S 2022-07-15 17:23:10 +00:00
java_resources.go convert java_resources with bp2build 2022-05-10 14:32:52 +00:00
java_test.go Merge "add multilib data_device_bins properties" 2022-06-08 14:07:11 +00:00
jdeps.go Export Java library dependency information 2022-04-18 10:23:28 +08:00
jdeps_test.go
kotlin.go Use the current java version for -jvm-target 2022-06-28 16:06:16 -07:00
kotlin_test.go Treat kotlin-annotations the same as kotlin-stdlib 2022-05-04 19:07:32 +00:00
legacy_core_platform_api_usage.go Remove ethernet-service jar dependency. 2022-03-16 00:52:40 +00:00
lint.go Merge "Revert^2 "Fix erroneous "Field requires API level 33 (current min is 32)" warnings"" 2022-07-01 22:48:49 +00:00
lint_defaults.txt Disable newapi check in defaults 2022-04-25 18:17:11 +00:00
lint_test.go make system server modules use filtered lint database 2021-07-05 16:57:34 +00:00
OWNERS Adding metalava team to OWNERS to be able to disable metalava checks that will break platform build. 2022-01-28 18:34:08 +00:00
platform_bootclasspath.go Propagate min and max sdk versions to classpaths.proto configs. 2021-12-01 17:58:41 +00:00
platform_bootclasspath_test.go Make sure dist files have license metadata. 2022-06-01 21:07:25 -07:00
platform_compat_config.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
platform_compat_config_test.go
plugin.go emulate java_library static_deps with Bazel exports 2022-03-30 18:58:38 +00:00
plugin_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
prebuilt_apis.go Add custom java_sdk_library info to the SDK info file 2022-05-16 17:09:10 +00:00
prebuilt_apis_test.go Add support for sdk extensions in prebuilt_apis 2022-02-21 16:43:43 +00:00
proto.go Clean up some bp2build technical debt 2022-05-13 19:47:48 -04:00
proto_test.go add support for java stream protos in protoDeps 2022-02-07 22:39:38 +00:00
robolectric.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
rro.go Add support for excluding libraries from class loader contexts 2022-02-07 14:57:53 +00:00
rro_test.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
sdk.go Add experimental option to target Java 17 2022-05-24 13:05:17 +01:00
sdk_library.go sdkLibraryProperties: fix typo 2022-05-25 16:27:55 +02:00
sdk_library_external.go
sdk_library_test.go Add custom java_sdk_library info to the SDK info file 2022-05-16 17:09:10 +00:00
sdk_test.go Rename core-current-stubs-system-modules to be more consistent 2021-11-03 16:58:29 +00:00
support_libraries.go
system_modules.go Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
system_modules_test.go
systemserver_classpath_fragment.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
systemserver_classpath_fragment_test.go Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb 2021-11-30 10:51:10 +00:00
testing.go Move proguard test files to java package 2022-04-11 11:44:32 -07:00
tradefed.go