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

Commit 1023d724 authored by Sanjana Sunil's avatar Sanjana Sunil
Browse files

Revert "Revert "Increase retention period of staged sessions""

This reverts commit 0f003307.

Reason for revert: Updated failing test to handle updated retention period

Bug: 208825408
Bug: 212545980
Test: atest
com.android.cts_root.rollback.host.RollbackManagerHostTest#testExpireSession
Test: atest CtsRootPackageInstallerHostTestCases

Change-Id: I5745d860ba18bb5aa886c1d13733cd722669ab69
parent 0f003307
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
    /** Automatically destroy sessions older than this */
    private static final long MAX_AGE_MILLIS = 3 * DateUtils.DAY_IN_MILLIS;
    /** Automatically destroy staged sessions that have not changed state in this time */
    private static final long MAX_TIME_SINCE_UPDATE_MILLIS = 7 * DateUtils.DAY_IN_MILLIS;
    private static final long MAX_TIME_SINCE_UPDATE_MILLIS = 21 * DateUtils.DAY_IN_MILLIS;
    /** Upper bound on number of active sessions for a UID that has INSTALL_PACKAGES */
    private static final long MAX_ACTIVE_SESSIONS_WITH_PERMISSION = 1024;
    /** Upper bound on number of active sessions for a UID without INSTALL_PACKAGES */