platform_build_soong/dexpreopt
Ulya Trafimovich 840efb6661 Don't attempt to add stub libraries to class loader context.
A Java module may depend on a stub library. In that case an additional
dependency on the implementation library is created, and it is used to
add the implementation library to class loader context. We should not
attempt to add the stubs library as well (previously the attempt to add
it happend after the implemention was added to CLC, to the attempt was
unsuccessful).

Raise an error if someone tries to add the same library with different
build/instal paths.

Also, rename local variable `implicitSdkLib` to `sdkLib` to better
reflect its meaning.

Bug: 193425964

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' -C1
      # empty output, no errors
Change-Id: I01c1bdd23f9d118d891d0b806e7e3b4d78896a34
2021-07-16 14:44:18 +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 Don't attempt to add stub libraries to class loader context. 2021-07-16 14:44:18 +01:00
class_loader_context_test.go Fix toJsonClassLoaderContextRec size bug 2021-04-22 11:58:43 +00:00
config.go Don't fail if the target module is disabled in dex2oat tool 2021-05-18 21:58:38 +01:00
dexpreopt.go Add usesTargetFiles option in dexpreopt_gen 2021-05-15 00:29:49 +09: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 Merge "Allow using updatable boot jars in dexpreopt (but don't use them yet)." 2021-03-25 10:13:45 +00:00