History log of /packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f5d3e74ecc2b973941d8adbe40c6b23094b5abb7 08-Sep-2014 Carlos Valdivia <carlosvaldivia@google.com> SECURITY: Don't pass a usable Pending Intent to 3rd parties.

Unfortunately the Settings app has super powers. We shouldn't let
untrusted 3rd party authenticators re-purpose those powers to their own
nefarious ends. This means that we shouldn't pass along PendingIntents
that can have addressing information (component, action, category)
filled in by third parties.

Bug: 17356824
Change-Id: I397d26c5f465ddfb0e58bbc66cd44756e58cc507
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
9ce0da9cf1a25eec322e2c7f9f2bc9ba15158e90 07-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Add account for managed user

Bug: 16056552
Change-Id: I225a1b447d9b4024703b82be8a1fa66359d9e9a1
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
7d748c0267b7d499309464ebae168be01e136b4c 27-Jun-2014 Alexandra Gherghina <alexgherghina@google.com> Handle choosing and adding accounts for a managed profile

The user id can now be passed through the app as a fragment argument.

Bug: 15466880
Change-Id: I0e2be20551b4ec8c9226640ac74ea74115156ccd
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
74309ea53a5a72430bafaa8cea4d82d4e24f61bd 20-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13058470 Cannot add account -- Settings app crashes

- revert back to an Activity instead of a fragment. This
is a straight reverse of the changes introduced for trying
to have a Fragment.

Basically ChooseAccountActivity was previously an Activity for
choosing an account type. If the list of account types was containing
only one item, then the ChooseAccountActivity was just a pass thru
and was falling back to the only account authority available.

In the current reported bug, this was happening by disabling the
Email app and thus having only the GoogleAuthenticator as an
Authority.

Then in the onCreate() the ChooseAccountFragment was seeing that
there was only one account authenticator and issuing a BACK button
press. Too bad, this was done into a non finished Fragment transaction
and leading to a crash.

All in all, we NEED to have an Activity and cannot use a Fragment
in that case.

Change-Id: I4a867a25fe9580929ec50a6775105adac1f88c52
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
263bcc8b732dbb47d3ce63904e0e05191fabbad6 18-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Use Drawer in Settings app

- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
c39dcc1ce4d1885ef1de926b67e88cf2dd1acaff 14-Apr-2013 Amith Yamasani <yamasani@google.com> Don't show developer options to secondary users

Show just a message that developer options are not available for the user.

Also fix silent exit of AddAccount operation by showing a toast that user
cannot add accounts.

Bug: 7409523
Bug: 8519646
Bug: 7304007

Change-Id: Id3f430d568d6b7151ac55f86dbc0ef91803fa10c
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
0c5a401a58b30041d5fe712d78fccbd47f5b744d 14-Mar-2013 Maggie Benthall <mbenthall@google.com> Respect user restrictions about adding/removing accounts, sideloading

Hide or disable options in the settings app when the user is restricted from
making changes.

Remove "Add account" button from Settings menu, and "remove account" option from menu in AccountSyncSettings.
Remove sideloading checkbox in SecuritySettings.

Also handle replacement of UserManager.isShareLocationToggleAllowed() with hasUserRestriction, which takes a restriction key string.

Change-Id: I34c74fd5aed8956ba00f92e3d3c657b608454dfe
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
cbabf19cbb85a21da3a4325f5ef925895ac16040 11-Oct-2012 Amith Yamasani <yamasani@google.com> Launch account addition activity from Settings instead of from AccountManager

This enables us to watch for failure cases from certain authenticators that
misbehave.

Bug: 7318390
Change-Id: I43398e7622214cabd1d1bf171502c6a988af00a3
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
21c2904ba32b33e5a43d33b9c46abc3ce9d6bbb0 03-Oct-2012 Amith Yamasani <yamasani@google.com> Revert "Show warning dialog in a multiuser system when adding a new account."

This reverts commit eb71f2689785bd43560afb04f8b2281c3f67f695

Change-Id: Iad4a6656e922c0d2dbd3dd349d1c24d597eab7f5
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
84d04c20531c94a52d20098ee675ad55df9acf8f 02-Oct-2012 Russell Brenner <russellbrenner@google.com> Pass flag to indicate multiple users on device

When creating a new account, some informational text changes when
more than one user exists on the device. Because GLS is built with
the SDK and because there is no public API to indicate this state,
a flag is added to the bundle passed to the AccountManager, which
then funnels down to GLS.

Bug: 7255673
Change-Id: Ida2aa5f70ab308958de510a95194463c2a089182
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
eb71f2689785bd43560afb04f8b2281c3f67f695 27-Sep-2012 Amith Yamasani <yamasani@google.com> Show warning dialog in a multiuser system when adding a new account.

Bug: 7207092

Change-Id: I95ac107dbc867490dd2e492291501fd3630d267c
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
b22a242e0e87caf214d9a6139df09bbb2975990a 19-Jul-2011 Costin Manolache <costin@google.com> Add an extra parameter to identify the caller application. Fix the handling of 'suspend' - the callback will not be visible.

Change-Id: Ide8b841b6b57e31ac082678b27c314b9eeff8846
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
7bb8f7288eaad7f6cedaea3b5c8dc48e4baa0a7f 03-Jun-2011 Amith Yamasani <yamasani@google.com> Fix account type dialog re-creation on orientation change.

Bug: 4499512

Dummy activity that launches ChooseAccountActivity was re-launching it on orientation
changes. Make sure that it only launches it one time.

Change-Id: I764a59eaefc3ce4546330ed1b994d88b8703ce80
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java
43c697854c7e373fbc1dae8b7a5259a32de346b4 01-Dec-2010 Amith Yamasani <yamasani@google.com> Move Account & sync settings into Settings app.

Fragmentized some of the activities and moved buttons into the menu area.

Bug: 3148844
/packages/apps/Settings/src/com/android/settings/accounts/AddAccountSettings.java