History log of /frameworks/base/core/java/android/accounts/AccountManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2c7bc26a7447e6ac9eadcf328259aa3bb1be2949 06-Nov-2012 Amith Yamasani <yamasani@google.com> Authenticate correct user's account when pattern fails multiple times.

Bug: 7473142

Provide hidden methods in AccountManager for querying accounts and
authenticating for a specific user. Lockscreen is running in the
system process. Allow only system process to access accounts across
users.

Also make sure to launch the lock settings screen on the just reset
user using startActivityAsUser()

Change-Id: Ifefc0039ba2b51396b8bd0268f36d5271a3d8676
/frameworks/base/core/java/android/accounts/AccountManager.java
9530e3a22d5ffa2019d1a5177b6a441d4d6d048b 19-Jun-2012 Nicolas Falliere <nicof@google.com> Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec
/frameworks/base/core/java/android/accounts/AccountManager.java
d9640ec712806508877868d08aafaa2d715ff441 23-May-2012 Fred Quintana <fredq@google.com> Add an updateAppPermission() API call to the AccountManagerService AIDL
and have the GrantCredentialsPermissionActivity call that instead of a
static so that it can be made to run in a different process than the
AccountManagerService. Protect this call by checking that the caller
has the same UID as the system process.

Bug: 6545417
Change-Id: I295e65cad68883349a47e7927c171af45c89b229
/frameworks/base/core/java/android/accounts/AccountManager.java
d88324d8ab8b98bbc2c21551be3a8981ee431181 19-Sep-2011 Fred Quintana <fredq@google.com> Fixed the javadoc for AccountManager.newChooseAccountIntent()

Change-Id: Ieb358fa3be46d793de1e04452819477cec786b5b
/frameworks/base/core/java/android/accounts/AccountManager.java
b04fe4e82abb073b4e5d82563b0882cea0dcc139 17-Sep-2011 Fred Quintana <fredq@google.com> Continuation of the unified account chooser flow.

- made the UI match the spec
- added ability to force the account chooser to appear
- added ability to pass in a description that will override the stock one
- added ability to pass in requiredFeatures for addAccount
- added ability to pass in an authTokenType for addAccount

Bug: 5293377
Change-Id: I243c0fd6598c943b1f65753e1f5d3c86629f64f5
/frameworks/base/core/java/android/accounts/AccountManager.java
1121bb5e6ff20a2c694225300507ed486e04fea2 15-Sep-2011 Fred Quintana <fredq@google.com> Add a generic account chooser/add account flow for apps.

The activity is launched as follows:
Account account1 = new Account("account1@gmail.com", "com.google")
Account account2 = new Account("account2@gmail.com", "com.google")
ArrayList<Account> accounts = new ArrayList<Account>();
accounts.add(account1);
accounts.add(account2);
String[] accountTypes = new String[]{"com.google", "com.android.exchange"};
Bundle addAccountOptions = null;
Intent intent = AccountManager.newChooseAccountIntent(account1, accounts,
accountTypes, addAccountOptions);
startActivityForResult(intent, 0);

Change-Id: I05a467bdc3552a2e39397b0182879351f4324389
/frameworks/base/core/java/android/accounts/AccountManager.java
e5847ada7bdf99386dc13471a7d4f08bf779531b 14-Sep-2011 Costin Manolache <costin@google.com> b/5316640 fix bundle add

Change-Id: I567c26f6d8fc1a0ea5827fd32f9012b979cbea71
/frameworks/base/core/java/android/accounts/AccountManager.java
b61e8fbabea2cc40ad65bf4f372a32d526cfc7ac 08-Sep-2011 Costin Manolache <costin@google.com> For consistency with getAuthToken, pass UID/PID for add account. Needed for customizing the add account flow

b/5278759 API changes to pass package, options
b/5249018 consistent/customized add account UI
b/5270079 tag who adds the account

Change-Id: I1ee211d751b565c725c89aa1a429ef2f5bebe34a
/frameworks/base/core/java/android/accounts/AccountManager.java
ad93a323fef9761528512aff753c709b895c8ea0 08-Sep-2011 Fred Quintana <fredq@google.com> Add a form of getAuthToken that both accepts an options Bundle and
doesn't accepts an activity.

Bug: 5278759
Change-Id: I513c9b5d8a907e26b9ad3c0d5977614820a4990c
/frameworks/base/core/java/android/accounts/AccountManager.java
46703b099516c383a6882815bcf9cd4df0ec538d 07-Apr-2011 Brian Carlstrom <bdc@google.com> Tolerate missing AccountManager resource, not just missing resource name

In addition to the primary change in the subject, also some minor cleanup of javadoc, typos, CloseGuard warning, etc found while working on a new AbstractAccountAuthenticator.

Change-Id: I73f3408773a43a0021a15f8d051fd3dbbdf898a5
/frameworks/base/core/java/android/accounts/AccountManager.java
d606045070dcf6a011e49a7711d2f17d8f2de8c1 25-Jan-2011 Costin Manolache <costin@google.com> If 'customTokens', let authenticator handle notification.

Bug: 3377952
Change-Id: Iffb0ed01c39b42838cf88fd1b332c4b41c3194ec
/frameworks/base/core/java/android/accounts/AccountManager.java
a40c6304deb860f10a51ce950ac1abc21a23d08b 13-Dec-2010 Costin Manolache <costin@google.com> Add a new attribute to auth descriptors to indicate custom handling of permission and token caching

Change-Id: Icf6bd0e7bf265db9ef8bf368e8f3d8e91182f834
/frameworks/base/core/java/android/accounts/AccountManager.java
8e4378b3ae7c3b343f92b8f7fb8e46bdfdb01649 03-Aug-2010 Dan Egnor <egnor@google.com> COMMENT ONLY change to fix some formatting glitches and
(more importantly) clarify issues surrounding removed accounts.

Change-Id: I19e6c0e536e46b6d219c808bb86e88edd7e6f378
/frameworks/base/core/java/android/accounts/AccountManager.java
f35b68f2b926021bce407f092cfe3e8f52fa0794 01-Apr-2010 Fred Quintana <fredq@google.com> allow null authtokens to invalidateAuthToken

Change-Id: I78e91ef2f43503e13386894851f0d781583a4943
http://b/issue?id=2561519
/frameworks/base/core/java/android/accounts/AccountManager.java
382601fc8babccee0d0b953ecd9bef745d126996 25-Mar-2010 Fred Quintana <fredq@google.com> check for nulls

Change-Id: Ie02749db1dceb4288a70e5b28040459d669904c1
http://b/issue?id=2527346
/frameworks/base/core/java/android/accounts/AccountManager.java
f0fd8436b3ec2aa47cd5de61072b8395bbe46765 08-Mar-2010 Fred Quintana <fredq@google.com> - add verbose logging to the authenticator
- fix a bug in AccountManager.getAuthTokenByFeatures() where getAuthToken()
isn't called after adding the account when necessary
/frameworks/base/core/java/android/accounts/AccountManager.java
96580e00654a052a82120c374c6b5961ef349a92 04-Mar-2010 Fred Quintana <fredq@google.com> Defend against an unexpected null bundle that causes blockingGetAuthToken() to throw an NPE.

http://b/issue?id=2420608
/frameworks/base/core/java/android/accounts/AccountManager.java
b38eb14dbf58c8230f5b54c481b85587d9ef7c78 24-Feb-2010 Fred Quintana <fredq@google.com> allow permission USE_CREDENTIALS for AccountManager.invalidateAuthToken as well as the previous MANAGE_ACCOUNTS
/frameworks/base/core/java/android/accounts/AccountManager.java
ff592dc2fa53d48e4121d9b8fd70efc19938c4a1 23-Feb-2010 Doug Zongker <dougz@android.com> fix some minor javadoc errors in AccountManager

Change-Id: Iafc9e5541e56b936a426999e0ae9f99e56dccd51
/frameworks/base/core/java/android/accounts/AccountManager.java
661f0130de6a4e1592b679a212c8f758133d36ee 19-Feb-2010 Dan Egnor <egnor@google.com> Update AccountManager's javadoc.

Includes several potentially controversial major changes:

- Remove the amount of repeated boilerplate explanations of common
idioms. I find them much more distracting than useful. The same
things are explained, but in fewer places.

- Add more narrative/directive information instead of merely descriptive
commentary; I included a lot of "color" about who particular methods are
intended for and why you might use them.

- Add explicit guidance (in the class javadoc) about the common usage pattern.
Explicitly document the auth token invalidation dance, which is highly
nonobvious, had never been written down before, and which GMM got wrong,
creating a Latitude conops nightmare they're still digging out of.

- Explain and justify, as best I can, the overall model of account management:
saved credentials, pluggable authenticators, auth tokens, and so on. Clarify
some things, like that setPassword() changes the locally cached credential
but does not set the user's password on the server.

- Clarify what the passed-in Activity parameter is used for. (It seems silly,
but I was confused by this: is it supposed to be the Activity that actually
performs the password prompt or whatever? No, it's just a Context for the
startActivity() to be launched from.)
/frameworks/base/core/java/android/accounts/AccountManager.java
8570f7440780db5c9b410e033e843b0e80e2fd27 18-Feb-2010 Fred Quintana <fredq@google.com> - fix the AccountManager documentation. http://b/2401790
- only pass the authtoken through from the authenticator to the client
for getAuthToken() and strip it out from the other calls, like
addAccount(). http://b/2332762
- beef up the documentation to indicate what calls are allowed to be made
from the main thread and which are not allowed. http://b/2384961
- wait a bit before retrying syncs that failed because one was already
in progress. http://b/2414235
/frameworks/base/core/java/android/accounts/AccountManager.java
751fdc09bb7ab0ce6feac7b7a823e38ed858feb0 09-Feb-2010 Fred Quintana <fredq@google.com> only make AccountManager throw an exception on blocking calls in the UI thread if the application's SDK is froyo or later
/frameworks/base/core/java/android/accounts/AccountManager.java
53bd2522ca7767f46646606123b6e2689b811850 06-Feb-2010 Fred Quintana <fredq@google.com> - change the SyncManager to retry MANUAL syncs that encounter a soft error
- make the sync dump handle the case where there are no accounts
- fix a bug that caused the SyncManager to burn up CPU in the system process

The following was implemented:

scheduler offers:
- settings to disable sync
- retries of certain errors
- backoffs

want a way to control these when scheduling a sync
- "ignore_settings"
- "ignore initial backoff"
- "manual" : ignore settings, ignore initial backoff
- "do not retry"

- need to change the default behavior of not retrying manual syncs to retry regardless
/frameworks/base/core/java/android/accounts/AccountManager.java
c5d1c6db61f208b206b260f897bb5bbc64be4d97 27-Jan-2010 Fred Quintana <fredq@google.com> add sync polling

- added the ability to specify that a sync (of account/authority/extras)
should occur at a given frequency
- the existing daily poll code was replaced with seeding each
account/authority with a 24 hour periodic sync
- enhanced the "adb shell dumpsys content" output to show the
periodic syncs and when they will next run
/frameworks/base/core/java/android/accounts/AccountManager.java
3084a6f80180506ce26fe4773d9a19f004b7f625 15-Jan-2010 Fred Quintana <fredq@google.com> rename testHasFeatures to hasFeatures
/frameworks/base/core/java/android/accounts/AccountManager.java
bb68a4fc54231e147d91fe3668d1409ccfd81a45 14-Jan-2010 Fred Quintana <fredq@google.com> add AccountManager.testHasFeatures() to make it easy to check if a given account has a set of features
/frameworks/base/core/java/android/accounts/AccountManager.java
88a211b148dd94df1f178338c94fdd7d01f53863 29-Oct-2009 Costin Manolache <costin@google.com> Revert the changes that introduced new exception that wouldn't have occured before, applications don't seem to be able to handle them and we get crashes.
/frameworks/base/core/java/android/accounts/AccountManager.java
31957f1badbb900bbfe211317e1ea992d650a72d 21-Oct-2009 Fred Quintana <fredq@google.com> - add javadoc for the account manager
- add some checks to the AccountManagerService to keep it from crashing when a null is passed in
- cleaned up the API a bit
/frameworks/base/core/java/android/accounts/AccountManager.java
756b735e9312ee52618158270f0bdd0ec691a712 21-Oct-2009 Fred Quintana <fredq@google.com> update account manager javadoc
/frameworks/base/core/java/android/accounts/AccountManager.java
4db3a5b327038e4dc1bc58e3213bb9ad0719bcc1 06-Oct-2009 Fred Quintana <fredq@google.com> fix a javadoc build breakage
/frameworks/base/core/java/android/accounts/AccountManager.java
f7ae77cd67f1a3993b8e56c1af4720a7adf4e69d 03-Oct-2009 Fred Quintana <fredq@google.com> account manager api review changes
/frameworks/base/core/java/android/accounts/AccountManager.java
5be61f5b3ad61706b72c1f6b00914ab042dc6bed 24-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Make removeOnAccountsUpdateListener cope with null handlers.

Previously, if callers registered OnAccountsUpdateListeners with a null handler,
removeOnAccountsUpdateListener would fail attempting to remove the listener.

Change-Id: If9906d3711f816e60c4b491b7f33671f089ac00f
/frameworks/base/core/java/android/accounts/AccountManager.java
e00a31155b95686eecc6e1999e904472f8f300ca 23-Sep-2009 Fred Quintana <fredq@google.com> - make an AccountManager per context, not one per process
- enhance the comment for addOnAccountsUpdatedListener()
/frameworks/base/core/java/android/accounts/AccountManager.java
b6437245c280596d0a580b8d67189739cf793250 11-Sep-2009 Costin Manolache <costin@google.com> If disk-full, don't crash the system server. Still todo: when we have disk we should trigger the event again.
/frameworks/base/core/java/android/accounts/AccountManager.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
/frameworks/base/core/java/android/accounts/AccountManager.java
ffd0cb04f97e62d286d185c520580d81a9c328b1 16-Aug-2009 Fred Quintana <fredq@google.com> do not merge: cherrypicked 3710f390968e683a0ad3adf0b517dfcade3564ce from master branch
/frameworks/base/core/java/android/accounts/AccountManager.java
d4a1d2e14297a3387fdb5761090961e714370492 17-Jul-2009 Fred Quintana <fredq@google.com> add account manager permission checking
/frameworks/base/core/java/android/accounts/AccountManager.java
9788976b1465ce982b5ae7c741345edd0ecd9322 15-Jun-2009 Fred Quintana <fredq@google.com> add icon and label to the authenticator description
/frameworks/base/core/java/android/accounts/AccountManager.java
0eabf0228a17e07ef831bc1ee1951c9697d2a079 28-Apr-2009 Fred Quintana <fredq@google.com> change the IsolatedContext to have a test version of the AccountManager that has no IBinder to the AccountManagerService.
/frameworks/base/core/java/android/accounts/AccountManager.java
d9d2f1140b52fd0c014e9deac59f6000564b7e84 23-Apr-2009 Fred Quintana <fredq@google.com> change the sync framework and users to understand Account
/frameworks/base/core/java/android/accounts/AccountManager.java
3326920329cecb57c7ff1fc5c6add5c98aab9ed9 21-Apr-2009 Fred Quintana <fredq@google.com> adding concept of features to accounts
/frameworks/base/core/java/android/accounts/AccountManager.java
a698f4276968d078b1b9e2f3738c4f559a3307b2 09-Apr-2009 Fred Quintana <> AI 145177: phase two of the AccountManager
- added an AccountManagerActivity, a base Activity that can be
used by activities that are launched by AccountAuthenticator
intents. This makes it easy for an Activity to send a result
using an AccountAuthenticatorResponse
- added debug strings to the AccountAuthenticatorCache
- improved the API for the AccountAuthenticatorResponse and
made it Parcelable so that it can be passed to an Activity
via an Intent
- changed the AccountManager to use Futures for the
asynchronous calls and to notify the user via a callback
when the request is complete
- changed the AccountManager to convert any errors that are
returned into Exceptions
- added constants for the error codes that are passed across
the IAccountManagerResponse and
IAccountAuthenticatorResponse interfaces
- added a dump() method to the AccountManagerService so that
it can display the list of active sessions and registered
authenticators
- added an way to interrogate the AccountManagerService for
the list of registered authenticators
- removed more methods from the GoogleLoginServiceHelper and
GoogleLoginServiceBlockingHelper and changed the callers to
use the AccountManager

Automated import of CL 145177
/frameworks/base/core/java/android/accounts/AccountManager.java
603073430bbcb1bd29db7afb9b14e2732ad589fb 25-Mar-2009 Fred Quintana <> Automated import from //branches/master/...@142414,142414
/frameworks/base/core/java/android/accounts/AccountManager.java