am f369a9b5
: Remove stale temporary ASEC containers
Merge commit 'f369a9b5f7b2ae75875753caf90ec68fd9dbc144' into gingerbread-plus-aosp * commit 'f369a9b5f7b2ae75875753caf90ec68fd9dbc144': Remove stale temporary ASEC containers
This commit is contained in:
@ -9787,10 +9787,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