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

Commit 2108454b authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Add build fingerprint checks to APK sessions am: f19eabdd

Change-Id: Ia32845b55bc66b4b3e9e520ea1c6f7aaf1e10396
parents c7f44bac f19eabdd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -259,6 +259,10 @@ 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.
        for (PackageInstallerSession session : stagedSessionsToRestore) {
            if (mPm.isDeviceUpgrading()) {
                session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED,
                        "Build fingerprint has changed");
            }
            mStagingManager.restoreSession(session);
        }
        // Broadcasts are not sent while we restore sessions on boot, since no processes would be