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

Commit ebf1fd99 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Allow content provider access across users

If the package has INTERACT_ACROSS_USERS. This had recently
regressed. Bringing back the functionality needed for multiuser
call log syncing.

Bug: 16298776
Change-Id: I4fdc3d676bb8a2bf78f5c27c41a74c0491e343cd
parent ce50e7af
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8054,7 +8054,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                checkedGrants = true;
                checkedGrants = true;
            }
            }
            userId = handleIncomingUser(callingPid, callingUid, userId,
            userId = handleIncomingUser(callingPid, callingUid, userId,
                    false, ALLOW_NON_FULL_IN_PROFILE,
                    false, ALLOW_NON_FULL,
                    "checkContentProviderPermissionLocked " + cpi.authority, null);
                    "checkContentProviderPermissionLocked " + cpi.authority, null);
            if (userId != tmpTargetUserId) {
            if (userId != tmpTargetUserId) {
                // When we actually went to determine the final targer user ID, this ended
                // When we actually went to determine the final targer user ID, this ended