From 6d51571835737c7502a2e111ee9dc2527ebad984 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 20 Sep 2012 16:06:08 -0700 Subject: 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 --- .../src/com/android/layoutlib/bridge/android/BridgeContext.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/layoutlib/bridge/src') 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; -- cgit v1.1