summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-20 16:06:08 -0700
committerJeff Sharkey <jsharkey@android.com>2012-09-21 19:49:43 -0700
commit6d51571835737c7502a2e111ee9dc2527ebad984 (patch)
tree8298f3a36bdfbdb95a4fdd52681f82e7f396d31b /tools
parent08681adda06f4699f85838861170fbb062c9fdfe (diff)
downloadframeworks_base-6d51571835737c7502a2e111ee9dc2527ebad984.zip
frameworks_base-6d51571835737c7502a2e111ee9dc2527ebad984.tar.gz
frameworks_base-6d51571835737c7502a2e111ee9dc2527ebad984.tar.bz2
Allow acquiring ContentProviders across users.
Otherwise services like SystemUI will always open content://-style Uris as USER_OWNER. Surfaces through createPackageContextAsUser() which points all ContentResolver operations towards a given user. Start using in RemoteViews, so that Notifications correctly resolve image Uris to the sending user. Also add user support for "content" shell tool. Bug: 7202982 Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
index 428c4c2..80478ba 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
@@ -920,6 +920,12 @@ public final class BridgeContext extends Context {
}
@Override
+ public Context createPackageContextAsUser(String arg0, int arg1, UserHandle user) {
+ // pass
+ return null;
+ }
+
+ @Override
public Context createConfigurationContext(Configuration overrideConfiguration) {
// pass
return null;