platform_build_soong/java
Jingwen Chen bea58093b4 Share certificate bp2build between android_app and apex.
The certificate module is handled the same in Soong between android apps
and apexes, so share the bp2build code as well.

There are a few changes in this CL:

- If override_apex.certificate is unset, the generated apex also unsets
  it. This prevents the generated apex from using the base apex's
  certificate, which is most likely incorrect (e.g. google variant using
  the cert for the aosp variant). Instead, rely on the default
  certificate handling in the macro.
- If the certificate prop is a string, then it gets generated into
  certificate_name in order to disambiguate. This behavior is identical
  to android_app.

Test: added various unit tests.

Bug: 249089160
Fixes: 249089160
Change-Id: I99e18964ff546429a985d0f64dc21e2c69d35d9d
2022-10-03 09:20:47 +00:00
..
config Revert "Use the toolchain from JDK 17" 2022-10-03 03:12:41 +00:00
core-libraries Strip annotations from copy of core-current-stubs-for-system-modules 2022-08-22 08:10:16 +01:00
aapt2.go Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
aar.go Merge "Change deptag for sdk deps to help distinguish" 2022-09-30 22:56:36 +00:00
aar_test.go copy JNI from AAR files to android_app APK 2022-08-02 16:12:06 -04:00
Android.bp Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
android_manifest.go Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +00:00
android_resources.go Initial bp2build converter for android_app. 2021-12-07 09:41:49 -05:00
androidmk.go Merge "Move common test_options properties into the android package" 2022-08-17 15:22:18 +00:00
androidmk_test.go Make "overrides" attribute of Android_app overridable 2022-05-16 18:26:52 -07:00
app.go Share certificate bp2build between android_app and apex. 2022-10-03 09:20:47 +00:00
app_builder.go Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
app_import.go Move AllowMissingDependencies handling into processMainCert 2022-09-14 12:48:17 -07:00
app_import_test.go Move AllowMissingDependencies handling into processMainCert 2022-09-14 12:48:17 -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 Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +00:00
base.go Change deptag for sdk deps to help distinguish 2022-09-30 11:01:18 -04:00
boot_jars.go
bootclasspath.go Ensure that *bootclasspath* module types depend on device variants 2022-05-11 15:20:37 +00:00
bootclasspath_fragment.go Merge "Exclude unsupported libraries from sdk snapshot" 2022-09-21 12:43:47 +00:00
bootclasspath_fragment_test.go Merge "Revert "bootclasspath_fragment: Treat some specific modules as test"" 2022-09-16 18:24:49 +00:00
builder.go Revert "Use kapt stubs for kotlin header jar for javac" 2022-04-06 07:04:09 +00:00
classpath_element.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
classpath_fragment.go build/soong - support the REL platform version in classpath 2022-05-06 16:09:52 +00:00
device_host_converter.go
device_host_converter_test.go
dex.go Merge "Add soong support for resource shrinking" 2022-09-24 05:19:33 +00:00
dex_test.go Provide platform build flag to R8/D8 2022-09-21 11:01:32 -07:00
dexpreopt.go Remove obsolete dexpreopt config option UseArtImage. 2022-04-27 13:36:47 +01:00
dexpreopt_bootjars.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
dexpreopt_bootjars_test.go
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
droiddoc.go Change deptag for sdk deps to help distinguish 2022-09-30 11:01:18 -04:00
droiddoc_test.go
droidstubs.go Pass --sdk-extensions-{root,info} to metalava 2022-09-07 16:13:49 +02:00
droidstubs_test.go Pass --sdk-extensions-{root,info} to metalava 2022-09-07 16:13:49 +02: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 AIDL source generation accounts for Bazel paths 2022-08-25 14:47:41 -04:00
genrule.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07: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-29 14:08:30 +00:00
hiddenapi_modular.go Exclude unsupported libraries from sdk snapshot 2022-09-14 16:47:18 +01:00
hiddenapi_monolithic.go
hiddenapi_singleton.go
hiddenapi_singleton_test.go
jacoco.go add jacocoagent by default to Java modules 2022-09-09 16:50:38 -04:00
jacoco_test.go
java.go Change deptag for sdk deps to help distinguish 2022-09-30 11:01:18 -04:00
java_resources.go convert java_resources with bp2build 2022-05-10 14:32:52 +00:00
java_test.go AIDL source generation accounts for Bazel paths 2022-08-25 14:47:41 -04: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 "Allow libcore to have NewApi warnings" 2022-08-19 14:32:57 +00:00
lint_defaults.txt Demote BinderGetCallingInMainThread from an error to a warning 2022-09-27 15:20:01 -07:00
lint_test.go Fix copy-paste error 2022-09-30 17:04:15 +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 Push Hidden_api inside HiddenAPIFlagFileProperties 2022-08-19 13:29:47 +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 Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07: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
prebuilt_apis.go Tweak logic for when extension txt is latest 2022-09-21 11:51:21 +00:00
prebuilt_apis_test.go Tweak logic for when extension txt is latest 2022-09-21 11:51:21 +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
resourceshrinker.go Add soong support for resource shrinking 2022-09-23 19:11:11 +02:00
robolectric.go Change deptag for sdk deps to help distinguish 2022-09-30 11:01:18 -04:00
rro.go Enforce mainline modules to have latest target sdk version by default. 2022-09-21 19:09:38 +00:00
rro_test.go Merge "Remove InstallBypassMake and ToMakePath" am: f1228f570a am: a9f335cf5a am: fd865c6688 am: 8ef2179a6e 2021-12-17 07:36:53 +00:00
sdk.go Add experimental option to target Java 17 2022-05-24 13:05:17 +01:00
sdk_library.go java_sdk_library_import: Copy all prebuilt properties to child modules 2022-09-28 13:58:52 +01:00
sdk_library_external.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
sdk_library_test.go java_sdk_library_import: Copy all prebuilt properties to child modules 2022-09-28 13:58:52 +01: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
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 add jacocoagent by default to Java modules 2022-09-09 16:50:38 -04:00
tradefed.go