History log of /frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
e4996bbd519a088927180c2eed2941fe59a4cd40 17-Oct-2012 Jeff Sharkey <jsharkey@android.com> Defer more Account actions until user starting.

Instead of explicitly scanning OWNER accounts, move to using the
"user starting" call path for consistency.

Bug: 7358086
Change-Id: Ied3289a074aafa48259d828db1d68804912589b3
/frameworks/base/core/java/android/accounts/AccountManagerService.java
6eb9620ff289105c3fc4a1be28a8eebb17d044e0 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Include all accounts in dumpsys.

Allow accounts to be loaded when a user is stopped, but always
validate accounts against a freshly queried PMS cache when the user
actually starts.

Bug: 7276595
Change-Id: I0382064c73123c243bc6f6e5da8fc3d0a8b73442
/frameworks/base/core/java/android/accounts/AccountManagerService.java
9d0791bf6a047dbf7a99034130a5c4b437510fcf 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Fix build, only invalidate when creating user.

Bug: 7276595
Change-Id: I322f9d76a682b2d45fc556e35381442458168fe5
/frameworks/base/core/java/android/accounts/AccountManagerService.java
6ab72d74b86e5f4ec3c3909366fd46c225a66bd7 09-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make RegisteredServicesCache multi-user aware.

RegisteredServicesCache is used to track account authenticators and
sync adapters, which can vary based on user. This change requires
that callers now provide a userId when making cache requests. It
continues persisting into a single file for now, which is keyed based
on UID.

It now watches for package broadcasts from all users, and scans
packages on-demand. It changes cache callers to provide a relevant
userId, and evicts cache entries when users are stopped.

Changes SyncManager to only work with accounts from running users,
only kicking off pending syncs once a user is started.

Bug: 7276595, 7316150
Change-Id: I79466a84aa69aa37e4bd9691c5d6221d3662ff29
/frameworks/base/core/java/android/accounts/AccountManagerService.java
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

Also fix a bunch of system services that should be doing this. And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification). I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
/frameworks/base/core/java/android/accounts/AccountManagerService.java
2701f325a6d4acd920637d2ff6fd6972a9cf836b 01-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev
61f57379ca2c5b6290c8da7548fa17128f7ab24f 31-Aug-2012 Amith Yamasani <yamasani@google.com> Centralize the creation of the user system directory

Environment.getUserSystemDirectory(int userId)

Use it all relevant places that was hardcoding it.
Also, wipe out the user's system directory when user is removed, otherwise old state
might be transferred to a new user.

Change-Id: I788ce9c4cf9624229e65efa7047bc0c019ccef0a
/frameworks/base/core/java/android/accounts/AccountManagerService.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
/frameworks/base/core/java/android/accounts/AccountManagerService.java
79af1dd54c16cde063152922b42c96d72ae9eca8 17-Aug-2012 Dianne Hackborn <hackbod@google.com> Switch public APIs to use new UserHandle class for identifying users.

Gets rid of "yet another integer" confusion.

Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
/frameworks/base/core/java/android/accounts/AccountManagerService.java
2a00329c6d55c6cd9166e01963d7410e95d80d21 15-Aug-2012 Amith Yamasani <yamasani@google.com> UserHandle to UserSerialNo mapping

Use AtomicFile for usermanager files.

Added a MANAGE_USERS permission that apps (signature permission) can use
to create/query/modify/remove users.

Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
/frameworks/base/core/java/android/accounts/AccountManagerService.java
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
/frameworks/base/core/java/android/accounts/AccountManagerService.java
258848d2ae04f447ff1c18023fa76b139fcc0862 11-Aug-2012 Amith Yamasani <yamasani@google.com> User Manager service to manage users and query user details

Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
/frameworks/base/core/java/android/accounts/AccountManagerService.java
b4163a6e12ee7100c758c6d3d062ade1f2843fce 03-Aug-2012 Dianne Hackborn <hackbod@google.com> 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
/frameworks/base/core/java/android/accounts/AccountManagerService.java
26ff6626fc4ee0ae46f01ad309b366921da589fe 30-Jul-2012 Kenny Root <kroot@google.com> Delay AccountManagerService initialization

Since applications can have Account providers, they need to be delayed
until after PackageManagerService says everything is mounted.
Otherwise the accounts associated with that provider will be removed
immediately when startup happens.

Bug: 6820670
Change-Id: Iba81765260421649f706624d0605a40ebc1347b1
/frameworks/base/core/java/android/accounts/AccountManagerService.java
90f658e17d86d7f4052b178dbfdf15977c5d7841 31-May-2012 Amith Yamasani <yamasani@google.com> Merge "Preserve account list in order of creation in the database." into jb-dev
b483a99c6bdfee72fbb8fbcf893e63ef3f54658b 22-May-2012 Amith Yamasani <yamasani@google.com> Preserve account list in order of creation in the database.

This makes it possible to retrieve the account list in the order of creation,
if we want to display them in the account settings screen in that order.

Bug: 6579937

Change-Id: I2025aaa8b770fbb78be978dfde64ef95823fd5aa
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
856fbbedbb57da5620026d71a338744a2e875ec3 12-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Don't migrate accounts.db if already migrated."
a23bb38628ac1f5dc4ebe6847faedc424dd5fce1 12-Apr-2012 Amith Yamasani <yamasani@google.com> Don't migrate accounts.db if already migrated.

Some developers accidentally create a blank accounts.db and this
was causing accounts to vanish. This safeguards the case where both
old and new files exist.

Bug: 6168813
Change-Id: I79cf211acc5422ff1c17fe0c9af80c49227b60ac
/frameworks/base/core/java/android/accounts/AccountManagerService.java
f29f2369cf4e1de090c985ed53d3f5e59535986a 06-Apr-2012 Amith Yamasani <yamasani@google.com> Fix a race condition in SyncManager.onAccountsUpdated()

Get the full list of accounts from AccountManagerService in one shot
instead of getting them per user.

Bug: 6263091

Change-Id: I488f24749a96281ef1e2a620820399c97f471024
/frameworks/base/core/java/android/accounts/AccountManagerService.java
135936072b24b090fb63940aea41b408d855a4f3 23-Mar-2012 Amith Yamasani <yamasani@google.com> User management and switching

Broadcast intents that get sent out when users are added/removed/switched.

More work on generating user-specific information in package manager queries.
APIs to update user name and query a user by id.
Removed Package.mSetStopped and mSetEnabled, since they're not user specific.

User removal:
- Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService
and AccountManager.
- Shutdown processes belonging to the user.

Don't show vibrate option in long-press power if there's no vibrator.

Lock the screen when switching users, to force unlocking.

Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
/frameworks/base/core/java/android/accounts/AccountManagerService.java
f57bdf3a2b5b8833fc1ded877bbf6ed232205d1e 21-Mar-2012 Fred Quintana <fredq@google.com> Merge "Fix an initialization ordering bug due to the userprofile changes."
70e6190858e54b0924ed0a536030e61d471181b2 20-Mar-2012 Fred Quintana <fredq@google.com> Fix an initialization ordering bug due to the userprofile changes.

Bug: 6194599
Change-Id: I6ebedec3b5f045374f216aa1419bfdb57141a80e
/frameworks/base/core/java/android/accounts/AccountManagerService.java
219be44a4f96bd5dfc275aecf9eb2ba5a233ef84 20-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Bind to the correct instance of the authenticator service."
34daa75260c9aebe791819ff6134b4c47146c5c0 20-Mar-2012 Amith Yamasani <yamasani@google.com> Bind to the correct instance of the authenticator service.

Otherwise you will see authentication failures on secondary users' accounts.

Change-Id: Ia3f8427f68df6048cdca65710bf673ac12a2cddb
/frameworks/base/core/java/android/accounts/AccountManagerService.java
c6b0f99bb31405902b40a96f6491a9adcaaac169 19-Mar-2012 Marc Blank <mblank@google.com> Use renameTo safely when creating the user 0 account database

* Because the user directory probably won't exist, the renameTo
in previous code fails silently

Bug: 6188815
Change-Id: I6afd1bad9bbd1a36de7e93d9e02ed7172b1ed370
/frameworks/base/core/java/android/accounts/AccountManagerService.java
04e0d265e3385e9d1fbc35e43c4e8caffbbe3290 14-Feb-2012 Amith Yamasani <yamasani@google.com> Make SyncManager and AccountManagerService multi-user aware.

AccountManagerService
- Maintain multiple account lists, one per user
- Keep multiple databases of accounts
- Account db moved to /data/system/users/<userid>/

SyncManager
- SyncStorageEngine keeps track of multiple users' accounts.
- SyncQueue maintained as a single instance, queueing requests from
multiple users.
- Changed some methods to take userId arguments
- Removed some deadc0de
- Store the userId in the SyncOperation, so we know which provider
instance to bind to when queued operations are processed.

ContentService
- Pass along the userid to sync manager calls.

ActivityManagerService:
- Fixed a bug in cancelIntentSender
- Don't bring other user's task forward when resetting tasks.

Updated tests

Change-Id: If317340ef68e902787aa3f5ceb4cf96f14aea695
/frameworks/base/core/java/android/accounts/AccountManagerService.java
2f36229db823d152f3efd879e751e81a601a75b0 20-Jan-2012 Andy McFadden <fadden@android.com> Use Map.Entry, not HashMap.Entry

Map.Entry is the defined return value from entrySet(). HashMap.Entry
shouldn't be used directly.

Change-Id: Ia21598c6a73fe7eb22179ce114095f779c903084
/frameworks/base/core/java/android/accounts/AccountManagerService.java
166466d483cc3d57e7d3d465fd92ce62409c8455 24-Oct-2011 Fred Quintana <fredq@google.com> Fixed a bug that causes AccountManager calls to hang forever, eventually
exhausting the binder threads in the gapps process, making it unusable.

Bug: 5486091

Change-Id: I82bd197e27c2be1bf82e4e5cc1468e1c6a3e4919
/frameworks/base/core/java/android/accounts/AccountManagerService.java
6d288bd2f3596ce268a3a3278f005d8757c79d63 08-Oct-2011 Costin Manolache <costin@google.com> Merge "b/5399355 StringIndexOutOfBoundsException from AccountManagerService"
85e7279d9cc1ee8e4dd1f993a9e61a9eb547ecbc 07-Oct-2011 Costin Manolache <costin@google.com> b/5399355 StringIndexOutOfBoundsException from AccountManagerService

Change-Id: I13426a8b57d6fcbc7a43ffd61922439b0fae332c
/frameworks/base/core/java/android/accounts/AccountManagerService.java
3abd75ba3a981850cac43a401d0014a836559cb0 29-Sep-2011 Kenny Root <kroot@google.com> Add DUMP permission checks to services

Some services have info that is not readily available any other way. Add
a permission check to those services.

Bug: 5389201
Change-Id: I5a9724ec89e1c11ef7813eeb52a6a05b3ea92af5
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.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/AccountManagerService.java
9ab66ff42f3a03182b18dacaf64edc38fae103cd 22-Mar-2011 repo sync <fredq@google.com> resolved conflicts for merge of 17f95e92 to honeycomb-plus-aosp

Change-Id: Ic82ab20e216d810f6372c833ac49c3856449c09c
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
f9f240e3ad5ff5eeaa32fbb2dd65ef7f3b06af32 25-Feb-2011 Fred Quintana <fredq@google.com> Fix a deadlock in AccountManagerService cause by different
paths of code getting the mCacheLock and DB locks in different
orders.

The philosophy I followed for this was to ensure that the
DatabaseHelper is only ever accessed from within a
synchronized(mCacheLock) block. I also renamed a bunch of
methods to make it easier to know if a given method should
be called from within this synchronized block.

Bug: 3404506
Change-Id: Ia48f95e77b77647d0717f70f1d8364da3719cc13
/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
082aa9cdc4b8d63cb797af8773227a8ee6393738 01-Mar-2011 Fred Quintana <fredq@google.com> Merge "Make the AccountManagerService clear old grants when the package that the grants refer to is no longer installed."
c1a4e5dc418d324f2fa2827d83002cc50e62c507 25-Feb-2011 Fred Quintana <fredq@google.com> Make the AccountManagerService clear old grants when the package
that the grants refer to is no longer installed.

Bug: 3425856
Change-Id: I6ec057415c8f35be91c8434ff10e6cf5c1fc47bb
/frameworks/base/core/java/android/accounts/AccountManagerService.java
e3e5b0994e930fa2c4eb42fbff00893c3a5bcc4f 25-Feb-2011 Fred Quintana <fredq@google.com> remove the code that clears the passwords when the sim
is replaced with a different one.

Bug: 3404577
Change-Id: I3149df7040dfc56e91544010ac56b5912964d925
/frameworks/base/core/java/android/accounts/AccountManagerService.java
9d72be33181f1bd1386017ce0b0ce17d8ce1cb66 02-Feb-2011 Wink Saville <wink@google.com> Add TelephonyManager.getCurrentPhoneType

The new method getCurrentPhoneType has the old behavior of getPhoneType
and does not check for voice capable. This allows code to assume
the old behavior.

bug: 3198435
Change-Id: I0542838ceca2f757cceb6cd7f795e95fe886523e
/frameworks/base/core/java/android/accounts/AccountManagerService.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/AccountManagerService.java
f5ffe89e736caee1419f0acb469565d5100b8fb8 19-Jan-2011 Costin Manolache <costin@google.com> Token cache was not reset on password change

Bug: 3365443
Change-Id: I3e85c56810c0d71ddc82d3c6a1dcbba640444564
/frameworks/base/core/java/android/accounts/AccountManagerService.java
9ec17366c17efd14c643ee88fa1132ab05197349 17-Jan-2011 Costin Manolache <costin@google.com> Add back NEW_TASK flag.

b/2510486 suggests we remove it, but this breaks services who can't call the intent without the flag. A different solution is needed to notify when the activity is done.

Change-Id: I0b32ead69cf816e105899fdd74e99cc1e8bf5ce3
/frameworks/base/core/java/android/accounts/AccountManagerService.java
c6684f9e9790e92960504e9b32f20f27003d9f37 14-Jan-2011 Costin Manolache <costin@google.com> Fix previous quick fix, LoginOptions is final.

Change-Id: I5f262458239378697a67cbd8e83175bf3ffc7f5b
/frameworks/base/core/java/android/accounts/AccountManagerService.java
75b8fc7e0ce451eaa50d31e3dd7d60d466186c28 14-Jan-2011 Costin Manolache <costin@google.com> Fix NPE, caller may not pass loginOptions.

Change-Id: Ifb6a8bf876d30a9726f535a90ba8c0719a9a04aa
/frameworks/base/core/java/android/accounts/AccountManagerService.java
3b4fcbc9f13bab6a2e9e5c37cc5e18fec7341c04 09-Jan-2011 Brett Chabot <brettchabot@android.com> Add ActivityManager#isRunningInTestHarness() public API.

Replaces use of ro.monkey system property. This new API is controlled by
ro.test_harness.

Bug 3329873

Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
/frameworks/base/core/java/android/accounts/AccountManagerService.java
afd2f549bb850828ad4961ccdae1bd5e8505baa4 17-Dec-2010 Fred Quintana <fredq@google.com> remove the hack to delay the accounts changed intent for the first account

Change-Id: I09ed0b31517c1545b81b480833fef3cd38c8f807
/frameworks/base/core/java/android/accounts/AccountManagerService.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/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
5f383ad9695a62d6c1aeb97c8e550d7fffe26244 03-Dec-2010 Costin Manolache <costin@google.com> Fix bug in permission grant system.

Change-Id: Ieae1a576fdcba30b24e0430f322843369de2a697
/frameworks/base/core/java/android/accounts/AccountManagerService.java
56285a60e83138bb4b4f2d3bdec91b2f3ca11aa2 02-Dec-2010 Fred Quintana <fredq@google.com> add caching to the AccountManagerService

- cache the accounts, userdata and authtokens
- make the AccountManagerServiceTest work again
- add a log statement for every binder call

http://b/issue?id=3188457

Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
/frameworks/base/core/java/android/accounts/AccountManagerService.java
ec0c4f4183630a64c2b2cc8f961dc7e11cc628ca 16-Nov-2010 Costin Manolache <costin@google.com> Remove notifications for account when account is removed.

Change-Id: I21b5d757231401c10c922443cecd04b68f922c0b
/frameworks/base/core/java/android/accounts/AccountManagerService.java
743dfad2a51e016ddb741c104317637089187753 15-Jul-2010 Fred Quintana <fredq@google.com> fix a bug where some accounts changed listeners don't see the new
version of the accounts because the accounts changed broadcast is
sent from within the transaction try block, thus before db.endTransaction()
is called.

bug: 2839034
Change-Id: I814c7de9998ba52b85256dd2f3f19104fba3049c
/frameworks/base/core/java/android/accounts/AccountManagerService.java
4d8ae85b5de8a90a597e4b649c6ee7208e446e3b 25-May-2010 Wink Saville <wink@google.com> Add needsOtaServiceProvisioning to Phone.

By having needsOtaServiceProvisioning supported on all phones we
eliminate the need to use an if statement to discriminate phone type.
Types of phones that don't support OTASP will return false in the
default implementation in PhoneBase.

Change-Id: I8fb15a18553e314c1f8f2a00ec7f8cffd79eeb7f
/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