platform_build_soong/apex
Jiakai Zhang cb13b5d1bd Refactor dexpreopt for boot jars to make it flexible to config changes.
In the past, dexpreopt for boot jars was very inflexible, and it was
incredibly hard to make a change that is as simple as adding a jar to a
boot image. Boot image generation was handled by
"platform_bootclasspath" and "bootclasspath_fragment" separately. This
caused not only code duplication but also the inflexiblity as such a
design did not fit today's use cases, where a boot image may take jars
from multiple mainline modules and the platform, and a mainline module
can contribute to multiple boot images. The design casued a huge
maintenance burden as any change to the boot image cost multi-week
efforts.

In recent years, efforts have been made to improve this a bit by a bit.
This change is another step towards making dexpreopt reasonable.

After this change, all boot images are generated by "dex_bootjars",
which is in build/soong and is therefore available on both the full
source tree and the thin manifest (master-art). The change decouples
profile generation/extraction from boot image generation. Profiles for
mainline modules are still handled by "bootclasspath_fragment"
because they need to be packed into APEXes when building mainline
modules and extracted from APEXes whem building the system image from
prebuilt modules. Boot images are not handled by
"bootclasspath_fragment" anymore.

Bug: 290583827
Test: m (all existing tests are still passing)
Test: Manually checked that the boot images are exactly the same as
  before.
Change-Id: Ib5a5f401bee334ffcab5c26618e0c8888b84575a
2023-07-14 12:13:28 +01:00
..
Android.bp apex: drop metadata gathering for multitree. 2023-05-16 17:44:29 +00:00
androidmk.go Remove "flattened" apexes 2023-06-21 14:29:26 +09:00
apex.go Remove "flattened" apexes 2023-06-21 14:29:26 +09:00
apex_sdk_member.go Add apexes property to sdk 2022-07-06 15:58:43 +00:00
apex_singleton.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
apex_test.go Fix some tests for dexpreopt and remove unnecessary tests. 2023-07-11 15:29:12 +01:00
bootclasspath_fragment_test.go Refactor dexpreopt for boot jars to make it flexible to config changes. 2023-07-14 12:13:28 +01:00
bp2build.go Export apex_available_baseline to soong_injection 2023-02-08 17:43:09 -08:00
bp2build_test.go Correct allowlisting for override modules 2023-05-02 09:27:55 -04:00
builder.go Remove "flattened" apexes 2023-06-21 14:29:26 +09:00
classpath_element_test.go bootclasspath_fragment: Require at least one hidden_api package property 2022-05-27 16:27:50 +01:00
deapexer.go Remove --blkid_path argument 2023-06-14 15:23:03 +09:00
dexpreopt_bootjars_test.go Refactor dexpreopt for boot jars to make it flexible to config changes. 2023-07-14 12:13:28 +01:00
key.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
platform_bootclasspath_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
prebuilt.go Remove "flattened" apexes 2023-06-21 14:29:26 +09:00
systemserver_classpath_fragment_test.go Use the profiles in the APEX to dexpreopt system server jars. 2023-02-15 22:47:24 +00:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
testing.go Add allowed-deps tests 2023-04-27 09:56:04 +09:00
vndk.go Enable VNDK when version matches platform VNDK 2023-03-15 23:28:45 -07:00
vndk_test.go Remove obsolete notice property. 2022-07-29 17:54:40 +00:00