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

Commit f3c1480e authored by Dario Freni's avatar Dario Freni Committed by Android (Google) Code Review
Browse files

Merge "Always restore staged sessions on boot." into qt-dev

parents 52ce3686 f2449f7c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -363,8 +363,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
                                System.currentTimeMillis() - session.getUpdatedMillis();
                        final boolean valid;
                        if (session.isStaged()) {
                            if (timeSinceUpdate >= MAX_TIME_SINCE_UPDATE_MILLIS
                                    && session.isStagedAndInTerminalState()) {
                            if (timeSinceUpdate >= MAX_TIME_SINCE_UPDATE_MILLIS) {
                                valid = false;
                            } else {
                                valid = true;
+1 −1
Original line number Diff line number Diff line
@@ -1150,7 +1150,7 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
     */
    void sealAndValidateIfNecessary() {
        synchronized (mLock) {
            if (!mShouldBeSealed) {
            if (!mShouldBeSealed || isStagedAndInTerminalState()) {
                return;
            }
        }