platform_build_soong/dexpreopt
Ulya Trafimovich f5d91bb3b4 Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer."
This reverts commit 0b1c70efbc.

The reverted commit was based on the idea that uses-libraries that are
explicitly specified in build files should not be implicitly added to
the manifest, as that would mean that anything added to the build files
will flow to the manifest.

Although this logic is correct, it prevents propagation of
uses-libraries from dependencies, which is wrong: if a library has an
explicit uses-library property in Android.bp, this property is expected
to be propagated to the library's dependencies. Failing to do so would
mean that every user of that library has to add uses-library property to
their build files, which doesn't scale (see b/214255490 for example).

Bug: 214255490
Test: lunch aosp_cf_x86_64_phone-userdebug && m && launch_cvd \
    && adb wait-for-device && adb root \
    && adb logcat | grep -E 'ClassLoaderContext [a-z ]+ mismatch'
    # empty output, no errors at boot
Change-Id: I6f420e76a89aa2f37be99f877711736640f2c361
2022-05-04 12:10:06 +01:00
..
dexpreopt_gen Make OutDir() and SoongOutDir() be consistent. 2021-09-02 13:35:49 +02:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
class_loader_context.go Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
class_loader_context_test.go Revert "Don't add uses_libs/optional_uses_libs to the manifest_fixer." 2022-05-04 12:10:06 +01:00
config.go Remove obsolete dexpreopt config option UseArtImage. 2022-04-27 13:36:47 +01:00
dexpreopt.go Dexpreopt standalone system server jars. 2021-12-20 15:07:26 +00:00
DEXPREOPT_IMPLEMENTATION.md Add markdown docs for dexpreopt. 2022-03-03 17:08:25 +00:00
dexpreopt_test.go Dexpreopt standalone system server jars. 2021-12-20 15:07:26 +00:00
OWNERS Update dex_preopt related OWNERS 2021-06-17 17:05:39 +01:00
testing.go Test that DisableGenerateProfile takes effects for APEXes. 2021-12-14 10:55:12 +00:00