summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-02-16 14:31:23 -0800
committerAmith Yamasani <yamasani@google.com>2012-02-16 15:03:42 -0800
commit67cf7d314b5b94db1a9f1c57140b6615b0ea8291 (patch)
tree2de67be8b686a2909a93f2aca89ec7e2328597bc /core/java/android/content/Context.java
parent8181201c6e55765fd58d2ff07921a143b879edd9 (diff)
downloadframeworks_base-67cf7d314b5b94db1a9f1c57140b6615b0ea8291.zip
frameworks_base-67cf7d314b5b94db1a9f1c57140b6615b0ea8291.tar.gz
frameworks_base-67cf7d314b5b94db1a9f1c57140b6615b0ea8291.tar.bz2
Fix Power Control widget
Some changes in AppWidgetService were interfering with widget permissions. Added some hidden methods in Context to communicate the requesting user information instead of using the calling uid. Bug: 6019296 Change-Id: I5e519fd3fbbfa5b3fcc5c297b729c671dac8e7c7
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 6d4cdae..a1198de 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -905,6 +905,16 @@ public abstract class Context {
public abstract void sendBroadcast(Intent intent);
/**
+ * Same as #sendBroadcast(Intent intent), but for a specific user. Used by the system only.
+ * @param intent the intent to broadcast
+ * @param userId user to send the intent to
+ * @hide
+ */
+ public void sendBroadcast(Intent intent, int userId) {
+ throw new RuntimeException("Not implemented. Must override in a subclass.");
+ }
+
+ /**
* Broadcast the given intent to all interested BroadcastReceivers, allowing
* an optional required permission to be enforced. This
* call is asynchronous; it returns immediately, and you will continue