platform_build_soong/java
Jiakai Zhang 02669e8a30 Preopt system server jars with updatable bootclasspath.
Previously, we preopt system server jars without updatable bootclasspath
in the build system so that the artifacts can keep valid after a
mainline update. Things have been changed after then. We now re-compile
system server jars on the user's device after a mainline update
(b/189467174), so we no longer need the artifacts generated at build
time to keep valid. Therefore, we can preopt system server jars with
updatable bootclasspath to achieve better performance.

Bug: 199573699
Test: m services
Test: manual - 1. Build a system image and flash it into a device.
  2. adb root && adb shell grep "services" /proc/`adb shell pidof system_server`/maps
  3. See "/system/framework/oat/x86_64/services.{odex,vdex,art} in the
  output.
  4. adb logcat -d odrefresh:D odsign:D "*:S"
  5. See "odrefresh said artifacts are VALID" and no dex2oat invocation
  in the output.

Change-Id: I9c94a54aa15c46708067f4bc89ff05bc7af32a7b
2021-09-15 09:01:07 +00:00
..
config Revert "Time out and dump stacks from R8 processes after 30 minutes" 2021-08-05 17:04:06 -07:00
core-libraries [LSC] Add LOCAL_LICENSE_KINDS to build/soong 2021-08-27 13:30:35 -07:00
aapt2.go
aar.go Add {.aar} support for android_library 2021-09-14 21:02:43 +00:00
Android.bp Add initial bp2build support for converting android_app_certificate modules. 2021-07-28 06:51:07 -04:00
android_manifest.go Don't add uses_libs/optional_uses_libs to the manifest_fixer. 2021-08-20 15:54:42 +01:00
android_resources.go
androidmk.go Preopt APEX system server jars. 2021-09-15 09:01:07 +00:00
androidmk_test.go add the LOCAL_DISABLE_TEST_CONFIG variable 2021-05-27 17:53:46 -07:00
app.go Fix panic when a module has an invalid output path 2021-09-14 17:35:19 -07:00
app_builder.go
app_import.go Fix DONT_UNCOMPRESS_PRIV_APPS_DEXS for android_app_import. 2021-09-01 15:44:50 +01:00
app_import_test.go Fix DONT_UNCOMPRESS_PRIV_APPS_DEXS for android_app_import. 2021-09-01 15:44:50 +01:00
app_set.go
app_set_test.go
app_test.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
base.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02: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 Add HiddenAPIScope to replace use of SdkKind 2021-06-24 21:56:27 +01:00
bootclasspath_fragment.go Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
bootclasspath_fragment_test.go Fix tests to use correct fixtures for configuring (Apex)BootJars. 2021-08-10 15:35:52 +01:00
builder.go Add a build flag to always enable errorprone per-target 2021-06-14 15:31:32 -07:00
classpath_element.go Add ClasspathElement support 2021-06-18 11:46:52 +01:00
classpath_fragment.go Rename UpdatableBootJars to ApexBootJars. 2021-07-22 17:35:42 +01:00
device_host_converter.go
device_host_converter_test.go
dex.go Reland: Pass jars with resources to R8 2021-08-05 23:16:38 -07:00
dexpreopt.go Preopt system server jars with updatable bootclasspath. 2021-09-15 09:01:07 +00:00
dexpreopt_bootjars.go Skip dexbootjar check using AllowMissingDependencies flag 2021-08-27 02:54:07 +00:00
dexpreopt_bootjars_test.go Build boot images in bootclasspath_fragment/platform_bootclasspath 2021-05-12 21:51:27 +01:00
dexpreopt_config.go Merge "Rename UpdatableBootJars to ApexBootJars." 2021-07-26 17:59:36 +00:00
dexpreopt_test.go Preopt APEX system server jars. 2021-09-15 09:01:07 +00:00
droiddoc.go Stop filtering html files from droidstubs input 2021-06-07 16:02:53 +01:00
droiddoc_test.go
droidstubs.go Use system stubs for framework-doc-system-stubs. 2021-06-29 22:25:57 +01:00
droidstubs_test.go Use system stubs for framework-doc-system-stubs. 2021-06-29 22:25:57 +01:00
gen.go
genrule.go
hiddenapi.go Rename UpdatableBootJars to ApexBootJars. 2021-07-22 17:35:42 +01:00
hiddenapi_modular.go Filter blocked entries from modular flag files 2021-08-11 17:29:47 +01:00
hiddenapi_monolithic.go Separate creation of signature patterns from overlap checking 2021-08-06 13:40:34 +01:00
hiddenapi_singleton.go Drop "prebuilt_" prefixes from names registered in ApexInfo.InApexXxx. 2021-05-26 17:05:17 +01:00
hiddenapi_singleton_test.go Add a test for hidden API encoding of java_sdk_library 2021-05-17 18:38:06 +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 Preopt APEX system server jars. 2021-09-15 09:01:07 +00:00
java_resources.go
java_test.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
jdeps.go
jdeps_test.go
kotlin.go
kotlin_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
legacy_core_platform_api_usage.go
lint.go make system server modules use filtered lint database 2021-07-05 16:57:34 +00:00
lint_defaults.txt Disable lint checks which do not apply in the platform 2021-07-24 14:48:19 +00:00
lint_test.go make system server modules use filtered lint database 2021-07-05 16:57:34 +00:00
OWNERS Update dex_preopt related OWNERS 2021-06-17 17:05:39 +01:00
platform_bootclasspath.go Separate creation of signature patterns from overlap checking 2021-08-06 13:40:34 +01:00
platform_bootclasspath_test.go Make CheckHiddenAPIRuleInputs more reusable 2021-06-20 19:09:09 +01:00
platform_compat_config.go Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
platform_compat_config_test.go
plugin.go
plugin_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
prebuilt_apis.go
proto.go
robolectric.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
rro.go Port module_partition logic for RRO from Make to Soong 2021-06-08 17:53:31 +00:00
rro_test.go Port module_partition logic for RRO from Make to Soong 2021-06-08 17:53:31 +00:00
sdk.go "module_current" and "system_server_current" should contain ART's @SystemApi(MODULE_LIBRARIES) 2021-06-29 22:05:58 +01:00
sdk_library.go Preopt APEX system server jars from prebuilts. 2021-09-15 09:01:07 +00:00
sdk_library_external.go
sdk_library_test.go Preopt APEX system server jars from prebuilts. 2021-09-15 09:01:07 +00:00
sdk_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07: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 Make sure that classpath fragment contents appear in make vars. 2021-08-16 12:00:25 +01:00
systemserver_classpath_fragment_test.go Rename generate proto config file to match classpath type. 2021-05-24 12:52:01 +01:00
testing.go Preopt APEX system server jars. 2021-09-15 09:01:07 +00:00
tradefed.go