Merge "Merge "Keep finalized staged sessions in session database" into qt-dev am: 141d330086" into qt-dev-plus-aosp
am: 4c5dae0cd4
Change-Id: I86951c8c2b32e6a2ab83da83d83f52cba72e59d6
This commit is contained in:
@@ -2050,6 +2050,13 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
|
||||
synchronized (mLock) {
|
||||
assertCallerIsOwnerOrRootLocked();
|
||||
|
||||
if (isStagedAndInTerminalState()) {
|
||||
// We keep the session in the database if it's in a finalized state. It will be
|
||||
// removed by PackageInstallerService when the last update time is old enough.
|
||||
// Also, in such cases cleanStageDir() has already been executed so no need to
|
||||
// do it now.
|
||||
return;
|
||||
}
|
||||
if (mCommitted && params.isStaged) {
|
||||
synchronized (mLock) {
|
||||
mDestroyed = true;
|
||||
|
||||
Reference in New Issue
Block a user