Merge "Re-enable Optimizing apps dialog" into nyc-dev

This commit is contained in:
David Brazdil
2016-04-06 15:21:22 +00:00
committed by Android (Google) Code Review

View File

@@ -7014,6 +7014,15 @@ public class PackageManagerService extends IPackageManager.Stub {
Log.i(TAG, "Extracting app " + curr + " of " + total + ": " + pkg.packageName);
}
if (!isFirstBoot()) {
try {
ActivityManagerNative.getDefault().showBootMessage(
mContext.getResources().getString(R.string.android_upgrading_apk,
curr, total), true);
} catch (RemoteException e) {
}
}
if (PackageDexOptimizer.canOptimizePackage(pkg)) {
// If the cache was pruned, any compiled odex files will likely be out of date
// and would have to be patched (would be SELF_PATCHOAT, which is deprecated).