platform_build_soong/dexpreopt
Ulya Trafimovich fa20b187dc Drop "prebuilt_" prefix when adding libraries to class loader context.
This is needed when some source libraries get replaced with prebuilt
variants: CLC should contain one entry for a library (the prebuilt one
or the source one, whichever of them is preferred). Because the prebuilt
module name starts with "prebuilt_" prefix, previously Soong considered
such libraries as two different ones libraries and added both to CLC.

Bug: 193425964

Test: mark "prebuilt_android.net.ipsec.ike" as preferred and `m nothing`
      (before this CL it would fail the build, now it builds fine).

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' -C 1
      # empty output, no errors
Change-Id: Icc42533d9915060d7fffda12aa93b9d18dc4f83d
Merged-In: Icc42533d9915060d7fffda12aa93b9d18dc4f83d
(cherry picked from commit 69c1aa94ac88bcb07f32c2ae4217776e82903068)
2021-07-15 11:17:24 +01:00
..
dexpreopt_gen Add usesTargetFiles option in dexpreopt_gen 2021-05-18 12:09:28 +09:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
class_loader_context.go Drop "prebuilt_" prefix when adding libraries to class loader context. 2021-07-15 11:17:24 +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-20 17:36:02 +01:00
dexpreopt.go Add usesTargetFiles option in dexpreopt_gen 2021-05-18 12:09:28 +09:00
dexpreopt_test.go Rename fields in dexpreopt config 2021-05-07 21:40:23 +09: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