summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ContentService.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2012-09-19 12:46:54 -0700
committerChristopher Tate <ctate@google.com>2012-09-19 12:51:35 -0700
commite6c660ab35d60952e38e74b60c34db57ef00b674 (patch)
treea53dabc891e6501819fee779e155123082bf6e62 /core/java/android/content/ContentService.java
parentceb5a981296e57a5fb1be60f7b030c4d6c7e0acb (diff)
downloadframeworks_base-e6c660ab35d60952e38e74b60c34db57ef00b674.zip
frameworks_base-e6c660ab35d60952e38e74b60c34db57ef00b674.tar.gz
frameworks_base-e6c660ab35d60952e38e74b60c34db57ef00b674.tar.bz2
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
Diffstat (limited to 'core/java/android/content/ContentService.java')
-rw-r--r--core/java/android/content/ContentService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/content/ContentService.java b/core/java/android/content/ContentService.java
index 0f6488a..5986dcd 100644
--- a/core/java/android/content/ContentService.java
+++ b/core/java/android/content/ContentService.java
@@ -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) {