Rename dexpreopt.config field to bring it in sync with Make.
Different names of the same field in Make and in Soong resulted in the field being dropped when unmarshalling the JSON from Make to Soong. As a result, the list of optional used libraries for Make modules was always empty. Test: lunch aosp_cf_x86_phone-userdebug && m Test: Cherry-pick in internal master and observe that the logcat error "ClassLoaderContext shared library size mismatch" for GoogleDialer has disappeared: terminal-1 $ lunch cf_x86_phone-userdebug && m && launch_cvd terminal-2 $ adb wait-for-device && adb root \ && adb logcat | grep 'size mismatch' (nothing after the change, one error message before the change) Bug: 132357300 Change-Id: I57820646fa7c1d8af01b2cbc8a3521da450719c0
This commit is contained in:
@@ -285,7 +285,7 @@ func dexpreoptCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, g
|
||||
|
||||
if module.EnforceUsesLibraries {
|
||||
// Unconditional class loader context.
|
||||
usesLibs := append(copyOf(module.UsesLibraries), module.PresentOptionalUsesLibraries...)
|
||||
usesLibs := append(copyOf(module.UsesLibraries), module.OptionalUsesLibraries...)
|
||||
classLoaderContexts.addLibs(anySdkVersion, module, usesLibs...)
|
||||
|
||||
// Conditional class loader context for API version < 28.
|
||||
|
Reference in New Issue
Block a user