Merge "[pm] update shared libraries if the old package used it" into tm-dev
This commit is contained in:
@@ -335,7 +335,10 @@ final class InstallPackageHelper {
|
|||||||
mPm.mTransferredPackages.add(pkg.getPackageName());
|
mPm.mTransferredPackages.add(pkg.getPackageName());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reconciledPkg.mCollectedSharedLibraryInfos != null) {
|
if (reconciledPkg.mCollectedSharedLibraryInfos != null
|
||||||
|
|| (oldPkgSetting != null && oldPkgSetting.getUsesLibraryInfos() != null)) {
|
||||||
|
// Reconcile if the new package or the old package uses shared libraries.
|
||||||
|
// It is possible that the old package uses shared libraries but the new one doesn't.
|
||||||
mSharedLibraries.executeSharedLibrariesUpdateLPw(pkg, pkgSetting, null, null,
|
mSharedLibraries.executeSharedLibrariesUpdateLPw(pkg, pkgSetting, null, null,
|
||||||
reconciledPkg.mCollectedSharedLibraryInfos, allUsers);
|
reconciledPkg.mCollectedSharedLibraryInfos, allUsers);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user