platform_build_soong/apex
Jiakai Zhang cee9e19a51 Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb
This CL updates platform_systemserverclasspath,
systemserverclasspath_fragment, and
prebuilt_systemserverclasspath_fragment to write entries for
STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb. A new property
`standalone_contents` is aded to `systemserverclasspath_fragment` and
`prebuilt_systemserverclasspath_fragment` to list the standalone system
server jars in the APEX, and entries will be written to
systemserverclasspath.pb accordingly at build time.

To add more context, these entries will be consumed by derive_classpath
in order to generate an environment variable
PRODUCT_STANDALONE_SYSTEM_SERVER_JARS. The environment variable will
then be comsumed by odrefresh to determine what jars to preopt on early
boot.

Note that the variable should not end with "CLASSPATH" because the list
is not used by runtime as a classpath. It is just a colon-separated list
of jars. System server loads the jars separately with paths hardcoded in
the code.

Bug: 203198541
Test: manual -
  1. Add some jars to PRODUCT_STANDALONE_SYSTEM_SERVER_JARS
  2. Add some other jars to PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS
     and standalone_contents.
  3. Build an image.
  4. Flash the image to a device.
  5. adb shell echo \$STANDALONE_SYSTEMSERVER_JARS
  6. See the correct list of jars.
Change-Id: I09a6fd1d3db85c194330da9b751702a9bf069e26
2021-11-30 10:51:10 +00:00
..
Android.bp Add partial bp2build support for APEX targets (second try). 2021-07-02 07:36:07 -04:00
androidmk.go NDK API coverage 2021-11-22 11:49:49 -08:00
apex.go Remove libsync from apex_available allowlist 2021-11-23 11:06:16 +09:00
apex_singleton.go Merge "Update error message for new policy." am: bf49705608 am: 775f9e37c7 2021-08-04 10:20:47 +00:00
apex_test.go Perform validation of shared library attributes 2021-11-24 17:09:19 +00:00
bootclasspath_fragment_test.go Propagate the dex jar path as an OptionalPath which is either valid or 2021-09-23 17:19:55 +01:00
builder.go Move apex module installation into Soong 2021-11-19 13:37:36 -08:00
classpath_element_test.go Make sure that classpath fragment contents appear in make vars. 2021-08-16 12:00:25 +01:00
deapexer.go Consolidate the code to resolve a deapexer module dependency. 2021-09-23 17:19:55 +01:00
key.go apex.custom_sign_tool property 2021-10-27 04:02:48 +09:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 15:26:16 +00:00
platform_bootclasspath_test.go Retry: Separate hidden API flags needed in sdk snapshots for S and T 2021-10-05 15:27:42 +01:00
prebuilt.go Don't pass ":=" in variable name to AndroidMkEntries.SetString. 2021-11-23 23:17:33 +00:00
systemserver_classpath_fragment_test.go Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb 2021-11-30 10:51:10 +00:00
TEST_MAPPING
testing.go Java APIs used by Mainline modules. 2021-11-12 23:39:35 +00:00
vndk.go Move apex module installation into Soong 2021-11-19 13:37:36 -08:00
vndk_test.go Don't use incorrect version names like VER or BOARD even in tests 2021-04-05 09:32:06 +09:00