Merge "Fix PackageManagerService passing usesLibraryFiles to dexOpt." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
765a1b7857
@@ -16950,6 +16950,15 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
return;
|
||||
}
|
||||
|
||||
// Shared libraries for the package need to be updated.
|
||||
synchronized (mPackages) {
|
||||
try {
|
||||
updateSharedLibrariesLPr(pkg, null);
|
||||
} catch (PackageManagerException e) {
|
||||
Slog.e(TAG, "updateAllSharedLibrariesLPw failed: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "dexopt");
|
||||
// Do not run PackageDexOptimizer through the local performDexOpt
|
||||
// method because `pkg` may not be in `mPackages` yet.
|
||||
@@ -16998,6 +17007,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
args.user, installerPackageName, volumeUuid, res, args.installReason);
|
||||
}
|
||||
}
|
||||
|
||||
synchronized (mPackages) {
|
||||
final PackageSetting ps = mSettings.mPackages.get(pkgName);
|
||||
if (ps != null) {
|
||||
|
||||
Reference in New Issue
Block a user