diff options
| author | Amith Yamasani <yamasani@google.com> | 2012-02-16 14:31:23 -0800 |
|---|---|---|
| committer | Amith Yamasani <yamasani@google.com> | 2012-02-16 15:03:42 -0800 |
| commit | 67cf7d314b5b94db1a9f1c57140b6615b0ea8291 (patch) | |
| tree | 2de67be8b686a2909a93f2aca89ec7e2328597bc /core/java/android/content/Context.java | |
| parent | 8181201c6e55765fd58d2ff07921a143b879edd9 (diff) | |
| download | frameworks_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.java | 10 |
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 |
