summaryrefslogtreecommitdiffstats
path: root/core/java/android/accounts
Commit message (Collapse)AuthorAgeFilesLines
* Udpate instrumentation codeWilliam Clark2015-11-301-28/+22
| | | | | | Added changes to support new features in QSSP Change-Id: I92c0a4eb3cb5363fbf08185f25644a3202c38788
* SEEMP: Add more framework instrumentationWilliam Clark2015-10-061-0/+32
| | | | | | | | | Instrument framework files to log events of interest. Conflicts: core/java/android/accounts/AccountManager.java Change-Id: Ia45651e6352586f910039b51cac2356f65f80010
* Add get_accounts app opSvetoslav2015-09-082-13/+18
| | | | | | | | | | | | | | | | | 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: I9e3f9bfeb320bed561d718db99ee285915d5701b
* Revert "Revert "Permissions: GET_ACCOUNTS permission cleanup""Ian Pedowitz2015-08-052-28/+48
| | | | | | | | This reverts commit 845d14db9066c3262f270237b52e315aa71508b2. Bug: 22942480 Bug: 22902898 Change-Id: If2d0e11594284414953c3dd45475fc7ba3366295
* Revert "Permissions: GET_ACCOUNTS permission cleanup"Ian Pedowitz2015-08-042-48/+28
| | | | | | | | | Temporarily revert ag/735253 until b/22902898 can be resolved with a proper DMAgent prebuilt drop. This reverts commit e7ed827a104ba005b93faa2edb3bc77f72b240ec. Bug: 22902898
* Merge "Permissions: GET_ACCOUNTS permission cleanup" into mnc-devCarlos Valdivia2015-07-302-28/+48
|\
| * Permissions: GET_ACCOUNTS permission cleanupCarlos Valdivia2015-07-302-28/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | [Improve docs for AccountManager]Simranjit Singh Kohli2015-07-291-0/+93
|/ | | | | | | | 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
* Prevent null allowableAccounts from crashingCraig Lafayette2015-07-141-1/+1
| | | | | | | | | | 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
* Revert "Revert "Security: AccountChooser shouldn't auto reveal accounts.""Carlos Valdivia2015-07-102-20/+62
| | | | | | | | Fixes api stuff. This reverts commit f2d248db8078e716b809e0a17cacdea5c5609bd5. Change-Id: I75c05a17ebde4f245e1f3e0cc22e622d06534c4b
* Revert "Security: AccountChooser shouldn't auto reveal accounts."Baligh Uddin2015-07-102-63/+21
| | | | | | This reverts commit c3b3f46d5fcbd89deeb557556e5a695c3e5349a1. Change-Id: I6d156e1ad82c052606f76644fe6085f14e82a734
* Security: AccountChooser shouldn't auto reveal accounts.Carlos Valdivia2015-07-092-21/+63
| | | | | Bug: 9739125 Change-Id: Ib9032271def423aaafdab2505afaf6b1d3fcad06
* Tweak GET_ACCOUNTS behavior and improve memory.Carlos Valdivia2015-06-301-2/+4
| | | | | | | | | | | | | | | 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
* [Modify LastAuthenticatedTimestamp behaviour]:Simranjit Singh Kohli2015-06-191-12/+22
| | | | | | | | | | | 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
* Revert "Revert "Permissions: Fix account related permissions.""Carlos Valdivia2015-06-111-108/+47
| | | | | | This reverts commit dcddc476651deb72a27798de56eef584e5be5d32. Change-Id: Ie2402167fc7cd3d5e57bf2fba704fdf00cfcb4fe
* Revert "Permissions: Fix account related permissions."Carlos Valdivia2015-06-111-47/+108
| | | | | | This reverts commit ffb46022b30dffdf1cc4cbd08d4bcbe51e1f8814. Change-Id: I4c62b1b5a5bd4e2a5fac76244a16730526ed67fc
* Permissions: Fix account related permissions.Carlos Valdivia2015-06-111-108/+47
| | | | | | | | | | | | | | 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
* System Health: Support expiring tokensCarlos Valdivia2015-06-021-10/+51
| | | | | | | | | | | | | | | | In the past android:customTokens=true authenticators were required to handle their own token caching. This is detrimental for battery when high traffic authenticators are constantly spinning up processes to start services to do file io to check their own caches. This change allows authenticator implementers to optionally let the framework do some of the work for them by providing the framework with a expiration time. The AccountManagerService will make a best effort to re-use the cached token if possible. Bug: 21530782 Change-Id: I16a7edba36a220e3891e55cf61c725c2be863323
* [ChooseAccount/AccountManager.newChooseAccountIntent Bug Fixes]Simranjit Singh Kohli2015-05-222-26/+32
| | | | | | | | | | | | | | | 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
* Add permission annotations on the AccountManagerTor Norbye2015-05-041-1/+37
| | | | | | Also add some @NonNull and @Nullable annotations. Change-Id: Ia42b1af21ed14691b2268ea8b0f55d1b8b5ea2a3
* [Update API]:Simranjit Singh Kohli2015-04-281-6/+5
| | | | | | | | Rename accountAuthenticated to notifyAccountAuthenticated and other changes. Bug: 20642769 Change-Id: I7e69d6a9492691429af0d7c2f405e01e265fcedd
* [Auth:Last Credentials Timing] : Introducing APISimranjit Singh Kohli2015-03-302-6/+45
| | | | | | | | 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
* New AccountManager method to copy accounts between users.Esteban Talavera2014-11-142-0/+36
| | | | | | | | | | | 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
* [RemoveAccount API]: Adding support for intent.Simranjit Singh Kohli2014-11-072-15/+119
| | | | | | | | Adding support for intent handling provided by authenticators. Bug: 18292092 Change-Id: I1e94422bc28e5fd54c454ee6542ff2d30f82849f
* Update string for account manager failuresAlexandra Gherghina2014-07-281-15/+0
| | | | | Bug: 14642886 Change-Id: I200e38c7a93990787a3d6e01a583fe8ba193a987
* Allow authenticators to rename accounts.Carlos Valdivia2014-07-212-0/+72
| | | | | | Bug: 16390602 Change-Id: I4f7250726a2c7677e0ccaa6e5f995153893d8360
* Ads per-user APIs to manage accounts through the AccountManagerAlexandra Gherghina2014-07-174-7/+81
| | | | | | Bug: 16056552 Bug: 14642886 Change-Id: I17ff6c2515285e63c84cecf2f861d10666c393c5
* Modifies APIs for retrieving managed profile accounts.Alexandra Gherghina2014-06-122-2/+46
| | | | | | | This is needed for Account Settings UI. Bug: 13656853 Change-Id: I33129e4b7b33b428a7bf670259accacb60f62d9b
* Add APIs for obtaining themed Drawable from Theme, ContextAlan Viverette2014-02-032-2/+2
| | | | | BUG: 12611005 Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
* Remove unused imports from frameworks/base.John Spurlock2013-11-203-6/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* am 8811154e: am 423f8a8c: am 2618ac55: am a37bda7b: am 468d82bb: am ↵Joe Malin2013-06-031-1/+1
|\ | | | | | | | | | | | | 6bf45dc7: am b6a35268: B9257437: Typo in javadoc for AccountManager * commit '8811154e9369ff936c35f355034ec1f6aafa984e': B9257437: Typo in javadoc for AccountManager
| * am 2618ac55: am a37bda7b: am 468d82bb: am 6bf45dc7: am b6a35268: B9257437: ↵Joe Malin2013-06-031-1/+1
| |\ | | | | | | | | | | | | | | | | | | Typo in javadoc for AccountManager * commit '2618ac55a94a97e29abd9defa93dea30e067b4e4': B9257437: Typo in javadoc for AccountManager
| | * B9257437: Typo in javadoc for AccountManagerJoe Malin2013-06-031-1/+1
| | | | | | | | | | | | Change-Id: I5349c2a0ba7e831d205f2801daecc24fa9a5b5a6
* | | UX compliance for error messagesAmith Yamasani2013-05-301-5/+14
|/ / | | | | | | | | Bug: 9122154 Change-Id: I4a64750f11845a230321450bc6a2955cb73e3b6d
* | Merge "Improve API and documentation" into jb-mr2-devAmith Yamasani2013-04-192-0/+18
|\ \
| * | Improve API and documentationAmith Yamasani2013-04-192-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | API for querying accounts visible to a specific package. Improve API and docs for device owner. Bug: 8657158 Change-Id: I01b8701534f64b383391508a49ae93ed21f22ae0
* | | Fix NPE when restarting ChooseTypeAndAccountActiivty.Carlos Valdivia2013-04-191-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | Note that this change still leaves things in an imperfect state. Now instead of ANR with an NPE it will reshow the Choose account activity and then on the second back, it will go away. So the user isn't hosed. But it is still a sloppy experience. Basically the bug fix reveals another not quite as bad bug (see https://b/8661942). Bug: 8151602 Change-Id: I44b188f5940d464c2dd81dd0b6b7cae3c189becd
* | Show an error dialog when account type is requested on a limited userAmith Yamasani2013-04-101-0/+40
| | | | | | | | | | | | | | | | | | This covers the scenario where an app doesn't find an account of the required type and requests the account manager to add one of that type. Bug: 8537648 Change-Id: I4d9c8842c2d90aa668f16034d3db007dc61714b8
* | Block access to accounts for limited users.Amith Yamasani2013-03-303-10/+65
| | | | | | | | | | | | | | | | 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
* | am 6eebd6e6: am 6f50c846: am d2c1e947: am 39f864b1: am 5018688b: Merge "Doc ↵kmccormick2013-03-291-1/+1
|\ \ | |/ | | | | | | | | | | update: incorrect method name" into jb-mr1.1-docs * commit '6eebd6e6b44d7688489c430cad933e971530e43d': Doc update: incorrect method name
| * Doc update: incorrect method namekmccormick2013-03-291-1/+1
| | | | | | | | | | | | "Bug: 8177983" Change-Id: Ib8f811a8e82dbff9b4e97cb670dec66342a0df00
* | AccountManager changes for profile seeding.Jatin Lodhia2013-03-281-2/+3
| | | | | | | | | | | | | | | | 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
* | Application restrictions APIAmith Yamasani2013-03-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Move the account picker class name to a config resource.Amith Yamasani2013-03-141-3/+12
| | | | | | | | | | | | | | For customization in derived products. Bug: 8379133 Change-Id: I1dba4734f322455f0b0dd9c009be2ddc8d6b7d22
* | Make account cloning API publicAmith Yamasani2013-03-081-2/+0
| | | | | | | | Change-Id: If48d93dab49afcaaa301a5a3aa514f3d4dd3bab8
* | Shared accounts and sharing of appsAmith Yamasani2013-03-064-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Move lingering services to services.jar.Jeff Sharkey2012-12-114-2706/+1
| | | | | | | | | | | | | | | | This helps reduce the pressure on framework.jar, and makes it clear that it should only be used by the system_server. Bug: 7333397 Change-Id: I0858904239535380fbf30562b793e277d8c3f054
* | am cb5cb740: am aecee8a9: am 717797db: am f763b717: Merge "Authenticate ↵Amith Yamasani2012-11-083-10/+55
|\ \ | |/ | | | | | | | | | | 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.
| * Authenticate correct user's account when pattern fails multiple times.Amith Yamasani2012-11-053-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 9fb2695c: am 628025fd: am bd4f2181: Merge "Defer more Account actions ↵Jeff Sharkey2012-10-181-1/+0
|\ \ | |/ | | | | | | | | | | until user starting." into jb-mr1-dev * commit '9fb2695c3ed806a4dee755e730b50935c7bb10f6': Defer more Account actions until user starting.