Skip to content

Commit 443e474

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "Fix issue #7175553: GRANT_URI_PERMISSION doesn't apper to work on secondary user" into jb-mr1-dev
2 parents db831da + 11f0cb7 commit 443e474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5036,7 +5036,6 @@ public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) {
50365036
pid = tlsIdentity.pid;
50375037
}
50385038

5039-
uid = UserHandle.getAppId(uid);
50405039
// Our own process gets to do everything.
50415040
if (pid == MY_PID) {
50425041
return PackageManager.PERMISSION_GRANTED;
@@ -5088,7 +5087,8 @@ int checkGrantUriPermissionLocked(int callingUid, String targetPkg,
50885087
} else {
50895088
try {
50905089
pi = pm.resolveContentProvider(name,
5091-
PackageManager.GET_URI_PERMISSION_PATTERNS, UserHandle.getUserId(callingUid));
5090+
PackageManager.GET_URI_PERMISSION_PATTERNS,
5091+
UserHandle.getUserId(callingUid));
50925092
} catch (RemoteException ex) {
50935093
}
50945094
}

0 commit comments

Comments
 (0)