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

Commit 49de87a1 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 80a3fbf4: am c9eb398a: Merge "Clear identity when killing media provider." into mnc-dev

* commit '80a3fbf4':
  Clear identity when killing media provider.
parents 3e75ef10 80a3fbf4
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -740,6 +740,8 @@ class MountService extends IMountService.Stub
     */
    @Deprecated
    private void killMediaProvider() {
        final long token = Binder.clearCallingIdentity();
        try {
            final ProviderInfo provider = mPms.resolveContentProvider(MediaStore.AUTHORITY, 0,
                    UserHandle.USER_OWNER);
            if (provider != null) {
@@ -750,6 +752,9 @@ class MountService extends IMountService.Stub
                } catch (RemoteException e) {
                }
            }
        } finally {
            Binder.restoreCallingIdentity(token);
        }
    }

    private void resetIfReadyAndConnectedLocked() {