summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/MasterClear.java
Commit message (Collapse)AuthorAgeFilesLines
* MasterClear: update UIRoman Birg2016-01-271-134/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also squashed the following related commits from 12.1: MasterClear: fix FRP wipe crash Requesting setRequestedOrientation() right after showing a custom dialog in a DialogFragment does not play nice. It forces the activity to be recreated instantly, so when the task finishes, there original activity the AsyncTask is tied to is no longer valid. However, if we let fragment manager keep track of all the dialogs, it doesn't break the expected behavior. REF: CYNGNOS-427 Change-Id: I0609816182a6b5319d2a88ff0075d53e3c2fed16 Signed-off-by: Roman Birg <roman@cyngn.com> Settings: make FRP wipe dialog not cancelable User should not be able to interact with the screen after the process has started. Otherwise we can get in a bad state and never perform the factory reset. Ref: CYNGNOS-427 Change-Id: I197a6ca70487a33b0ce402fda7a2d58828e8e1bb Signed-off-by: Roman Birg <roman@cyngn.com> Settings: don't crash when dismissing FRP If the user has pressed home while the dailog is up, there may be nothing to dismiss by the time the task finishes. Ref: CYNGNOS-427 Change-Id: Ic4fdec1ecb32f88181feba4bfd3eb337b1b61efd Signed-off-by: Roman Birg <roman@cyngn.com> Settings: continue factory reset if user leaves activity If the FRP dialog is up, and the user presses the home button, the FRP task will finish, and then try to use the activity context to initiate the wipe, and the fragment to retreive args, both of which is no longer valid. Cache all variables before the task begins, and use the application context to complete the calls. Ref: CYNGNOS-427 Change-Id: I5c8b286195a0b57fd879a1022d64ea548363b925 Signed-off-by: Roman Birg <roman@cyngn.com> Ref: Settings-86 Change-Id: I759de586bf5cb8558d42575d08df63aaf84fffa6 Signed-off-by: Roman Birg <roman@cyngn.com>
* Talkback improvements for Settings screens.Julia Reynolds2015-07-091-0/+18
| | | | | Bug: 21164141 Change-Id: I7444261ccf967f6db70c9fe44a00bd3f19ceb975
* Defensively load untrusted icons from account authenticatorRubin Xu2015-06-081-4/+7
| | | | | | | | | Catch Resources.NotFoundException which should cover all parsing errors from loadDrawables(); also substitute a default icon if parsing returns null. Bug: 17760671 Change-Id: Ia0ec25e34974ed85b6ffe6882d5bce003d64e9d6
* Update confirm device credentials to spec, add fingerprintJorim Jaggi2015-04-131-2/+2
| | | | | | | | | | | - New strings in the screen. - New layout/style. - Clean up internal API's around it. - Add fingerprint support if launched from externally - Separate theme if launched from externally - If launched from above Keyguard, use SHOW_WHEN_LOCKED flag Change-Id: Icdf9bf9e0506841f24e8aab5f0f1d1f4b688951f
* log visibility of viewsChris Wren2015-03-271-1/+7
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Settings: Remove all unused imports.John Spurlock2015-03-181-3/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* Add option to reset network settings to factoryStuart Scott2015-03-091-8/+6
| | | | | bug:16161518 Change-Id: I7c0cc58d5385352c6c9af2b27af23a744b5df977
* Eliminate duplicated code in Settings for category headersZoltan Szatmary-Ban2015-01-161-10/+1
| | | | Change-Id: I5bdba2ad4f9e1987f9e818af9d5aa96a9d558f6b
* Show account icons for managed profiles on Settings > Factory ResetZoltan Szatmary-Ban2014-12-021-1/+2
| | | | | | | | Fixing a bug where managed profile's accounts where shown without the account icon. Bug: 18555032 Change-Id: I5a1094e795b31a00599bc4df413573030693b436
* Show managed profile accounts on Settings > Factory ResetZoltan Szatmary-Ban2014-11-121-40/+78
| | | | | | | | List both primary profile's and managed profile's accounts. Also notify the user if there are other users present on the device. Bug: 17899181 Change-Id: I5401722e65305861edeed60cfe926fca5c81a418
* Don't show a pattern-specific prompt at encryption time.Paul Crowley2014-11-051-2/+1
| | | | | Bug: 18054895 Change-Id: I8a029142085b9e7f59efc8e313b6438734d5a1bb
* am 526e4b41: am c1dc8752: Merge "Disable factory reset for secondary users" ↵Amith Yamasani2014-10-231-1/+3
|\ | | | | | | | | | | | | into lmp-dev * commit '526e4b41550fa70e08cfcfc7bfbc2aa88a9f71d7': Disable factory reset for secondary users
| * Disable factory reset for secondary usersAmith Yamasani2014-10-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | Search in Settings makes it possible to find the factory reset screen. Disable the search index in PrivacySettings so that backup and reset keywords don't get indexed for secondary users. Also add additional safeguards for other entry points such as public intents, so that the backup/reset screen does not show any options. Bug: 18076086 Change-Id: Ie5135fbf4084038c99947a1a107ab4758f0c15a9
* | Update Settings to use themed Context.getDrawable()Alan Viverette2014-10-101-1/+1
|/ | | | | | | | | | Explicit null theme is passed when using Resources.getDrawable() and no theme is available, e.g. when using getResourcesForApplication(). This fixes an issue with ic_text_dot theming and helps avoid similar issues in the future. BUG: 17648301 Change-Id: I3e97c3490b6f2a55744f567b21284f2935ae9af7
* Use user restriction instead of pin to guard factory reset in Settings.Julia Reynolds2014-06-131-34/+6
| | | | | Bug: 14081992 Change-Id: I60f132312368c5097b46ab97e881eec3700ef586
* Use Drawer in Settings appFabrice Di Meglio2014-02-031-2/+1
| | | | | | | | | | | | | | | | | | | | - 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
* Handle renamed APIsAmith Yamasani2013-09-051-2/+2
| | | | | Bug: 10461761 Change-Id: If63c3801663b347a4643e44d5bd3bab4e3049578
* Apply restrictions right away instead of on exitAmith Yamasani2013-07-181-1/+35
| | | | | | | | | | | | | | | | | Use usermanager to clear restrictions, as it needs to do a bunch of book keeping. Apply PIN restriction to master clear button. Changing existing PIN now includes verifying the PIN, so it doesn't need to be cleared here in Settings. Removed automatic persisting of restrictions on receiving them unless it is a restricted profile. Make apps that are signed with platform certs immutable and ON. Change-Id: Iffd1bf2eb0d18202fb66ddcf80668baa8e6b84ed
* Don't append list of accounts every time we return to this screen.Amith Yamasani2011-09-221-0/+1
| | | | | | | | Bug: 5355920 Remove the contents of the layout before adding the accounts. Change-Id: Ic9256140f892968b2388f47d982eaada720df892
* Force storage wipe if not removable and encryptedBen Komalo2011-09-091-5/+16
| | | | | Bug: 5017638 Change-Id: I43c98359eff7202437249675060ba964e1bd085c
* Fix NPE in MasterClearAmith Yamasani2011-07-171-4/+5
| | | | | | Bug: 5008299 Change-Id: If2d02af7ecda7fe40445a3ec8e023138c5523fd6
* Don't show separate option for erasing USB storageKenny Root2011-01-181-6/+23
| | | | | | | | | On devices with emulated USB storage or SD card, factory reset will wipe all data from that area. Given that, it doesn't make sense to show a different option for wiping USB storage. Bug: 3242568 Change-Id: I257bdde06141f14381c8c09ce6a42c18d7080efd
* Show the accounts on the factory reset screen.Joe Onorato2010-11-081-0/+70
| | | | | Bug: 2823530 Change-Id: Idbf46aa59f3c529a3a3ef2d7d4e607822b34f51d
* Fragmentize "Factory reset" setting screen.Amith Yamasani2010-11-031-94/+45
| | | | | | Split the screen into 2 fragments. Bug: 3148480
* Implement issue #3094621 and #3094609 - wipe sd cardDianne Hackborn2010-10-161-10/+25
| | | | | | | | | | 3094621: add "wipe sd card" option to factory data reset 3094609: collapse unmount/format into one command Implements requested UI changes. Also some final tweaks to Manage Applications. Change-Id: I0219195dd0c74d8c003ef1c3f6e09714859d7f89
* Fix 2594148: confirm PIN/Password before resetting deviceJim Miller2010-04-141-14/+11
| | | | | | | | | This fixes a bug where user was allowed to factory reset the device without entering their PIN/Password. It also fixes the same issue with MediaFormat (Settings->SD Card->Format). Change-Id: I0677a50aa771ad8663513fd7ec398a70953dcde2
* Remove a no longer necessary (or present!) import.Dan Egnor2010-02-141-1/+0
|
* Perform master clear via Intent broadcast, rather than using ICheckinService.Dan Egnor2010-02-111-25/+2
|
* Fix 2385283: Add DevicePolicyManager calls to LockScreen.Jim Miller2010-01-201-4/+4
|
* Still use ro.monkeyYing Wang2010-01-061-3/+1
| | | | | http://b/issue?id=1681101 So just some refactoring.
* Rename ro.monkey to monkey.runningYing Wang2010-01-041-3/+3
| | | | So that Monkey can set it before running and reset it after running.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+205
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-205/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+205