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,13 +9787,18 @@ class PackageManagerService extends IPackageManager.Stub {
|
|||||||
if (doGc) {
|
if (doGc) {
|
||||||
Runtime.getRuntime().gc();
|
Runtime.getRuntime().gc();
|
||||||
}
|
}
|
||||||
// List stale containers.
|
// List stale containers and destroy stale temporary containers.
|
||||||
if (removeCids != null) {
|
if (removeCids != null) {
|
||||||
for (String cid : removeCids) {
|
for (String cid : removeCids) {
|
||||||
|
if (cid.startsWith(mTempContainerPrefix)) {
|
||||||
|
Log.i(TAG, "Destroying stale temporary container " + cid);
|
||||||
|
PackageHelper.destroySdDir(cid);
|
||||||
|
} else {
|
||||||
Log.w(TAG, "Container " + cid + " is stale");
|
Log.w(TAG, "Container " + cid + " is stale");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Utility method to unload a list of specified containers
|
* Utility method to unload a list of specified containers
|
||||||
|
Reference in New Issue
Block a user