summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorDmitry Dementyev <dementyev@google.com>2017-04-18 13:43:31 -0700
committerDmitry Dementyev <dementyev@google.com>2017-04-24 23:57:30 +0000
commitb6a7dc033ceb11df2d4e95dc1bb272362332e557 (patch)
tree72796c2fb2ce0c4a834d291083d59b47e812713d /core/java/android
parent9e55fcbdc254da098bb792f460296ff0649c3b00 (diff)
Update PACKAGE_REMOVED broadcast.
1) Include KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE. 2) Only send the broadcast to packages which were able to see the account. Test: manual, APCT. Bug:37280078 (cherry picked from commit cbbc99f76224cedb6d680c3cd7f0afc9cc912202) Change-Id: I3c323e545628199903313096f93654687fa8f22b
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/accounts/AccountManager.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/accounts/AccountManager.java b/core/java/android/accounts/AccountManager.java
index b320d5d83cc7..06b09c041f1f 100644
--- a/core/java/android/accounts/AccountManager.java
+++ b/core/java/android/accounts/AccountManager.java
@@ -345,7 +345,13 @@ public class AccountManager {
"android.accounts.LOGIN_ACCOUNTS_CHANGED";
/**
- * Action sent as a broadcast Intent by the AccountsService when any account is removed.
+ * Action sent as a broadcast Intent by the AccountsService when any account is removed
+ * or renamed. Only applications which were able to see the account will receive the intent.
+ * Intent extra will include the following fields:
+ * <ul>
+ * <li> {@link #KEY_ACCOUNT_NAME} - the name of the removed account
+ * <li> {@link #KEY_ACCOUNT_TYPE} - the type of the account
+ * </ul>
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
@BroadcastBehavior(includeBackground = true)