Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9ef5111 authored by Paul Bouman's avatar Paul Bouman Committed by Steve Kondik
Browse files

Show Optimizing app dialog on first boot

The boot dialog is currently hidden on first boot but the bootanimation
can take a very long time to go away. Show the boot dialog so we know
whats happening.

Change-Id: I71d50eb8929edde38fcfdcccc2cb05c25777c6dd
parent d1e82836
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -6303,14 +6303,12 @@ public class PackageManagerService extends IPackageManager.Stub {
        if (DEBUG_DEXOPT) {
            Log.i(TAG, "Optimizing 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) {
        }
        }
        PackageParser.Package p = pkg;
        synchronized (mInstallLock) {
            mPackageDexOptimizer.performDexOpt(p, null /* instruction sets */,
+1 −1
Original line number Diff line number Diff line
@@ -524,7 +524,7 @@ public final class SystemServer {
            Slog.i(TAG, "Window Manager");
            wm = WindowManagerService.main(context, inputManager,
                    mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL,
                    !mFirstBoot, mOnlyCore);
                    true, mOnlyCore);
            ServiceManager.addService(Context.WINDOW_SERVICE, wm);
            ServiceManager.addService(Context.INPUT_SERVICE, inputManager);