Merge "Drop "prebuilt_" prefix when adding libraries to class loader context." am: bd14f9a952

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1765982

Change-Id: Ic6459e82ac8cd6ddc8aadfe79212a456b4eb847e
This commit is contained in:
Ulyana Trafimovich
2021-07-15 10:26:58 +00:00
committed by Automerger Merge Worker

View File

@@ -258,6 +258,9 @@ const AnySdkVersion int = android.FutureApiLevelInt
func (clcMap ClassLoaderContextMap) addContext(ctx android.ModuleInstallPathContext, sdkVer int, lib string,
hostPath, installPath android.Path, nestedClcMap ClassLoaderContextMap) error {
// For prebuilts, library should have the same name as the source module.
lib = android.RemoveOptionalPrebuiltPrefix(lib)
devicePath := UnknownInstallLibraryPath
if installPath == nil {
if android.InList(lib, CompatUsesLibs) || android.InList(lib, OptionalCompatUsesLibs) {