Skip to content

Commit e6c660a

Browse files
author
Christopher Tate
committed
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
1 parent ceb5a98 commit e6c660a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/java/android/content/ContentService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,15 @@ public void registerContentObserver(Uri uri, boolean notifyForDescendants,
154154
throw new IllegalArgumentException("You must pass a valid uri and observer");
155155
}
156156

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

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

0 commit comments

Comments
 (0)