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

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

am bba1eede: am f369a9b5: Remove stale temporary ASEC containers

Merge commit 'bba1eede'

* commit 'bba1eede':
  Remove stale temporary ASEC containers
parents a8ec0459 bba1eede
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -9788,13 +9788,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