platform_build_soong/dexpreopt
Ulya Trafimovich fc0f6e34ce Fix the way manifest fixer detects optional <uses-library> entries.
Previously manifest_fixer used a naive way to distiniguish optional libs
from required ones: it checked if a library is on the list of optional
compatibility libraries. This works for compatibility libs, but not for
other libs.

Now we properly track optionality through all stages of the build,
starting with the addition of the library as a dependency (here's where
the `uses_libs`/`optional_uses_libs` distinction kicks in), store it in
dependency tag and propagate to class loader context, and from there to
the manifest_fixer.

The tests have been updated accordingly.

Bug: 196377222
Test: lunch bertha_x86_64-userdebug && m droid dist cts mts
Change-Id: I3631ce59ebe47116ce7a9b3d33a86f636846ef0f
2021-08-13 16:10:42 +01:00
..
dexpreopt_gen Add usesTargetFiles option in dexpreopt_gen 2021-05-15 00:29:49 +09:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
class_loader_context.go Fix the way manifest fixer detects optional <uses-library> entries. 2021-08-13 16:10:42 +01:00
class_loader_context_test.go Fix the way manifest fixer detects optional <uses-library> entries. 2021-08-13 16:10:42 +01:00
config.go Rename UpdatableSystemServerJars to ApexSystemServerJars. 2021-07-28 14:04:49 +01:00
dexpreopt.go Rename UpdatableSystemServerJars to ApexSystemServerJars. 2021-07-28 14:04:49 +01:00
dexpreopt_test.go Rename fields in dexpreopt config 2021-05-07 21:40:23 +09:00
OWNERS Update dex_preopt related OWNERS 2021-06-17 17:05:39 +01:00
testing.go Rename UpdatableBootJars to ApexBootJars. 2021-07-22 17:35:42 +01:00