Use name instead of package name
Can't get package setting info with wrong package name. The API toStaticSharedLibraryPackageName will build correct package name with correct information. Bug: 170699390 Bug: 172232086 Test: manual test pass. Change-Id: Iad97a3adf19ec37797123070a0662bfc7fc3337c
This commit is contained in:
committed by
Patrick Baumann
parent
30951b0666
commit
eac499d10d
@@ -10548,7 +10548,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
continue;
|
||||
}
|
||||
final PackageSetting staticLibPkgSetting = getPackageSetting(
|
||||
toStaticSharedLibraryPackageName(sharedLibraryInfo.getPackageName(),
|
||||
toStaticSharedLibraryPackageName(sharedLibraryInfo.getName(),
|
||||
sharedLibraryInfo.getLongVersion()));
|
||||
if (staticLibPkgSetting == null) {
|
||||
Slog.wtf(TAG, "Shared lib without setting: " + sharedLibraryInfo);
|
||||
|
||||
Reference in New Issue
Block a user