Merge "Fail staged session if apexd session is in ROLLBACK_IN_PROGRESS state"

This commit is contained in:
Nikita Ioffe
2019-02-27 22:41:24 +00:00
committed by Android (Google) Code Review

View File

@@ -517,8 +517,10 @@ public class StagingManager {
}
private static boolean isApexSessionFailed(ApexSessionInfo apexSessionInfo) {
// isRollbackInProgress is included to cover the scenario, when a device is rebooted in
// during the rollback, and apexd fails to resume the rollback after reboot.
return apexSessionInfo.isActivationFailed || apexSessionInfo.isUnknown
|| apexSessionInfo.isRolledBack;
|| apexSessionInfo.isRolledBack || apexSessionInfo.isRollbackInProgress;
}
@GuardedBy("mStagedSessions")