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

Commit bba1eede authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am f369a9b5: Remove stale temporary ASEC containers

Merge commit 'f369a9b5' into gingerbread-plus-aosp

* commit 'f369a9b5':
  Remove stale temporary ASEC containers
parents 4b812738 f369a9b5
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -9787,13 +9787,18 @@ 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) {
               if (cid.startsWith(mTempContainerPrefix)) {
                   Log.i(TAG, "Destroying stale temporary container " + cid);
                   PackageHelper.destroySdDir(cid);
               } else {
                   Log.w(TAG, "Container " + cid + " is stale");
               }
           }
       }
   }

   /*
    * Utility method to unload a list of specified containers