platform_build_soong/apex
Martin Stjernholm 95994067b1 Do not allow duplicate deapexer dependencies.
Without these errors, the last encountered deapexer would silently be
used, and we wouldn't know if it was taken from the prebuilt APEX that
actually get installed in the system image.

With this error check there may be only one enabled prebuilt_apex or
apex_set for each apex_name (which defaults to the module name). E.g.
if there are both prebuilt com.android.foo and com.google.android.foo,
it is necessary to disable one of them in the .bp file.

Merged-In is set from https://r.android.com/1745454, a change that has
gone into AOSP and internal master, as well as sc-dev-plus-aosp, but
specifically not sc-dev. This change cannot merge into sc-dev-plus-aosp
and others, because they may or may not have the com.google.android.art
prebuilt APEX present depending on manifest, and with this check
exactly one of com.android.art and com.google.android.art prebuilts has
to be present and enabled. It'll be cherry-picked to AOSP along with a
full fix for b/192006406, when it can be safely enabled everywhere.

Test: m nothing SOONG_CONFIG_art_module_source_build=false
Test: m nothing SOONG_CONFIG_art_module_source_build=true
Test: m nothing
  with enabled:true for the com.android.art prebuilt APEX - check that
  it fails with an "ambiguous duplicate deapexer" error
Bug: 192006406
Bug: 192542393
Change-Id: I44566fd26b12f82a8a67fe4a69e56303460756d0
Merged-In: Id2410b4e38a78ec2146a42298840954381a7c472
2021-07-02 00:31:01 +01:00
..
Android.bp Add ClasspathElement support 2021-06-18 21:02:10 +01:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 15:26:16 +00:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09: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 inconsistencies in the apex names used for the apex variations. 2021-06-25 21:27:14 +01:00
apex_singleton.go Merge changes from topic "move_allowed_deps_txt" am: 2b077baa5e am: 0ee372ad6f am: 3c5d96925f 2021-03-22 12:45:29 +00:00
apex_test.go Do not allow duplicate deapexer dependencies. 2021-07-02 00:31:01 +01:00
bootclasspath_fragment_test.go Calculate widest stub dex jars per module 2021-06-28 16:05:05 +01:00
builder.go Rename test_only_no_hashtree to generate_hashtree 2021-06-09 19:43:46 +01:00
classpath_element_test.go Add ClasspathElement support 2021-06-18 21:02:10 +01:00
deapexer.go Simplify deapexer support 2021-06-21 10:54:22 +01:00
key.go Extract apex registration code into function for reuse 2021-03-09 23:03:40 +00:00
platform_bootclasspath_test.go Use classpath elements in platform_bootclasspath 2021-06-22 19:16:27 +01:00
prebuilt.go Ignore license and similar dependencies of prebuilt_apex/apex_set 2021-06-29 18:42:55 +01:00
systemserver_classpath_fragment_test.go Rename generate proto config file to match classpath type. 2021-05-24 13:38:45 +01: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