History log of /frameworks/base/core/java/android/accounts/AccountManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
51b651aea178fcfca8a3219141f0ecfda1504887 30-Mar-2016 Carlos Valdivia <carlosvaldivia@google.com> introduce GET_PASSWORD_PRIVILEDGED permission.

That will be used to filter in passwords for Session based
AccountManager flows.

Bug: 27590532
Change-Id: I4a6d0540bcff186e416351a6f719600ce35d86a0
/frameworks/base/core/java/android/accounts/AccountManager.java
358e51f3d186719a6a5b1f346f55c5426925055f 15-Mar-2016 Ian Pedowitz <ijpedowitz@google.com> Revert "Permissions: Get rid of GET_ACCOUNTS"

This reverts commit d39600585bcb720d739ef6f0091066e3d4f77765.

Bug: 27665091
Change-Id: I7d017ba7062ac594225229436d2877c7d21fb065
/frameworks/base/core/java/android/accounts/AccountManager.java
d39600585bcb720d739ef6f0091066e3d4f77765 11-Feb-2016 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Get rid of GET_ACCOUNTS

Second attempt. Still need to add strict mode violation checks and
logging.

Bug: 21901286

This reverts commit bf33bd4d31cfec895c96990525b0cb856407c8d6.

Change-Id: I5d73343544c32ce4fc4c377ba44db8e677a1287d
/frameworks/base/core/java/android/accounts/AccountManager.java
f8880561e67e1da246970b49b14285efd4164ab1 26-Feb-2016 Jeff Sharkey <jsharkey@android.com> When system server goes down, crash apps more.

Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException. New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
/frameworks/base/core/java/android/accounts/AccountManager.java
bf33bd4d31cfec895c96990525b0cb856407c8d6 02-Feb-2016 Carlos Valdivia <carlosvaldivia@google.com> Revert "Permissions: Get rid of GET_ACCOUNTS"

This reverts commit 918c55a67c2bf0cec79f75dec6ca468e914a5fd1.

Change-Id: I995f134336bf61ac1f21052355900ae89d0d6694
/frameworks/base/core/java/android/accounts/AccountManager.java
3cdbc806ff52d02bf215a5aa696b670434d9f401 27-Jan-2016 Carlos Valdivia <carlosvaldivia@google.com> Merge "Permissions: Get rid of GET_ACCOUNTS"
0b84b456a79d83527665a5ac399cba73f1a85821 21-Jan-2016 Sandra Kwan <sandrakwan@google.com> AccountManager: add finishSessionAsUser api.

Change-Id: I9a08d957a9b25be4c6cf12e4ed35cdc0bfbb8605
/frameworks/base/core/java/android/accounts/AccountManager.java
918c55a67c2bf0cec79f75dec6ca468e914a5fd1 14-Jan-2016 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Get rid of GET_ACCOUNTS

Bug: 21901286

Change-Id: Id2c42f4d449a32c88078d80dcf952d15e67d536c
/frameworks/base/core/java/android/accounts/AccountManager.java
390c9d2d91117c767b27e33e906f7830b4c0a4dc 12-Jan-2016 Sandra Kwan <sandrakwan@google.com> AccountManager: add isCredentialsUpdateSuggested API.

Change-Id: I27e0db0345f3431b796a944740dab767b45f7871
/frameworks/base/core/java/android/accounts/AccountManager.java
12747879b0204b9dfee997eddc981d09289e8b77 07-Dec-2015 Amith Yamasani <yamasani@google.com> User creation with an intent

New API for an app to request creating a new user with
a given user name and seed account information for the
SetupWizard to use when that user is switched into.

Also adds system APIs to read the seed account data from
UserManager.

Bug: 22776757
Change-Id: I0bc3f11ee19c15e0ee2a908c88d98b13296cc30d
/frameworks/base/core/java/android/accounts/AccountManager.java
a578d11470d2c782bc8b54bc2a9154e7f5b68354 17-Dec-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: make account session APIs SystemApi.

Make startAddAccountSession, startUpdateCredentialsSession and
finishSession Apis SystemApi.

Change-Id: Iaedfe546e9b87a2ee8dd2d19e8c28b7f1d59c111
/frameworks/base/core/java/android/accounts/AccountManager.java
920f6ef983024c15fbd47f7be7fa9204559f2514 10-Nov-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: add finishSession(...) API.

Adding finishSession API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I153dd2bb6fe01d2e4b10b41e8b553f59da26bd29
/frameworks/base/core/java/android/accounts/AccountManager.java
e68c37eead0b7255d307af91ca284eaee419c944 13-Nov-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: add startUpdateCredentials API.

Adding startUpdateCredentials API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: Id9a1ff86764f2fde01fd8482594e4ae34e1f3bd1
/frameworks/base/core/java/android/accounts/AccountManager.java
7881228736fd5f3f4ecf25d4808dc004c03b54d1 04-Nov-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: add startAddAccount API.

Adding startAddAccount API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I29e1defb2181ece1281534db0e36b28457085148
/frameworks/base/core/java/android/accounts/AccountManager.java
02cb6e773b323a0d54b21f43460a23f668b7727c 19-Sep-2015 Fyodor Kupolov <fkupolov@google.com> Added --restricted option for create-user command

Also moved restricted profile create/setup logic from Settings to
UMS.createRestrictedProfile.

Bug: 24212155
Bug: 24303609
Change-Id: I0346a3368de53f4bb4b6e054349f19adac959d7f
/frameworks/base/core/java/android/accounts/AccountManager.java
9249a9097707bb57ae0a7d114eff54bc82ad462d 26-Sep-2015 Bart Sears <bsears@google.com> Revert "Added --restricted option for create-user command"

This reverts commit 737b216b5c28f7d7162f219136d4e8a9eb1a486b.

Change-Id: I4c43967933bb2e46cdb8ad6e643d7037d722cab2
/frameworks/base/core/java/android/accounts/AccountManager.java
737b216b5c28f7d7162f219136d4e8a9eb1a486b 19-Sep-2015 Fyodor Kupolov <fkupolov@google.com> Added --restricted option for create-user command

Also moved restricted profile create/setup logic from Settings to
UMS.createRestrictedProfile.

Bug: 24212155
Bug: 24303609
Change-Id: I5f0d48bcbd3c0b51927926b874fd057c15ac5219
/frameworks/base/core/java/android/accounts/AccountManager.java
f3f02ac931d04e6ba4393e27558cd317cb1e6b44 08-Sep-2015 Svetoslav <svetoslavganov@google.com> Add get_accounts app op

For each runtime permission we have an app op to toggle the
permission for legacy apps as they cannot handle permission
revocations. We were lacking an app op for get_accounts
which prevented the user from controlling access to accounts
regardelss that they change the state of the permission
toggle in the UI. Even worse the permission UI is written
with the assumption that every runtime permission has an
app op and as a result revoking the contacts group (if the
app requests the get_accounts permission) is reset back to
allowed in the UI.

bug:23854618

Change-Id: I12b83dfd22974d130e5b8e7a195421120813e2db
/frameworks/base/core/java/android/accounts/AccountManager.java
75f68ce1bdb443984a9bd9652c3ad944cf782efb 14-Aug-2015 Xiaohui Chen <xiaohuic@google.com> Clean up USER_OWNER in AccountManager

Refactor copyAccountUser to take an explicit user handle instead of
hardcode to owner. This requires refactoring one app that uses this
Api.

Bug: 19913735
Change-Id: Ib9b11d8155bea2a58974d09ec2d70bc756d46313
/frameworks/base/core/java/android/accounts/AccountManager.java
6cc066df7a79eb9f3cdf7b41dc9307f75c413c09 05-Aug-2015 Ian Pedowitz <ijpedowitz@google.com> Revert "Revert "Permissions: GET_ACCOUNTS permission cleanup""

This reverts commit 845d14db9066c3262f270237b52e315aa71508b2.

Bug: 22942480
Bug: 22902898
Change-Id: If2d0e11594284414953c3dd45475fc7ba3366295
/frameworks/base/core/java/android/accounts/AccountManager.java
845d14db9066c3262f270237b52e315aa71508b2 04-Aug-2015 Ian Pedowitz <ijpedowitz@google.com> Revert "Permissions: GET_ACCOUNTS permission cleanup"

Temporarily revert ag/735253 until b/22902898 can be resolved with a
proper DMAgent prebuilt drop.

This reverts commit e7ed827a104ba005b93faa2edb3bc77f72b240ec.

Bug: 22902898
/frameworks/base/core/java/android/accounts/AccountManager.java
26ae600b5fb8c657b4f8dc2700374c701c9e50ec 30-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Merge "Permissions: GET_ACCOUNTS permission cleanup" into mnc-dev
e7ed827a104ba005b93faa2edb3bc77f72b240ec 27-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Permissions: GET_ACCOUNTS permission cleanup

First, getAccounts*() will now return all available accounts depending
on both GET_ACCOUNTS grants and signature matching. This is different
from before where a caller of getAccounts() would need GET_ACCOUNTS to
get any accounts, but if that same caller called getAccountsByType, they
might have gotten back accounts if they shared a signature with the same
developer.

Second, cleaned up some NPEs and javadoc.

This change was motivated by progress on the cts tests.

Change-Id: I2f36226780e074fdf58214b46de3b79d8319ace1
/frameworks/base/core/java/android/accounts/AccountManager.java
210baceaa1843f789dec4c60e3d78f7ac7b415af 30-Jul-2015 Simranjit Singh Kohli <simranjit@google.com> [Improve docs for AccountManager]
Currently, the docs for AccountManager are somewhat misleading and may
cause developer errors. To avoid them, we are properly documenting it.

Bug: 21924096
Change-Id: If775a54a09219b0f1623d2ff903085b9d12aa863
/frameworks/base/core/java/android/accounts/AccountManager.java
3c9c71d36e9eb6c88065fe064a15881e62c29268 14-Jul-2015 Craig Lafayette <craiglafa@google.com> Prevent null allowableAccounts from crashing

The javadoc for newChooseAccountIntent says that a null
value for the allowableAccounts parameter is valid and
an acceptable default. This CL makes sure that when this
parameter is null, a NullPointerException is not thrown.

Bug: 22475546
Change-Id: Ieb0d67dd02628e1ae5629499b3be3c6382efc9aa
/frameworks/base/core/java/android/accounts/AccountManager.java
a3db8acf3d05d66162834cca3129792aa571bcca 10-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Revert "Security: AccountChooser shouldn't auto reveal accounts.""

Fixes api stuff.

This reverts commit f2d248db8078e716b809e0a17cacdea5c5609bd5.

Change-Id: I75c05a17ebde4f245e1f3e0cc22e622d06534c4b
/frameworks/base/core/java/android/accounts/AccountManager.java
f2d248db8078e716b809e0a17cacdea5c5609bd5 10-Jul-2015 Baligh Uddin <baligh@google.com> Revert "Security: AccountChooser shouldn't auto reveal accounts."

This reverts commit c3b3f46d5fcbd89deeb557556e5a695c3e5349a1.

Change-Id: I6d156e1ad82c052606f76644fe6085f14e82a734
/frameworks/base/core/java/android/accounts/AccountManager.java
c3b3f46d5fcbd89deeb557556e5a695c3e5349a1 08-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Security: AccountChooser shouldn't auto reveal accounts.

Bug: 9739125
Change-Id: Ib9032271def423aaafdab2505afaf6b1d3fcad06
/frameworks/base/core/java/android/accounts/AccountManager.java
c37ee22714ddec1104ba3a2189cf77924ac27812 18-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Tweak GET_ACCOUNTS behavior and improve memory.

Related to recent permissions and system health changes. This change
will make it so that calls to AccountManager#getAccountsByType will work
for the owning account authenticator even if they don't have
permissions. This is pretty fundamental to having a working
authenticator and it doesn't make sense to have it be disabled (or have
authenticators hack around the framework).

Also changed how TokenCache works so that memory usage is still
predictable (no more than 64kb) but token caching won't be at the mercy
of garbage collection. This is important for writing stable cts tests.

Change-Id: Ib31b550616b266ee5a04eb26b04ba0023ca0cb83
/frameworks/base/core/java/android/accounts/AccountManager.java
0b8a7c00bd9433862e7867f6780fe3cd5771ee7d 19-Jun-2015 Simranjit Singh Kohli <simranjit@google.com> [Modify LastAuthenticatedTimestamp behaviour]:

We should not modify lastAuthenticated timestamp in authenticator
specific api's, as some of the calls maybe used by authenticators
for internal maintainance/upgrade. Only modify the timestamp when
calls effecting accounts is made to non-authenticator developer api's.

Bug: 21959561

Change-Id: I7b2d0c875957b263c4d9b203fe1f33042a65a58f
/frameworks/base/core/java/android/accounts/AccountManager.java
6eb73a577850a4b6ddb06fd746f09a6c1d124f34 11-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Revert "Permissions: Fix account related permissions.""

This reverts commit dcddc476651deb72a27798de56eef584e5be5d32.

Change-Id: Ie2402167fc7cd3d5e57bf2fba704fdf00cfcb4fe
/frameworks/base/core/java/android/accounts/AccountManager.java
dcddc476651deb72a27798de56eef584e5be5d32 11-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Permissions: Fix account related permissions."

This reverts commit ffb46022b30dffdf1cc4cbd08d4bcbe51e1f8814.

Change-Id: I4c62b1b5a5bd4e2a5fac76244a16730526ed67fc
/frameworks/base/core/java/android/accounts/AccountManager.java
ffb46022b30dffdf1cc4cbd08d4bcbe51e1f8814 09-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Fix account related permissions.

Requires updating the docs in AccountManaager as well as the logic in
AccountManagerService.

MANAGE_ACCOUNTS, USE_CREDENTIALS, and AUTHENTCATE_ACCOUNTS are going
away. Where AUTHENTCATE_ACCOUNTS was required we now do signature
matching.

GET_ACCOUNTS is kept but has been grouped under contacts.

Bug: 20136477
Change-Id: Iabbb76dce8d1efc607c1f107911d7ddab598a481
/frameworks/base/core/java/android/accounts/AccountManager.java
734f8fb69d0c8af7b10bded718897a55ced49bf0 22-May-2015 Simranjit Singh Kohli <simranjit@google.com> [ChooseAccount/AccountManager.newChooseAccountIntent Bug Fixes]

Fixing lots of bugs related to the ChooseAccount Activities.
1. Fix jank which is seen when no accounts are present on the device.
2. After addition of the account, return to the user.
3. Don't crash when the user provides null to allowableAccountTypes.
4. Updated documentation of AccountManager#newChooseAccountIntent.
5. Fix NPE.

Bug: 13104800
Bug: 17926560
Bug: 9626001

Change-Id: I0d1913e46560cfb458526a7c930a38049602d8f1
/frameworks/base/core/java/android/accounts/AccountManager.java
80b530afdb3c19bb664e0ff8c2b650de917305d2 24-Apr-2015 Tor Norbye <tnorbye@google.com> Add permission annotations on the AccountManager

Also add some @NonNull and @Nullable annotations.

Change-Id: Ia42b1af21ed14691b2268ea8b0f55d1b8b5ea2a3
/frameworks/base/core/java/android/accounts/AccountManager.java
1663b44cfd5fe589183dae5db769c843870cb5db 28-Apr-2015 Simranjit Singh Kohli <simranjit@google.com> [Update API]:
Rename accountAuthenticated to notifyAccountAuthenticated and other
changes.

Bug: 20642769
Change-Id: I7e69d6a9492691429af0d7c2f405e01e265fcedd
/frameworks/base/core/java/android/accounts/AccountManager.java
6c7c4ada8b0ce5f7027fd7b87dc8848b42fa5a0c 24-Feb-2015 Simranjit Singh Kohli <simranjit@google.com> [Auth:Last Credentials Timing] : Introducing API

Storing last successful sign-in/authentication timings, and providing that
information as extra's in updateCredentials and confirmCredentials.
Also, adding a new api: AccountManager#accountAuthenticated(Account).

Change-Id: Icd0dac35b13d61bc28a2e045b96caefffeb353be
/frameworks/base/core/java/android/accounts/AccountManager.java
22dc3b7ba111e27bce99a7cce966598e7873508c 31-Oct-2014 Esteban Talavera <etalavera@google.com> New AccountManager method to copy accounts between users.

Adding the copyAccountToUser method which copies an account
along with its credentials to a different user.

Also an extra in the public api to identify the account to migrate
during provisioning.

Bug: 17716971
Change-Id: I2f29f1765ba0d360a3894b13ef86253b7c7d3284
/frameworks/base/core/java/android/accounts/AccountManager.java
8778f993aeb7ec3df88aa0b244381253257bafe2 06-Nov-2014 Simranjit Singh Kohli <simranjit@google.com> [RemoveAccount API]: Adding support for intent.

Adding support for intent handling provided by authenticators.

Bug: 18292092

Change-Id: I1e94422bc28e5fd54c454ee6542ff2d30f82849f
/frameworks/base/core/java/android/accounts/AccountManager.java
f193b9a61d0b14d13bb7f8aec42a21154672e5ec 18-Jul-2014 Carlos Valdivia <carlosvaldivia@google.com> Allow authenticators to rename accounts.

Bug: 16390602

Change-Id: I4f7250726a2c7677e0ccaa6e5f995153893d8360
/frameworks/base/core/java/android/accounts/AccountManager.java
999d394adee533c55fce38bd632ffd4f1af91362 03-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Ads per-user APIs to manage accounts through the AccountManager

Bug: 16056552
Bug: 14642886
Change-Id: I17ff6c2515285e63c84cecf2f861d10666c393c5
/frameworks/base/core/java/android/accounts/AccountManager.java
c1cf161af036e0f337b58ef0739a8ff2e42f01e7 05-Jun-2014 Alexandra Gherghina <alexgherghina@google.com> Modifies APIs for retrieving managed profile accounts.

This is needed for Account Settings UI.

Bug: 13656853
Change-Id: I33129e4b7b33b428a7bf670259accacb60f62d9b
/frameworks/base/core/java/android/accounts/AccountManager.java
423f8a8c21ec4e702e72ffce27bb3b5481170bae 03-Jun-2013 Joe Malin <jmalin@google.com> am 2618ac55: am a37bda7b: am 468d82bb: am 6bf45dc7: am b6a35268: B9257437: Typo in javadoc for AccountManager

* commit '2618ac55a94a97e29abd9defa93dea30e067b4e4':
B9257437: Typo in javadoc for AccountManager
b6a35268ccb698cde6d2e1e2f475a7299112b034 03-Jun-2013 Joe Malin <jmalin@google.com> B9257437: Typo in javadoc for AccountManager

Change-Id: I5349c2a0ba7e831d205f2801daecc24fa9a5b5a6
/frameworks/base/core/java/android/accounts/AccountManager.java
3b458ad9ee5f2d6b7cf28a13bc29123cdf540763 19-Apr-2013 Amith Yamasani <yamasani@google.com> Improve API and documentation

API for querying accounts visible to a specific package.

Improve API and docs for device owner.

Bug: 8657158
Change-Id: I01b8701534f64b383391508a49ae93ed21f22ae0
/frameworks/base/core/java/android/accounts/AccountManager.java
27db46850b708070452c0ce49daf5f79503fbde6 31-Mar-2013 Amith Yamasani <yamasani@google.com> Block access to accounts for limited users.

Make sure that apps that have access to restricted accounts can see them.
If they don't have access, they shouldn't be able to add a new account either.
Show an error message in the account picker if the user/app is not authorized.

Change-Id: I117c0b14d7d06c5ac4e66506df156b174567f5f3
/frameworks/base/core/java/android/accounts/AccountManager.java
da160ec313d844b09818a91463631440a1b8a09c 29-Mar-2013 kmccormick <kmccormick@google.com> am 6eebd6e6: am 6f50c846: am d2c1e947: am 39f864b1: am 5018688b: Merge "Doc update: incorrect method name" into jb-mr1.1-docs

* commit '6eebd6e6b44d7688489c430cad933e971530e43d':
Doc update: incorrect method name
f783ce5bcfa85a260196d27fb9feabfc4fbd4b46 29-Mar-2013 kmccormick <kmccormick@google.com> Doc update: incorrect method name

"Bug: 8177983"

Change-Id: Ib8f811a8e82dbff9b4e97cb670dec66342a0df00
/frameworks/base/core/java/android/accounts/AccountManager.java
3df7d697ca86ee2081bcfba31bcbd3ae4f4bcdf8 27-Mar-2013 Jatin Lodhia <jlodhia@google.com> AccountManager changes for profile seeding.

Add a new error code to AccountManager and remove the check for
limited user during add account to allow Authenticators to seed
account during limited profile startup.

Change-Id: I5a73def9fc3baeb8e6de1b42e923829c335e1668
/frameworks/base/core/java/android/accounts/AccountManager.java
df2e92a535e19c00edd37318d974dab992ccc2c1 02-Mar-2013 Amith Yamasani <yamasani@google.com> Application restrictions API

Adds the ability for apps to export some restrictions. The restrictions
are presented in Settings based on the restriction type. The user's
selections are stored by UserManagerService and provided to the
target user's application as a list of RestrictionEntry objects which
contain the key, value(s).

Also introduce a manifest entry for system apps to request that the
app be automatically installed in all users, so that they cannot be
deselected by the owner user.

Shared account filtering for non-whitelisted apps.

Change-Id: I15b741e3c0f3448883cb364c130783f1f6ea7ce6
/frameworks/base/core/java/android/accounts/AccountManager.java
12b8e134c1c98d7eb90510fb79cc25dcf56b2cb0 14-Mar-2013 Amith Yamasani <yamasani@google.com> Move the account picker class name to a config resource.

For customization in derived products.

Bug: 8379133
Change-Id: I1dba4734f322455f0b0dd9c009be2ddc8d6b7d22
/frameworks/base/core/java/android/accounts/AccountManager.java
67df64b3a48a8157d08a98fa90135d0ac0ee621c 14-Dec-2012 Amith Yamasani <yamasani@google.com> Shared accounts and sharing of apps

API and preliminary implementation for sharing primary user accounts with a secondary user.
AbstractAccountAuthenticator has new methods to retrieve and apply a bundle of credentials
to clone an account from the primary to a restricted secondary user. The AccountManagerService
initiates the account clone when it starts up the user and detects that the user has
a shared account registered that hasn't been converted to a real account.

AccountManager also has new hidden APIs to add/remove/get shared accounts. There might be
further improvements to this API to make shared accounts hidden/visible to select apps.

AccountManagerService has a new table to store the shared account information.

Added ability in PackageManager to install and uninstall packages for a secondary user. This
is required when the primary user selects a few apps to share with a restricted user.

Remove shared accounts from secondary users when primary user removes the account.

Change-Id: I9378ed0d8c1cc66baf150a4bec0ede56f6f8b06b
/frameworks/base/core/java/android/accounts/AccountManager.java
cb2f707f869933e4e5bb16add76dbf8747cf3b06 08-Nov-2012 Amith Yamasani <yamasani@google.com> am cb5cb740: am aecee8a9: am 717797db: am f763b717: Merge "Authenticate correct user\'s account when pattern fails multiple times." into jb-mr1-dev

* commit 'cb5cb740b587744150df7414bdc2974144e9167a':
Authenticate correct user's account when pattern fails multiple times.
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
ab249e08db1f7ce88e039fa4baad9424b42404c1 05-Sep-2012 Mark Fickett <mwf@google.com> Fix docs typo: startActivityWithResult should be startActivityForResult.

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