History log of /frameworks/base/core/java/android/accounts/AccountManagerService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
eedb4df1956ca16fd8c735c69c5f0e4ca286d912 25-Feb-2011 Fred Quintana <fredq@google.com> remove the code that clears the passwords when the sim
is replaced with a different one.

DO NOT MERGE
patched from honeycomb-mr1

Bug: 3404577
Change-Id: If11fc6be817ca1fa3dd5c085ff9696a1c5ea3a03
/frameworks/base/core/java/android/accounts/AccountManagerService.java
ef419b2e14e292bf4200a0281ce9125eda431c12 24-Feb-2011 Costin Manolache <costin@google.com> DO NOT MERGE
Backport (with modifications ) some changes from Honeycomb, that would allow authenticators to control caching and permissions.

This is backward compatible - both new and old authenticators will work with old and new framework,
but the functionality will only be present if both sides support it.

Change-Id: Ib2838cc2159f45264b38c844cd4c1d6f315d8064
/frameworks/base/core/java/android/accounts/AccountManagerService.java
5d275bba42aea034959e94a47b6568376d93e7ad 03-Dec-2010 Costin Manolache <costin@google.com> Fix bug in permission grant system.

Change-Id: Ic7d712e5a672c3eded16fee83235db01ab3c74fa
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
c2e4691d788088b22eadc9b2d35e9bdf0b6a0ffc 16-Mar-2010 Fred Quintana <fredq@google.com> - make the SyncManager add periodic syncs when it upgrades from a
version of the accounts.xml file that pre-dated periodic syncs,
e.g. eclair or early froyo. http://b/2515823
- make the AccountManagerService dump() use a getAccounts call that
doesn't check the GET_ACCOUNTS permission to make it useful
in "adb bugreport"
- add some logging to SyncManager to help track down a problem

Change-Id: Icb646909074e2d327d71f6bb39cf06b6fac29e77
/frameworks/base/core/java/android/accounts/AccountManagerService.java
29e94b81c7e145a5cb21f8c862e8d05b077b3548 10-Mar-2010 Fred Quintana <fredq@google.com> check if the binding to the authenticator has been disconnected
during the GetAccuintsByTypeAndFeature operation and abort
if it has been, thus avoiding an NPE

Change-Id: I7f707c7b0a1bdf80c0de9dfa7a3ae32323d623de
http://b/2497196
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
d4a9d6c42bb412e27a8383aaacd051419d98a662 24-Feb-2010 Fred Quintana <fredq@google.com> - return the accounts when getAccountByTypeAndFeatures is
passed a null or empty features set, http://b/issue?id=2467165
- clear the authtokens when the password changes
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.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/AccountManagerService.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e 21-Jan-2010 Fred Quintana <fredq@google.com> enhance the sync manager backoff logic and add support for retry-after

moved SyncQueue and SyncOperation into their own top-level classes
to ease maintainability and testing6

removed some dead code
/frameworks/base/core/java/android/accounts/AccountManagerService.java
3084a6f80180506ce26fe4773d9a19f004b7f625 15-Jan-2010 Fred Quintana <fredq@google.com> rename testHasFeatures to hasFeatures
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
1060147d5c3599f5035234dd2df28467495bfcc1 07-Jan-2010 Ying Wang <wangying@google.com> am 80410b55: am 42c98ada: Still use ro.monkey

Merge commit '80410b55f1eccf345fb6a01ca9a277935ac4098f'

* commit '80410b55f1eccf345fb6a01ca9a277935ac4098f':
Still use ro.monkey
42c98ada113ae5b7c72ecb6d0de721ec1d0d3534 05-Jan-2010 Ying Wang <wangying@google.com> Still use ro.monkey

http://b/issue?id=1681101
/frameworks/base/core/java/android/accounts/AccountManagerService.java
24c10062cdced5ab9b2abd418bca22f5cce09066 04-Jan-2010 Ying Wang <wangying@google.com> am 5c529a0c: am 08fa1428: Rename ro.monkey to monkey.running

Merge commit '5c529a0cb587d0dfa38e5642e268ca56285a356f'

* commit '5c529a0cb587d0dfa38e5642e268ca56285a356f':
Rename ro.monkey to monkey.running
08fa1428eed52083789dc3b366aea4873199bd37 04-Jan-2010 Ying Wang <wangying@google.com> Rename ro.monkey to monkey.running

So that Monkey can set ro.mokey before running and reset it after running.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
0b957851c5bc3c95aa204a47e4a822921d5946b9 03-Dec-2009 Fred Quintana <fredq@google.com> am 74f7b139: am f307ec5d: Merge change Iafa92b8f into eclair-mr2

Merge commit '74f7b139d0e380969268f44d5358db08e0325394'

* commit '74f7b139d0e380969268f44d5358db08e0325394':
remove accounts for authenticators that are uninstalled
afa92b8f3d8f85fe2dde309f8f778926396539ea 02-Dec-2009 Fred Quintana <fredq@google.com> remove accounts for authenticators that are uninstalled
/frameworks/base/core/java/android/accounts/AccountManagerService.java
a8529f68671a8a118751cb6ad577f44eaf076b96 18-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems Project. Installer modifications.
Started to modify isntaller for data redirection to a secure location.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
735f45538650728e9ca9856b9ff87ec54c972f04 12-Nov-2009 Fred Quintana <fredq@google.com> resolved conflicts for merge of ae0cf6dc to eclair-mr2
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 10-Nov-2009 Fred Quintana <fredq@google.com> Make the RegisteredSErvices Cache not allow the registered service for a
type to change without first uninstalling the previous service for that
type, unless the newly installed service is in the system image.

Notify the listener when a service is added or removed.

Make the AccountManagerService remove the accounts for an authenticator
when the registered authenticator changes from one uid to another.

Make the AbstractSyncableContentProvider force a sync when the database is first created.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
492dbe17527e27ba712d185a1eac22ae149c67c0 30-Oct-2009 Costin Manolache <costin@google.com> am 4388b988: Merge change Idc4c7714 into eclair

Merge commit '4388b98845e6a28c689e500cd6ed1e9bb29a2c12' into eclair-mr2

* commit '4388b98845e6a28c689e500cd6ed1e9bb29a2c12':
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.
c81e43c8ee31d986e34ee892b7d7bfbf70f82da7 30-Oct-2009 Marco Nelissen <marcone@google.com> resolved conflicts for merge 31957f1b to eclair-mr2
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/AccountManagerService.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/AccountManagerService.java
885cfc23a42f2a4f8578e6a2182af4d9a0a78b1f 22-Oct-2009 Doug Zongker <dougz@android.com> make the password-clearing algorithm smarter

Remove the ro.config.sim_password_clear property; go back to enabling
this for all devices. For GSM devices, we clear the password on SIM
change as before. For CDMA devices, we only clear when the device is
provisioned with a different number; we don't clear the password while
the device is unprovisioned.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
1a23191bbde11505d6e0c25c04a60b41cb27fd31 15-Oct-2009 Fred Quintana <fredq@google.com> fix build
/frameworks/base/core/java/android/accounts/AccountManagerService.java
b839afc33ea4a7b549b6dd703e5c48858ce877d0 15-Oct-2009 Fred Quintana <fredq@google.com> remove the bind helper and bind directly
/frameworks/base/core/java/android/accounts/AccountManagerService.java
7fa8c508e0ebc8d8190fa8860d1f3bab819df081 13-Oct-2009 Doug Zongker <dougz@android.com> make erase-password-on-SIM-change optional

Make this "feature" controlled by a system property so it can be
enabled only for carriers that want it.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
f7ae77cd67f1a3993b8e56c1af4720a7adf4e69d 03-Oct-2009 Fred Quintana <fredq@google.com> account manager api review changes
/frameworks/base/core/java/android/accounts/AccountManagerService.java
3348f14b3d46b172a5b557f81aac526b7e8bf5fb 30-Sep-2009 Costin Manolache <costin@google.com> Remove GAIA string
/frameworks/base/core/java/android/accounts/AccountManagerService.java
1cd7d0e591b61a1e5d0be4073e9b9f976279cc84 28-Sep-2009 Jason Parks <jparks@google.com> Implement the checkin option in AccountManagerService.dump()

When the dump is requested by the checkin server the AccountManagerService will now dump each account type and the number accounts that are registered/active for that account type.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
50c05f38b3728b7430dd4bb8d98565d9c5e56798 22-Sep-2009 Jim Miller <jaggies@google.com> Delay broadcasting ACCOUNTS_CHANGED until we're certain AndroidId is ready.

Make sure 'nobroadcast' flag doesn't get stored in database.
Update after review.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
86bd084cf683e9877b4146918192b3fe5e268cf5 18-Sep-2009 Fred Quintana <fredq@google.com> do not use transactions for calls that just read the DB
/frameworks/base/core/java/android/accounts/AccountManagerService.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 17-Sep-2009 Fred Quintana <fredq@google.com> - Make the AccountManagerService delete accounts that
have no Authenticator, both when the package is removed
and when the phone is booted.
- add the ability to register with the RegisteredServicesCache
to be notified when the set of Authenticators changes.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
6dfd1382fe43592b9602fc6553e820c64067c759 17-Sep-2009 Fred Quintana <fredq@google.com> remove the signin required notification as when the signin is successful
/frameworks/base/core/java/android/accounts/AccountManagerService.java
ee452ee5359cdfa3c3fbf6783722d3aaa2ec5ca6 01-Sep-2009 Eric Fischer <enf@google.com> Combine the "Permission Requested" title and subtitle into one string.

The translators don't get the strings in order, so having a single sentence
split across two strings makes it difficult to get good translations.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
33f889ae270f888f8fdc084f5f1f3d443532a46a 15-Sep-2009 Fred Quintana <fredq@google.com> change to use the new CALLER_IS_SYNCADAPTER flag
/frameworks/base/core/java/android/accounts/AccountManagerService.java
27844c386e5567a91ab781265ae5ad40d0ab1e27 12-Sep-2009 Jim Miller <jaggies@google.com> Enable log message for tracking issue #2092299.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
5b462477a90cd08551149fc649ff3035b5331d2d 02-Sep-2009 jsh <jsh@google.com> Fix some sign in errors.

AccountManagerService.SimWatcher was checking if storedImsi = "initial"
instead of null as an initial condition. Also, on NV-only CDMA devices
we were only sending SIM_STATE_CHANGED notifications when the radio
powered down, which meant storedImsi was only initialized if the radio
powered down.
/frameworks/base/core/java/android/accounts/AccountManagerService.java
7be5964e74978ebc7d5fd24562de5738d31cf009 25-Aug-2009 Fred Quintana <fredq@google.com> - make it ok to modify the accounts before boot
- allow packages in the system image to access any authtokens they wish
/frameworks/base/core/java/android/accounts/AccountManagerService.java
ffd0cb04f97e62d286d185c520580d81a9c328b1 16-Aug-2009 Fred Quintana <fredq@google.com> do not merge: cherrypicked 3710f390968e683a0ad3adf0b517dfcade3564ce from master branch
/frameworks/base/core/java/android/accounts/AccountManagerService.java
d4a1d2e14297a3387fdb5761090961e714370492 17-Jul-2009 Fred Quintana <fredq@google.com> add account manager permission checking
/frameworks/base/core/java/android/accounts/AccountManagerService.java
9788976b1465ce982b5ae7c741345edd0ecd9322 15-Jun-2009 Fred Quintana <fredq@google.com> add icon and label to the authenticator description
/frameworks/base/core/java/android/accounts/AccountManagerService.java
718d8a2d7ff3e864a73879eb646f46c14ab74d07 30-Apr-2009 Fred Quintana <fredq@google.com> decouple SyncAdapter from ContentProvider
/frameworks/base/core/java/android/accounts/AccountManagerService.java
3326920329cecb57c7ff1fc5c6add5c98aab9ed9 21-Apr-2009 Fred Quintana <fredq@google.com> adding concept of features to accounts
/frameworks/base/core/java/android/accounts/AccountManagerService.java
26fc5eba506bf29f7f5343e836484a43702c8dea 10-Apr-2009 Fred Quintana <> AI 145535: reenable the signin notifications
the system process has permissions to control this
notification but the caller doesn't do we need to call
clearCallerIdentity() before manipulating the notification
BUG=1778648

Automated import of CL 145535
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
603073430bbcb1bd29db7afb9b14e2732ad589fb 25-Mar-2009 Fred Quintana <> Automated import from //branches/master/...@142414,142414
/frameworks/base/core/java/android/accounts/AccountManagerService.java