platform_build_soong/apex
Paul Duffin 58e0e769c9 Only export boot image files to APEX if they are actually created
Previously, the generation of the rules to create the boot image files
was separate from the code to provide those files to the APEX which
meant that it was possible for the APEX to try and use files that had
no rules to create them.

This changes avoids that by only exporting the files once the rules
have been created.

This necessitated a few changes to tests that were relying on the
previous behavior. Including removing completely the test that used an
image_name: "boot" as that is no longer a valid configuration name as
its functionality has been replaced by platform_bootclasspath.

A follow up change will make the validation of the properties of
bootclasspath_fragment stricter to prevent "boot" being used as the
image_name.

Bug: 177892522
Bug: 188680624
Test: lunch qemu_trusty_arm64-userdebug
      m droid dist
      - verify that before this change it fails and after this change
        it works.
      m com.android.art
      - verify that this change does not change the APEX contents with
        either qemu_trusty_arm64-userdebug or aosp_arm64-userdebug
Change-Id: I0497a151eb0731cbe6a1a7e7bbbb1e4dda75898f
2021-05-24 16:22:43 +01:00
..
Android.bp Add systemserverclasspath_fragments property to apex. 2021-05-17 21:46:08 +01:00
androidmk.go Ignore cc.Module.HideFromMake when producing flattened apex Android.mk entries 2021-04-29 13:54:49 -07:00
apex.go Fix indexing bug when config.Arches() returns an empty array. 2021-05-21 21:07:26 +01:00
apex_singleton.go Treat allowed_deps.txt source file as optional. 2021-03-18 11:15:33 +00:00
apex_test.go Fix indexing bug when config.Arches() returns an empty array. 2021-05-21 21:07:26 +01:00
bootclasspath_fragment_test.go Only export boot image files to APEX if they are actually created 2021-05-24 16:22:43 +01:00
builder.go Merge "Make apex.key and certificate overridable." 2021-04-22 15:37:22 +00:00
deapexer.go Generalize deapexer module to export any files 2021-05-10 14:26:37 +01:00
key.go Extract apex registration code into function for reuse 2021-03-09 23:03:40 +00:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 13:44:16 +00:00
platform_bootclasspath_test.go Workaround to make AlwaysUsePrebuiltSdks() work with platform_bootclasspath 2021-05-19 11:42:20 +00:00
prebuilt.go Record the actual APEXes that a module is part of. 2021-05-18 16:05:29 +09:00
systemserver_classpath_fragment_test.go Add systemserverclasspath_fragments property to apex. 2021-05-17 21:46:08 +01:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
testing.go bootclasspath_fragment: Add contents to snapshot 2021-04-21 23:54:22 +01:00
vndk.go Remove global state from VNDK apexes 2021-03-02 12:23:16 -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