Merge "Don't mark terminal staged sessions as failed"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4dd77f0b02
@@ -259,7 +259,7 @@ 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()) {
|
||||
if (mPm.isDeviceUpgrading() && !session.isStagedAndInTerminalState()) {
|
||||
session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED,
|
||||
"Build fingerprint has changed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user