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

Commit e6c660ab authored by Christopher Tate's avatar Christopher Tate
Browse files

Disable content observer cross-user permission checks...

... until we have a solid fix for the singleton ContentProvider
problem cases in place.

Bug 7190837

Change-Id: Ibbef2ddc594896ba7b9217e2856c3e393f525af6
parent ceb5a981
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -154,11 +154,15 @@ public final class ContentService extends IContentService.Stub {
            throw new IllegalArgumentException("You must pass a valid uri and observer");
        }

        // STOPSHIP: disable the multi-user permission checks until a solid fix for the
        // content provider / observer case is in place.
        /*
        final int callingUser = UserHandle.getCallingUserId();
        if (callingUser != userHandle) {
            mContext.enforceCallingOrSelfPermission(Manifest.permission.INTERACT_ACROSS_USERS_FULL,
                    "no permission to observe other users' provider view");
        }
        */

        if (userHandle < 0) {
            if (userHandle == UserHandle.USER_CURRENT) {