Skip to content

Commit a1c4663

Browse files
Christopher TateAndroid (Google) Code Review
authored andcommitted
Merge "Disable content observer cross-user permission checks..." into jb-mr1-dev
2 parents 390392f + e6c660a commit a1c4663

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)