Files
build_soong/android
Spandan Das 2d8884a377 Fix non-determinism in prebuilt selection
If multiple versions of the prebuilt module sdk share the same soong
config namespace, then PrebuiltPostDepsMutator rewrites rdeps to one of
those prebuilts in a non-deterministic way.

This CL uses apex_contributions to make this deterministic. Multiple
prebuilts will not be allowed to have their prefer evaluate to true. If
this happens, one of the prebuilts must be explicitly declared in
apex_contributions.

This CL also fixes the special-casing of the top-level
java_sdk_library_import in ReplaceDirectDependencies. For
framework-foo.v2, it will use BaseModuleName framework-foo instead of
SdkLibraryName framework-foo.v2 to determine if the source module has
been selected.

Test: Added a unit test
Test: aninja -t query
    out/soong/.intermediates/packages/modules/Permission/SafetyCenter/Config/safety-center-config/android_common/javac/safety-center-config.jar
    | grep module_sdk is empty (should not cause a regression for
    323454855)

Bug: TODO
Change-Id: I7191200c330c5bcb9d5532006d3c573a60db61cc
2024-02-29 06:34:49 +00:00
..
2024-01-05 09:54:09 -08:00
2023-04-17 19:26:07 +00:00
2023-03-22 12:58:38 -07:00
2024-01-05 09:54:09 -08:00
2024-01-18 12:43:24 -08:00
2023-06-22 08:18:33 -07:00
2023-05-19 20:31:32 +00:00
2024-01-18 12:43:24 -08:00
2024-01-18 12:43:24 -08:00
2024-02-02 15:56:32 -08:00
2023-04-10 20:20:41 +00:00
2023-04-10 20:20:41 +00:00
2024-01-05 09:54:09 -08:00
2023-04-26 17:18:19 -07:00
2024-01-18 14:16:06 -08:00
2024-02-02 15:56:32 -08:00
2024-01-18 12:43:24 -08:00
2024-02-07 12:03:32 -08:00
2024-01-18 14:16:06 -08:00
2024-01-18 14:16:06 -08:00
2024-01-30 14:42:12 -08:00
2024-02-07 12:03:32 -08:00