Merge "frameworks/base: Track owner in appropriate owners list of Uri"
This commit is contained in:
@ -4385,14 +4385,17 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
perm.modeFlags |= modeFlags;
|
||||
if (owner == null) {
|
||||
perm.globalModeFlags |= modeFlags;
|
||||
} else if ((modeFlags&Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) {
|
||||
} else {
|
||||
if ((modeFlags&Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) {
|
||||
perm.readOwners.add(owner);
|
||||
owner.addReadPermission(perm);
|
||||
} else if ((modeFlags&Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) {
|
||||
}
|
||||
if ((modeFlags&Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) {
|
||||
perm.writeOwners.add(owner);
|
||||
owner.addWritePermission(perm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void grantUriPermissionLocked(int callingUid,
|
||||
String targetPkg, Uri uri, int modeFlags, UriPermissionOwner owner) {
|
||||
|
Reference in New Issue
Block a user