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

Commit 7ed3386f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Move build fingerprint check outside of main loop"

parents a102c75e ede47c92
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -257,8 +257,9 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
        }
        // Don't hold mSessions lock when calling restoreSession, since it might trigger an APK
        // atomic install which needs to query sessions, which requires lock on mSessions.
        boolean isDeviceUpgrading = mPm.isDeviceUpgrading();
        for (PackageInstallerSession session : stagedSessionsToRestore) {
            if (mPm.isDeviceUpgrading() && !session.isStagedAndInTerminalState()) {
            if (isDeviceUpgrading && !session.isStagedAndInTerminalState()) {
                session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED,
                        "Build fingerprint has changed");
            }