Merge "Drop "prebuilt_" prefix when adding libraries to class loader context."
This commit is contained in:
@@ -258,6 +258,9 @@ const AnySdkVersion int = android.FutureApiLevelInt
|
|||||||
func (clcMap ClassLoaderContextMap) addContext(ctx android.ModuleInstallPathContext, sdkVer int, lib string,
|
func (clcMap ClassLoaderContextMap) addContext(ctx android.ModuleInstallPathContext, sdkVer int, lib string,
|
||||||
hostPath, installPath android.Path, nestedClcMap ClassLoaderContextMap) error {
|
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
|
devicePath := UnknownInstallLibraryPath
|
||||||
if installPath == nil {
|
if installPath == nil {
|
||||||
if android.InList(lib, CompatUsesLibs) || android.InList(lib, OptionalCompatUsesLibs) {
|
if android.InList(lib, CompatUsesLibs) || android.InList(lib, OptionalCompatUsesLibs) {
|
||||||
|
Reference in New Issue
Block a user