Merge commit 'bba1eede35b356a50dfe12692c2ff30cd5de152d' * commit 'bba1eede35b356a50dfe12692c2ff30cd5de152d': Remove stale temporary ASEC containers
This commit is contained in:
@@ -9788,10 +9788,15 @@ class PackageManagerService extends IPackageManager.Stub {
|
||||
if (doGc) {
|
||||
Runtime.getRuntime().gc();
|
||||
}
|
||||
// List stale containers.
|
||||
// List stale containers and destroy stale temporary containers.
|
||||
if (removeCids != null) {
|
||||
for (String cid : removeCids) {
|
||||
Log.w(TAG, "Container " + cid + " is stale");
|
||||
if (cid.startsWith(mTempContainerPrefix)) {
|
||||
Log.i(TAG, "Destroying stale temporary container " + cid);
|
||||
PackageHelper.destroySdDir(cid);
|
||||
} else {
|
||||
Log.w(TAG, "Container " + cid + " is stale");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user