diff options
| author | 2021-07-16 12:00:29 +0000 | |
|---|---|---|
| committer | 2021-07-16 12:00:29 +0000 | |
| commit | f87aae535687604e102bb9da30f5da2080271ba5 (patch) | |
| tree | c1525c7185865d0741b82e5d1f66bca745858140 | |
| parent | 9cb1577ac71ce2db15600c8f9e39e047ab5b5637 (diff) | |
| parent | e14f80b2d3454b7828be6aed6289b114d893de5f (diff) | |
Merge "Fix handling of "prebuilt_" prefix in classLoaderContextForUsesLibDeps."
| -rwxr-xr-x | java/app.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/app.go b/java/app.go index d464e38c0..4456b22dc 100755 --- a/java/app.go +++ b/java/app.go @@ -1262,12 +1262,12 @@ func (u *usesLibrary) classLoaderContextForUsesLibDeps(ctx android.ModuleContext return } - dep := ctx.OtherModuleName(m) + dep := android.RemoveOptionalPrebuiltPrefix(ctx.OtherModuleName(m)) if lib, ok := m.(UsesLibraryDependency); ok { - libName := android.RemoveOptionalPrebuiltPrefix(dep) + libName := dep if ulib, ok := m.(ProvidesUsesLib); ok && ulib.ProvidesUsesLib() != nil { - libName = android.RemoveOptionalPrebuiltPrefix(*ulib.ProvidesUsesLib()) + libName = *ulib.ProvidesUsesLib() // Replace module name with library name in `uses_libs`/`optional_uses_libs` in // order to pass verify_uses_libraries check (which compares these properties // against library names written in the manifest). |