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

Commit 9905a8d4 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 68128325: am 443e4748: Merge "Fix issue #7175553: GRANT_URI_PERMISSION...

am 68128325: am 443e4748: Merge "Fix issue #7175553: GRANT_URI_PERMISSION doesn\'t apper to work on secondary user" into jb-mr1-dev

* commit '68128325':
  Fix issue #7175553: GRANT_URI_PERMISSION doesn't apper to work on secondary user
parents 9fe955c4 68128325
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5038,7 +5038,6 @@ public final class ActivityManagerService extends ActivityManagerNative
            pid = tlsIdentity.pid;
        }
        uid = UserHandle.getAppId(uid);
        // Our own process gets to do everything.
        if (pid == MY_PID) {
            return PackageManager.PERMISSION_GRANTED;
@@ -5090,7 +5089,8 @@ public final class ActivityManagerService extends ActivityManagerNative
        } else {
            try {
                pi = pm.resolveContentProvider(name,
                        PackageManager.GET_URI_PERMISSION_PATTERNS, UserHandle.getUserId(callingUid));
                        PackageManager.GET_URI_PERMISSION_PATTERNS,
                        UserHandle.getUserId(callingUid));
            } catch (RemoteException ex) {
            }
        }