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

Commit c041aced authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 33e81df7: am ddae5f1e: am 8b6d5b6b: Merge "Clear binder id when determining...

am 33e81df7: am ddae5f1e: am 8b6d5b6b: Merge "Clear binder id when determining external storage state" into mnc-dev

* commit '33e81df7':
  Clear binder id when determining external storage state
parents 4f3bd0fe 33e81df7
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2659,8 +2659,15 @@ class MountService extends IMountService.Stub
        boolean foundPrimary = false;

        final int userId = UserHandle.getUserId(uid);
        final boolean reportUnmounted = !mMountServiceInternal.hasExternalStorage(
        final boolean reportUnmounted;

        final long identity = Binder.clearCallingIdentity();
        try {
            reportUnmounted = !mMountServiceInternal.hasExternalStorage(
                    uid, packageName);
        } finally {
            Binder.restoreCallingIdentity(identity);
        }

        synchronized (mLock) {
            for (int i = 0; i < mVolumes.size(); i++) {