diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-08-02 18:31:26 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-08-02 19:07:57 -0700 |
commit | b4163a6e12ee7100c758c6d3d062ade1f2843fce (patch) | |
tree | 2948e83dec184906f2c44ee332431f219b78359d /core/java/android/app/ContextImpl.java | |
parent | b1758cf8cd007bfffb3d8adceca25f3b0c82bd77 (diff) | |
download | frameworks_base-b4163a6e12ee7100c758c6d3d062ade1f2843fce.zip frameworks_base-b4163a6e12ee7100c758c6d3d062ade1f2843fce.tar.gz frameworks_base-b4163a6e12ee7100c758c6d3d062ade1f2843fce.tar.bz2 |
Add APIs for interacting across users.
- Expose the existing Context.sendBroadcast() as
Context.sendBroadcastAsUser().
- Add new android:singleUser attribute for services.
- Add new INTERACT_ACROSS_USERS_FULL permission for full
system-level access to cross-user interface (allows
sendBroadcastAsUser() to send to any receiver).
- Add new INTERACT_ACROSS_USERS_FULL permission for
more restricted cross-user interaction: this is required
for android:singleUser, and allows you to use
sendBroadcastAsUser() but only to send to your own
receivers.
Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
Diffstat (limited to 'core/java/android/app/ContextImpl.java')
-rw-r--r-- | core/java/android/app/ContextImpl.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/app/ContextImpl.java b/core/java/android/app/ContextImpl.java index 74fce62..3c8a290 100644 --- a/core/java/android/app/ContextImpl.java +++ b/core/java/android/app/ContextImpl.java @@ -966,9 +966,8 @@ class ContextImpl extends Context { } } - /** @hide */ @Override - public void sendBroadcast(Intent intent, int userId) { + public void sendBroadcastToUser(Intent intent, int userId) { String resolvedType = intent.resolveTypeIfNeeded(getContentResolver()); try { intent.setAllowFds(false); |