History log of /packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
378dec149569f57a4f8bfcbf5ece3fd458ab6263 25-Oct-2016 Steven Ng <stevenckng@google.com> Nexus imprint setting is missing while adding corp account from SUW

+ This is caused by the encryption interstitial result code not handled
in ChooseLockGeneric. Change the request code of launching encryption
interstitial screen to CHOOSE_LOCK_BEFORE_FINGERPRINT_REQUEST if it
is set new password flow.

Testing
Test: See below
1) Auto
make RunSettingsRoboTests
2) Manual
On a device (Nexus 5x) that shows encryption interstital screen and
supports fingerprint.
1) Nexus imprint flow (regression test)
Fingerprint can be enrolled with the following flow.
Settings > Security > Nexus Imprint > FingerprintEnrollIntroduction
> ChooseLockGeneric (Unlock selection) > Encryption Interstitial
> Password setup > Notification Interstitial
> Find sensor and fingerprint enrollment
2) Set new password test
i) $ adb shell am start -a android.app.action.SET_NEW_PASSWORD
ii) Click Nexus Imprint + Pattern.
iii) Choose "Require pattern to start device"
iv) Set a pattern lock.
v) Choose any of the notification behavior.
vi) Can enroll a fingerprint.

Bug: 32382952

Change-Id: Ie66ffca2e8c3cc46b5e8b619bd35986e4f41d5ab
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
7be1b5923f76e59ef2b0c30a8b53c8ba3942bfd3 04-Oct-2016 Jeff Sharkey <jsharkey@android.com> Give CTS the handle it expects to remove PIN.

When the Direct Boot tests go to remove the PIN set in previous
tests, it needs to find the option that will remove the PIN. Recent
changes for fingerprint caused this "none" option to be hidden, so
assign the "none" ID to the "skip" option.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest
Bug: 31160946
Change-Id: I0b34cbfae45d1db8ee58a5ef66738414f5e2fc27
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
da738b2edc528a9c0a7a048a7d820e57f391e979 28-Sep-2016 Steven Ng <stevenckng@google.com> DO NOT MERGE Provide fingerprint options for SET_NEW_PASSWORD intent

Cherry-pick from ag/1444396

1) Added a trampoline activity to display SET_NEW_PASSWORD intent.
2) On devices that have fingerprint sensor and have no enrolled fingerprint,
ChooseLockGeneric handles the SET_NEW_PASSWORD intent by providing
fingerprint + {PIN/PATTERN/PASSWORD} and skip fingerprint options.

Test: See below
1) Auto
make RunSettingsRoboTests
2) Manual
a) Fingerprint + pattern
i) $ adb shell am start -a android.app.action.SET_NEW_PASSWORD
ii) Click Pixel Imprint + Pattern.
iii) Set a pattern lock.
iv) Can enroll a fingerprint.
b) Pattern
i) $ adb shell am start -a android.app.action.SET_NEW_PASSWORD
ii) Click Continue without Pixel Imprint
iii) A list of unlock options, without fingerprint option, is shown.
vi) Select and enroll a pattern lock
c) Has an existing password
i) $ adb shell am start -a android.app.action.SET_NEW_PASSWORD
ii) Setting app asks for password input.
iii) Enter password and click "Continue without Pixel imprint".
vi) No password is asked. A list of unlock options, without fingerprint option, is shown.
v) Select and enroll a pattern lock
d) Work profile
i) Create a work profile
ii) adb shell am start --user x -a android.app.action.SET_NEW_PASSWORD. X is the work profile user id.
iii) Click Pixel Imprint + Pattern.
iv) Set a pattern lock.
v) Can enroll a fingerprint.

Bug: 23017051
Change-Id: I6384bbffb72a5d3a83972da7474532746e4d06b9
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
06458be226f2e2862d70ea29f85a93bb767b46bc 09-Sep-2016 Jim Miller <jaggies@google.com> Check for missing preference before setting title.

Some preferences aren't available due to DPM, so check for null
before setting the title.

Fixes bug 31184335

Change-Id: I69f97274eef87755269fd8f7897edcc36087f8b2
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
d189ac52a4e49291b729d817fc903116abc086d0 15-Jun-2016 Maurice Lam <yukl@google.com> Use GLIF theme for Settings > Security > Screen lock

Bug: 24405946
Change-Id: I1fed96cbc228b6bb367637f83f9cd3bac2761417
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
dae1ac5cb081a8f4de283711e6e1763051cf4dd6 13-Jun-2016 Ricky Wai <rickywai@google.com> Remove work fingerprints when primary profile lock is removed

Bug: 29264034
Change-Id: Ia4043e8a4f4481ff72b8d7069fd139a381158083
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
bc18b40623316f308bc21dd78f840ade73b89257 04-May-2016 Mahaver Chopra <mahaver@google.com> More informative title while choosing work lock.

When Intent ACTION_SET_NEW_PASSWORD is called from a managed profile,
ChooseLockGeneric fragment shows title "Unlock Selection", update that to
"Choose work lock".

Bug: 28451356
Change-Id: I9bcf4698557fa453337aa666f10f94f15e7624fa
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
5a8e522c6c3d71164f9d84ef98461de5dff4ccef 20-Apr-2016 Jim Miller <jaggies@google.com> Fix bug where fingerprint for wrong userId was attempted to be removed.

- cleaned up private API to ensure userId is distinct from groupId.
- fixed bug where we were sending the wrong userId when attempting to
- fix warning about wrong fingerId when receiving final id of 0.

Fixes bug 28268635

Change-Id: Ic8abfbf6fbf173db2d57a76ac2e38b2a71ffd19e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
e7d6e4ddb2371dc49015e17e2d6b9dc604fbbf58 30-Mar-2016 Toni Barzic <tbarzic@google.com> Teach settings about PASSWORD_QUALITY_MANAGED constant

Add hooks for adding an option for selecting a managed password as
lock credential. By default this option will not be visible.

BUG=27923581

Change-Id: Id17bd8074bf23cbcffb96d8576cc760df6f2298a
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
751de372750336c2dbc6ed656de84b881ede0858 06-Apr-2016 Ricky Wai <rickywai@google.com> Delete all work fingerprints when unified lock changes to None/Swipe

Bug: 27551139
Change-Id: I64105621057e04be0e4d8073626ac3ed0f1e72d2
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
4bbf0653c0197aca3baa587df80e76ba1159a4fb 01-Apr-2016 Ricky Wai <rickywai@google.com> Keymaster init for work profile

Changes:
(1) When unified work challenge is enabled and screen lock is secure
- Store work profile secure key in primary profile
- When primary user keystore unlocked, unlock work profile keystore
- When primary user change lock to none, remove work secure key
(2) When unified work challenge is enabled but screen lock is not secure
- When screen lock changes to secure, store work secure key in primary
(3) When user changes work challenge from unified to separated
- Remove work secure key in primary
(4) When user changes work challenge from separate to unified
- Do (1) and (2)

Bug: 27460698

Change-Id: Id7464c178e6ea7b561643477e7cd84f963048c87
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
a77652fea94fca598d530e40a815ca0c8e8c0d15 02-Apr-2016 Jeff Sharkey <jsharkey@android.com> Mark UI components for tests to find.

Bug: 26498834
Change-Id: Id8ade0b9230a946c7facf8ebaf9700c196b31ee3
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
5a1dbf815222ef0bf9d89fb124b759353238d065 29-Mar-2016 Udam Saini <udam@google.com> Wait for fingerprints to be removed (Partial fix).

This is a partial fix for b/27903189.
When we remove the lock screen and remove all fingerprints, wait for
them to all be removed before finishing the activity. This will let
the security screen accurately show how many fingerprints are available.

bug:27903189
Change-Id: I30908dbefb7a858f6d99e532841ed4ff894bfe62
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
92779ce70156031f4fa3b8c2d84305f5b3b44105 28-Mar-2016 Udam Saini <udam@google.com> Prevents drawer menu from showing depending on intent.

When ChooseLockScreenGeneric is started via the set password
intents, it should not allow the drawer menu to show.

bug:26288300
Change-Id: I10d512e20fedab2be8c725c7d524db0c55666590
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
25c3c54c03dab4bd14dbe92ac48e85df9c15bd68 18-Mar-2016 Tony Mak <tonymak@google.com> Should read specific user's password restriction

Bug: 27330307
Bug: 27543548

Change-Id: I385d190bdd8138f7189c657498f6a55bf84668ea
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
23c2acfd4c01b270c998a4a497c658cc3d842473 10-Mar-2016 Paul Lawrence <paullawrence@google.com> Don't show secure startup options and strings when file encrypted

File encryption is secure by default, so we don't need to warn.

Bug: 27433949
Bug: 27435082

Change-Id: I3e856256188e6a7dcd58cabbde043395c314999e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
eb8962d2734984d6e16f87261c01d8080ff16757 19-Feb-2016 Clara Bayarri <clarabayarri@google.com> Fixes for Work Challenge Fingerprint

When enrolling fingerprints on both personal and work and then setting
the lock to none or swipe, the fingerprints for that user were not being
correctly removed due to wrong userIds being passed in.

Also fix the wipe dialog message as it was always querying whether the
main user has fingerprints instead of the user the dialog applies to.

Bug: 27263452, 27199237
Change-Id: I8d170e36f31b5595bc0bb41168a87db9f57eda2f
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
77181e947860056fb77d24ab9fa9e86365b244e6 26-Feb-2016 Adrian Roos <roosa@google.com> Fix crash when changing encrypt with credential

Bug: 27173979
Change-Id: If8ef7a9342bcb1b0602791df1dc7634b3e980ee7
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
8ef4c620031973187eefc1f1f1a330e8fd26696d 04-Feb-2016 Udam Saini <udam@google.com> Reworks lock screen flows.

This also adds frp warning dialogs in case the user skips lock
screen setup initially.

bug:26880444
Change-Id: I732b6a806e139fb6c1c1b334b8d1608c229f217c
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
6de85e80a9652749b98d291e8ebf066e61a27e60 09-Feb-2016 Udam Saini <udam@google.com> Adds the headers for choose lock generic inside onCreate

This will make sure the headers are set before the underlying
RecyclerView has made its first layout, and prevents an animation
from playing when rotating to landscape.

bug:26990364
Change-Id: I2838a07a145b4d6136e88125ab955006d84d135c
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
7f2a013619fee267c1d4d6b0cc352444eef2de07 05-Feb-2016 Clara Bayarri <clarabayarri@google.com> Make ChooseLockGeneric read the userId extra from the activitie's extras if there's no arguments

Some invocations of ChooseLockGeneric are done with arguments, but
when invoking it from FingerprintEnrollIntroduction we add the extra
to the activity intent so we need to support both.

Bug: 26901625
Change-Id: Iaabad18bf17160578f6b6d807dc6acfead1ba419
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
719668508a56e39349e79540015c7081046fcfe4 05-Feb-2016 Clara Bayarri <clarabayarri@google.com> Do not unify locks when Work lock is set to None

Bug: 26845805, 26892601
Change-Id: Ie78ef417a59b29246d4d3dde5dfe434ad49b195c
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
91e0ba7d40f6768d19d1e9a32145847af88c6a8c 04-Feb-2016 Sudheer Shanka <sudheersai@google.com> Merge "Use the correct userId when checking if disabled by admin."
f755baf1c3b8fcbcee68720c8367e03381fffb4b 29-Jan-2016 Sudheer Shanka <sudheersai@google.com> Use the correct userId when checking if disabled by admin.

And when adding accounts if only one account type is possible and
it is disabled by admin, show the admin support dialog.

Bug: 26897250
Bug: 26767564
Change-Id: I5cca64491a100efc34307c45aa35c14412f043cd
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
fb4c583dba1fb8885ff9369bdab916eaa61b42bd 29-Jan-2016 Paul Lawrence <paullawrence@google.com> Don't show 'unlock at boot' for file encryption

Change-Id: I8906023942a2fa0c5c303aeabb48737ec43fc737
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
62775bf756a8eca9423bb4fab3fc7b71ab22d1a7 28-Jan-2016 Adrian Roos <roosa@google.com> Move lock screen setting behind gear

Bug: 19003093
Change-Id: I15baa5b1d19324521070d641ae6a227d782a4e9e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
62a7280cb8210958e2e23bbd72c4bd74285bb2a6 28-Jan-2016 Udam Saini <udam@google.com> Dynamically checks if screen lock suggestion is needed

Fixes a bug where if you upgrade a device with screen lock,
screen lock suggestion would show (upgrade such as N->N developer
builds) or from a user test case like M->N

bug:26844580
Change-Id: Ic779ff28f5895e407c2c96771dbbc622e6026a7f
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
aa693f6734640515fcb25e13e5e5d96b614b36a1 27-Jan-2016 Udam Saini <udam@google.com> Merge "Adds screen lock as a suggested activity"
9d1bfd1e8de6e46137a9571507c03526880d6a46 27-Jan-2016 Chris Wren <cwren@android.com> port settings over to new metrics enum

Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
4f5f7b4f9a4e60c2edba38e8de20138e661cf0d3 26-Jan-2016 Clara Bayarri <clarabayarri@google.com> Fix Profile Fingerprint Settings to use correct user id

Bug: 26790762
Change-Id: Id813c03041e6e727f535ec63f63ee8b187b06164
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
7ad4a17c5c6f2c068f0395bd7cd904524c3d29ae 25-Jan-2016 Udam Saini <udam@google.com> Adds screen lock as a suggested activity

Also, fixes a bug where the suggested activity stayed on screen
after the component was disabled causing a crash.

bug:25246207
bug:26770556
Change-Id: I28d784cdc57e464e49887483690ab514ca3bc46a
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
bf1483c383bfb42aaf78a7f9b0d2f5a41317ca86 25-Jan-2016 Udam Saini <udam@google.com> Improves flow for fingerprint

This reduces the # of screens, and makes the backup lock choice
for fingerprint more obvious that it is a backup.

bug:26377096
Change-Id: I4e75e1f3302c286587de106bcdf43537bda03390
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
34ec5f97feaf8d73d533f104cfc2c2e68e995ae3 22-Jan-2016 Clara Bayarri <clarabayarri@google.com> Fix Confirm/Choose Credentials strings related to profile

The messages in ConfirmDeviceCredentials have been updated to
inform the user that the pattern/pin/password to be entered is
the profile one.

The strings in the confirmation dialog when the user removes
the lock have also been updated.

Ideally we would have a parametrized approach to strings here,
but capitalization makes it a hard problem.

Bug: 26706338, 26709116
Change-Id: I9f5508d6f449f9e572d65e5b2dcb15cca23832b3
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
454ce75a4127225c004cd526b6b716d41d060068 22-Jan-2016 Benjamin Franz <bfranz@google.com> Merge "Add background image for work challenge"
e07c947ea35b07eb354dd43068a5670dd6cce2ef 21-Jan-2016 Jason Monk <jmonk@google.com> Fix build.

Change-Id: I43201fc9bb989d3f490ba26cb93956878745e366
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
7402b2514358e02a0e0adde982b6deb8552dc28a 20-Jan-2016 Clara Bayarri <clarabayarri@google.com> Fix bugs around unification when no password is set

- When in a unified state, selecting the work lock to be "none" caused
a security exception
- When the work lock was set to "none", unifying didn't work
- When in a unified state, the work lock type selection screen showed
"none" as the current type instead of the device lock type

Bug: 26577247
Change-Id: I853d77186e23b6a458eaa6c1047942a7eefddc9c
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
194300dff340d67255d12762ffb376b7ba201c87 13-Jan-2016 Benjamin Franz <bfranz@google.com> Add background image for work challenge

If the challenge shown is for a work profile, add the default image and
color to the background of the fragment.

Change-Id: I148c6cd3a835a84c7bac78b020839dfdae4a6c36
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
17b9fa3e52859169db2d5d4a4c0a8772ad60b21e 19-Jan-2016 Sudheer Shanka <sudheersai@google.com> Merge "Add padlocks to more preferences that can be disabled by policy."
9c32468cd59cbe5b8e7692235a67034c936b4788 18-Jan-2016 Sudheer Shanka <sudheersai@google.com> Add padlocks to more preferences that can be disabled by policy.

Change-Id: I7cc999dd1d46c20c888e0ba67053564e4d50946b
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
ae07b5080aadd398598f8b5eea6cc2e260dcc8b1 08-Jan-2016 Benjamin Franz <bfranz@google.com> Resolve new intent that allows setting the parent challenge

Have ChooseLockGeneric resolve the new intent that allows setting the
parent challenge. If the new intent is received or seperate work
challenge is not supported, default to setting the challenge of the
parent user, otherwise use the calling user.

Change-Id: Ibd0ce8ce81b1d5c9073d4eb0096fdc74de12ee95
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
b8a22e42d42e6de8fce1a2026c112c12fd0f0f7a 18-Dec-2015 Clara Bayarri <clarabayarri@google.com> Update Work Challenge check to take userId

Change-Id: I239bca2dc55066c717d74487105646df22768d93
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
6934a044b8ebf4dac28d1c1142b6eee4ecc64f66 14-Oct-2015 Clara Bayarri <clarabayarri@google.com> Work Profile Passphrase Setting

Create a new section in Security Settings which includes all
settings for the Work Challenge.
Only some settings apply to the Work Challenge, so we reuse
the security settings layouts for items and compare them against
a whitelist to remove unwanted items.

Additionally, remove all usages of ChooseLockGeneric.KEY_USER_ID
in favor of Intent.EXTRA_USER_ID.

Change-Id: I3d1ba953a2056f7c61a7b3feeb8b49f1a352dff6
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
e9d2abca86ef3a83fb25b9562e206e459a5b4e2b 15-Dec-2015 Maurice Lam <yukl@google.com> [ScreenLock] Fix result code handling

Modify the back stack and result code propagation in the screen lock
scenarios.

- EncryptionInterstitial now propagates the result of ChooseLock*
request instead of always returning RESULT_OK.
- ChooseLockGeneric now treats CHOOSE_LOCK_REQUEST and
ENABLE_ENCRYPTION_REQUEST the same (since encryption can be a proxy
for ChooseLock*). This means ChooseLockGeneric will now stay on
back stack when going back from ChooseLock*, just like the case
(indirectly) through EncryptionInterstitial.

Bug: 26177240
Change-Id: Id7f1256dcbff00d552a3e7db60c285f53f1e63e6
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
edac136e162d3935ea1ccedf6c630eff4c591d7e 09-Dec-2015 Udam Saini <udam@google.com> Allows the user to go back to Encryption Screen

bug:22907221
Change-Id: I766407f4f130ac618da178e1b6c04029025db8f2
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
93bcfcb14d42ea0884b922ae1a4d84a6955ed835 16-Oct-2015 Clara Bayarri <clarabayarri@google.com> Disable passphrase change flow encryption screen when not main user

When the user changing passphrase is not the process' user, disable
the "Ask for password on device startup" screen, as it makes no sense.

Change-Id: I521b5ec8702f7a39b94012a606794e04135e4c75
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
386919bef8e35694a40493bb65a1ac033c5f0214 23-Oct-2015 Clara Bayarri <clarabayarri@google.com> Merge "Refactor Choose/Confirm Lock flow to take user id"
f9ee84dba4299962742befdd4d390436d82b3c49 21-Oct-2015 Xiaohui Chen <xiaohuic@google.com> Clean up UserHandle.isOwner() in settings

Bug: 24869636
Change-Id: I9cb05a7543024136935902047952f582ae57c07c
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
fe432e838e5588cd4ac664d7e74f3d70a99d7df1 12-Oct-2015 Clara Bayarri <clarabayarri@google.com> Refactor Choose/Confirm Lock flow to take user id

This is a first step to allow this flow to be reused for setting
a work profile-specific lock, to be used with the work challenge.

Change-Id: Iaa65fdab9021cda5f0a1d3bc526a6b54f8a7dd16
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
05c7dde1f3a6044db7b687dfcbacbde50f3befb1 31-Jul-2015 Sungmin Choi <sungmin.choi@lge.com> To hide none security option, use config_hide_none_security_option config

Use mcc config overlay mechanism to hide none security option
in countries where it is mandatory.
To hide none security option, set config_hide_none_security_option config
true as mcc config overlay.

Bug: 22209425
Bug: 22975388
Change-Id: I774c53e17d3b50393816622134e58f8e06b76fab
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c2f6813a836014a5b38bcfaa24fe9e91671f4646 22-Aug-2015 Jim Miller <jaggies@google.com> Don't attempt to remove fp templates if none are enrolled

The code was blindly calling fpm.remove(0) to remove all
fingerprint templates and then waiting for them to be removed.

Fixes bug 23183484

Change-Id: Ie510097d85bba32d965ba3c7f324f6c042e08300
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
f92fbc1c49ec09762a2ed81297002865638f37ae 11-Aug-2015 Jorim Jaggi <jjaggi@google.com> Wait with finishing until fingerprints are removed

Bug: 22863210
Change-Id: I490157cc2f9b52ac87cc52e13c7eb57cb4a4a377
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
87fadbe6d96e482fa8fc94f502afa10a522285a4 04-Aug-2015 Maurice Lam <yukl@google.com> [Fingerprint] Help text for backup screen lock

Show a help text saying "Choose your backup screen lock method" when
asking the user for backup screen lock during fingerprint enrollment.

A backup translation is specified, using the source string "Set up your
backup screen lock method".

Bug: 22879473
Change-Id: I9b9348141227103e695d1fc78601745cac0309a7
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
38c9b9eb5ee2734c4f6f78854951e79bd9e9d3cf 24-Jul-2015 Adrian Roos <roosa@google.com> Update FRP warning to spec

Bug: 22672924
Change-Id: Ie275d5099553539707f86bf0e8cec5d5022ad227
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c0e7879684d7d9c5cd102b124ee8cf1a2637d49d 20-Jul-2015 Maurice Lam <yukl@google.com> [Fingerprint] Change message in encryption

Change the message for encryption interstitial when enrollin
fingerprint, to make it clear that fingerprint unlock is still used,
just that the backup unlock PIN / password / pattern will be needed
to start the device.

Bug: 22559146
Change-Id: Ia134e0d9b118151833a9118ff44667dcc9122185
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
95e6fe0e217d69316e4a2de0c7a5caa13640b4cb 08-May-2015 Chad Brubaker <cbrubaker@google.com> No longer upgrade password quality based on keystore

Keystore no longer requires a password to operate and only deletes
encrypted at rest entries when the user removes their password, so
blocking password downgrade is no longer required.

Bug: 20764363
Change-Id: I6f06acc71a4165282985082203ae1194491844c7
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
146fc11958ae93d4c97ce83839188ece762f3275 09-Apr-2015 Andrei Kapishnikov <kapishnikov@google.com> Added support for DO_NOT_ASK_CREDENTIALS_ON_BOOT DPM flag

When DO_NOT_ASK_CREDENTIALS_ON_BOOT flag is set in
DevicePolicyManager, the Settings UI:
1) Should not encrypt the device with password when the
user encrypts the device for the first time. The default
encryption type should be used instead.
2) Should not give the choice to the user whether to
encrypt the device with password/PIN or not but always
encrypt the device without password.

Related CL: https://googleplex-android-review.git.corp.google.com/#/c/665371/

Change-Id: Ic09f02c033a0b16b7ffc45bf6d675b62d1be4bd8
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
5437588abd69bf3eff59684528aaf50e09b6cffc 17-Apr-2015 Adrian Roos <roosa@google.com> Require explicit userId in LockPatternUtils

Bug: 18931518
Change-Id: Ie2faa18918aaadf17a84287898438549a693b0cc
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
3859643c5b65bd54dcacce029a3a97a0386ede25 17-Apr-2015 Maurice Lam <yukl@google.com> [LockScreenSetup] Start SUW-style screens in setup flow

Implement the new overloaded methods in the setup-specific screens
so that the SUW-styled screens will be started instead of the regular
ones as seen in Settings.

Bug: 20304053
Change-Id: I68e778e6421cfe08e20c9b4af9ed98e0f5ebcee1
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
6609b0c22ae89a24d1b07dc3c4143452616d4450 13-Apr-2015 Andres Morales <anmorales@google.com> pipe auth token through confirm and set password

ConfirmDeviceCredentialsActivity and ChooseLockGeneric now understand
CLSH.EXTRA_KEY_HAS_CHALLENGE and CLSH.EXTRA_KEY_CHALLENGE in their
launching intents. If present, they return a hw_auth_token_t verifying
the challenge passed in as a field in keyed by
CLSH.EXTRA_KEY_CHALLENGE_TOKEN in their result intents.

Change-Id: I0b4e02b6a798a9e57d02522880a180dffadfcde1
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
a0e1236fa970ea953bfbcc84fcae1f3fb7f189d1 02-Apr-2015 Andres Morales <anmorales@google.com> [LockSettings] pipe old password through when setting new one

Change-Id: Ia98b93d1cdb8c2d0bff42de7ecb59f5b80fb780e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
8a09b619aeb233e2aab1919301f162d8acf1f0f0 07-Apr-2015 Jorim Jaggi <jjaggi@google.com> Update confirm device credentials to spec, add fingerprint

- 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
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c2ab9341179c876b782c45d3d69897f9fd5fab80 08-Apr-2015 Adrian Roos <roosa@google.com> Merge "Allow none lockscreen with multiple users"
591dc85017ea19e56c416ae6d1a55b82e29743f4 07-Apr-2015 Adrian Roos <roosa@google.com> Allow none lockscreen with multiple users

Bug: 19962043
Change-Id: Ic7dcbd371d700bf8796f50469a7ac7d529ec491d
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
bca21083a3f511bca0369deaf8684b145c281044 03-Apr-2015 Jason Monk <jmonk@google.com> Merge "Show current screen lock as summary"
595982d2c34e6b84b7d08f1c3289535c60935830 02-Apr-2015 Jim Miller <jaggies@google.com> Prepare to make Fingerprint API public.

- moved fingerprint support files into hardware area
- moved jni into services/core

Bug 16487912

Change-Id: Id111ee89771fc208a9365fd06c57b3dbf85b5356
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
9a64a4215e9a8ac6d3af72479aa162d0701deb48 30-Mar-2015 Jason Monk <jmonk@google.com> Show current screen lock as summary

Bug: 19819290
Change-Id: Iefdacd6b86f96e6f3577351e7f92b86217b1b7ad
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
8a963babe2e36b7a41f77b8d2598c97658196e58 20-Mar-2015 Chris Wren <cwren@android.com> log visibility of views

Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
d16c9b7c3100b7ba653dcd58db036500dd220896 25-Mar-2015 Jim Miller <jaggies@google.com> Update Settings to use new fingerprint API

Bug 16487912

Change-Id: I99ac78f476d43f6b87f5dd20e597c51ed08d2c0e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
9a23adf69dc53126c9858b19760eab5b67c23b97 18-Mar-2015 John Spurlock <jspurlock@google.com> Settings: Remove all unused imports.

Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
5ee310591773ca13b8ecb8c50f24c5ae9b18a068 12-Mar-2015 Jim Miller <jaggies@google.com> Merge "Add flag to hide disabled keyguard options."
3fb2fb8ac3717b32577c9d65b2e84f1839f4b349 12-Mar-2015 Jim Miller <jaggies@google.com> Add flag to hide disabled keyguard options.

Normally keyguard options are disabled by things like credential
storage and device admins, so we show the reason in ChooseLockGeneric.

However, in the case of fingerprint we want to limit the scope
to just those options that have security (pin,password,pattern).

Bug 19592835

Change-Id: I6832ff692bad538adeec2f2575fca4f8f04f40cf
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
d52b577d490bfd87c8ffe2e519ad2e1f51104d87 12-Mar-2015 Jim Miller <jaggies@google.com> Don't reset fingerprint storage on devices without fingerprint hw.

Fixes bug 19707354

Change-Id: I26144dc855bff83cdc9c9544c8ab7449274d7b5e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
9218687e4baaf0226ef16b58f78123d979711e5d 05-Mar-2015 Jim Miller <jaggies@google.com> Implement additional fingerprint flows in Settings.

- new onboarding flow ("locate sensor")
- changed sensor location image
- changed in-app sensor icon
- remove fingerprint animation since it caused people to
want to tap on it.
- remove enrolled fingerprint templates when switching back to "none" or "slide"
- use real in-app icon for fingerprint
- much improved layout
- basic landscape layout working
- added 250ms delay to final enrollment step so it's not so jarring
- delete is now working
- rename wired, but not functional yet

Bug 19592835

Change-Id: Ie3e73a2fc8f834f1b90e2746c4cc841216aa6031
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
9066a5c8b3e2e6a2c8e9d961f306e53e399fca2f 23-Jan-2015 Maurice Lam <yukl@google.com> Setup lock screen go back one screen at a time

SetupChooseLockGeneric no longer finishes itself when it receives a
RESULT_CANCELED result from an activity it started.

Bug: 18631770
Change-Id: I892b76847904225fe607b9406d6e76f932daa062
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
f788718f2142e5546bbf1b6847793d59ffea898b 07-Jan-2015 Adrian Roos <roosa@google.com> Purge biometric weak from internal code

Bug: 18931518
Change-Id: I5da41908b1d6895a69f981e139f2d268327fafcd
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
df8566a9a1eb69ee19376457fe0ee8ad39774790 06-Dec-2014 Lucky Zhang <luckyzh@google.com> [FRP] Remove None and Swipe from screen lock options

Removed "None" and "Swipe" from screen lock options in the choosing
lock screen during setup wizard, because at this step, the user has
already chosen to pick a screen lock, hence it's unnecessory to show
"none" and "swipe".

Implemented this by overriding the DisableUnusablePreferences in
SetupChooseLockGenericFragment to disable the insecure lock methods
and adding a flag to hide disabled methods for setup wizard.

Bug: 18631416
Change-Id: I3feccf591da25bd6eadcc03c75b28cfc1d069db7
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
7b484b9af07aa92c530312507ee9a8ea85b00198 03-Dec-2014 Maurice Lam <yukl@google.com> Merge "[FRP] Theme interstitials for lock screen setup" into lmp-mr1-dev
ecd2b7b81fd2faa2f2f3dbe5a169c749321f3d89 01-Dec-2014 Maurice Lam <yukl@google.com> [FRP] Theme interstitials for lock screen setup

Use the setup wizard theme for EncryptionInterstital and
RedactionInterstitial as they will show during the lock screen setup
as part of setup wizard.

Bug: 18482708
Change-Id: I65c8924952345a4e17fcf4ffb7d68df53244c5d7
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
3bcea0289b90dd543a2e7f4ea35a5b6ccdb95e14 26-Nov-2014 Lucky Zhang <luckyzh@google.com> [FRP] Show FRP warning when disabling secure unlock

Added a dialog fragment to display warning message about disabling
device protection features when changing from a secure unlock
method to an insecure one.

Bug: 18509782
Change-Id: I0eaa9ff55c14092d8b3361d10da8b4530dd79bee
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
6b19fa9017800b94c75238339a337fd8f6c3e808 26-Nov-2014 Maurice Lam <yukl@google.com> [FRP] Theming for Pattern and Password screens

Basic theming for pattern and password screens. Create subclasses for
ChooseLockPassword and ChooseLockPattern, and copied their XML
layouts.

This CL mainly uses the buttons in the original screens as-is, with a
follow-up CL coming to change to use the nav bar buttons.

Bug: 18482708
Change-Id: I81751f781de633aff23fc68657589360007c235a
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
52c75baa122e9a8a1c27f54c3884253d2360e257 25-Nov-2014 Maurice Lam <yukl@google.com> [Setup] Theme ChooseLockGeneric for setup wizard

This is step one of theming the set-up lock screen flow to match the
setup wizard theme. This shows the general approach of creating a
subclass of both the activity and fragment and overriding methods to
achieve the desired behavior for setup.

ag/594000 is a much more comprehensive change for what the final
change will look like.

Bug: 18482708
Change-Id: Idff34937f39f46a0c488df2cae4c46155b80cab7
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
602d559d9c59074664ad684579dc3d14a09219cb 18-Oct-2014 Jim Miller <jaggies@google.com> Merge "Several fixes to new EncryptionInterstitial dialog." into lmp-dev
0698a216311acd9ab52224602d1a75c08bf89f04 17-Oct-2014 Jim Miller <jaggies@google.com> Several fixes to new EncryptionInterstitial dialog.

The code now observes whether accessibility is turned on when
deciding the default state.

Additionally, it fixes a bug where the user can back out of
EncryptionInterstitial and leave the setting in a bad state.
We now propagate the state until the place where it ultimately
gets stored.

Also fixes problem where Encryption was ignoring the state
where the device was already encrypted.

Fixes bug 17881324

Change-Id: Iec09e4464832a506bb2a78bb14a38b3531971fa0
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
40ca78f6f3d75897a1a5fd3ec999f487430d4b40 17-Oct-2014 Svetoslav <svetoslavganov@google.com> Accessibility no longer overrides strong encryption (Settings).

Updating the accessibility layer behavior to reflect the new
model where accessibility no longer overrides strong encryption.
Now enabling an accessibility service lowers the encryption
level but the user can bump it up in settings if desired.

bug:17881324

Change-Id: Iaf46cbabf1c19c193ea39b35add27aaa4ff509e4
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
46c7f6d6f32efec26bc9343f591ad1ddbe8f3b4a 14-Oct-2014 Jim Miller <jaggies@google.com> Add a checkbox option to 'require password to decrypt'

Fixes bug 17881324

Change-Id: I3f256f448a35cf8104ee6acb4de253874101f7c0
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
524484426855f814ff1f3189fd5221dd630dbf8c 30-Sep-2014 Svetoslav <svetoslavganov@google.com> Use default encryption password if an accessibility service is enabled.

If accessibility is on and the user selectes a secure lock we use weaker
encryption to enable running accessibility layer at the time the user
authenticates. This change adds a warning message to the enable accessibility
service dialog if there is a secure lock and also adds a warning as a
summary for the secure lock in the lock chooser activity. Both warning
mention the weaker encryption to be used.

bug:17671790

Change-Id: Ib5cc9d3a78f751e18362bb9238fd2804c3b600f8
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
8fd852e7c2f488650095024aca9c51f8c7ddc3b3 25-Jan-2014 Nicolas Prevot <nprevot@google.com> Add new "pin complex" type to supported keyguard PINs

This adds a feature to allow DevicePolicyAdmins to prevent using
simple PINs, which are defined as those containing more than 3
repeated values. Examples include '1234', '2468', '1111', '9876', etc.

Bug 12081139

Change-Id: I68d8fe2459837cb5e083724e1740e65f0519f7e1
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
0897f975c12808794deb0f4b81ed0bbc89d2279a 24-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Add Indexing and Search for ChooseLockGenericFragment

- clean some imports
- add key and title to security_settings_picker.xml
- add ChooseLockGenericFragment in SearchIndexableResources

Change-Id: I867a1e11905cc4059d6eccabeab04d55cc3d799e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
15826d4ea1428b3d1edb86866ca57a93c2252bda 13-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Mode code cleaning: remove obsolete references to EXTRA_NO_HEADERS

- the EXTRA_NO_HEADERS flag as no more meaning as we are showing
the Tiles (previously named "Headers") only in the Dashboard
(which is the main Settings screen)

Change-Id: I55656de0d28ca9c84adbe6647d870838b4ac230b
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
57d7fa545b792f2fa97cc6aad0e9f466ba415ffe 25-Apr-2014 Elliott Hughes <enh@google.com> resolved conflicts for merge of f90b5141 to master

Change-Id: I666b2fcde034f6dc9f7b69409facf88a4feb5309
309004706c54ba940651e95618b34f7cf693ad25 24-Apr-2014 Elliott Hughes <enh@google.com> Track MutableBoolean's new package.

Change-Id: I96df3fcbc3b94186a36617dfc1df5b195880be13
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
b05f39d186d8ce1b53bb4da3cb4c2cd22986f513 04-Feb-2014 Paul Lawrence <paullawrence@google.com> Support default, pattern, pin and password encryption types

Use plumbing provided by dependant change to bring up correct dialog
at boot time.

Needs matching framework changes from
https://googleplex-android-review.googlesource.com/#/c/412885/

Bug: 8769627
Change-Id: Ib04a2875e051a7cccca035fadb25978dfec22491
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.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/ChooseLockGeneric.java
66026773bbf1d7631743a5b892a4f768c694f868 25-Sep-2013 Amith Yamasani <yamasani@google.com> Make sure that external callers cannot pass in the confirm bypass extra

Security fix for vulnerability where an app could launch into the screen lock
change dialog without first confirming the existing password/pattern.

Also, make sure that the fragments are launched with the correct corresponding
activity.

Bug: 9858403
Change-Id: I0f2c00a44abeb624c6fba0497bf6036a6f1a4564
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
39272d07d781494ac1b27ba4da50ab6e71e60efd 24-Aug-2013 Amith Yamasani <yamasani@google.com> Fix incorrect comparison

Bug: 10446469

Screen lock options should have been locked down when encryption is
enabled. An incorrect comparison (== instead of equals) caused it
to always bypass encryption quality check.

Change-Id: I7f3856146181a92183555f30bbc50d58bfe0c3d5
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
12411fba8ed5e01f7c4be64c0a77838c7f0d6d2b 16-Aug-2013 Amith Yamasani <yamasani@google.com> Don't apply encryption password requirements for secondary users

Bug: 10314289
Change-Id: I54a54f910c914b41abd3e18963b4bd0c3cddb34a
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
a677ee210c67d13d15ba0663887675bda16354d8 26-Jul-2013 Amith Yamasani <yamasani@google.com> Whitelist fragments appropriate for an activity

Change-Id: If4f8c4e9d9949b652946cffe0ebb09b587e5a042
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
27d6f8d54b977757aa04aee1e1ea4ebd50ae80a3 29-May-2013 rich cannings <richc@google.com> Add EventLog to report lock screen type

Bug: 9075747
Change-Id: I7d3667211e76b13ccd659713c35ca86246e31e0b
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
12c1451f1fbcbc8b2b0dbf68886b6742e8eb83e2 21-Nov-2012 Danielle Millett <dmillett@google.com> Removing tutorial for choosing a pattern as part of b/7459863

Removing the tutorial that is shown the first time a user sets up
a pattern as their lock type.

Change-Id: If73c936e41458af729740fe5b178b9452c7dd2c0
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
783ea85bec4ec3b2f0fa9dd06cf065e527daf04c 02-Nov-2012 Jim Miller <jaggies@google.com> Disable the "none" security selection in settings when there's only 1 user

Fixes bug 7454567

Change-Id: Ifffa1403af8d45bc3c7da1f459b87f0a2c064b80
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c666c65fab5e5db7ed0d1e5c53656e81969ea1f5 24-Oct-2012 Amith Yamasani <yamasani@google.com> Reduce jank in security lock selection by finishing on return

Earlier the finish of the chooser was happening before the pattern/pin chooser
was started, resulting in two transitions.

This change defers the finish to after returning from the other activity. There
is still sometimes a very small glitch on the way back, but much smaller than
the current problem.

Bug: 7342594

Change-Id: I5f4f4393b841ce31dc7236074381283155ebddbd
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
47f1cd4325e839dd33273a451fa052e83789e483 28-Apr-2012 Jim Miller <jaggies@google.com> Fix 6291333: Don't show multiple pin/pattern/password confirmations

This fixes a bug where orientation changes caused the system to
ask for the pin/pattern/password multiple times.

It also fixes a minor issue where we were showing buttons
on the pattern confirmation screen (bug 6218057)

Change-Id: I0894f37bb697baa4cc17917aaeb466440279b092
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
b0b37ae21c172491bc170659b5f429601858ddc1 24-Apr-2012 Amith Yamasani <yamasani@google.com> Help menus for several screens.

Bug: 5144896
Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
94c05482240f743daa8c8698a241d1d0dfe2404c 11-Nov-2011 Steven Ross <stross@google.com> Allowing FaceUnlock with a PIN fixes 5467194

We need to allow FaceUnlock if the backup lock supports encryption (PIN).
This requires changing the way the minimum encryption quality is enforced
to allow FaceUnlock as long as the backup lock is a PIN, as FaceUnlock
is considered a lower security than the minimum for encrypted drives.
This change adds some complexity to upgradeQualityForEncryption because it's
used in two places: once to grey out selections that aren't sufficient
security level, and second to force the user to use a higher security level.
This still increases the minimum security level,
but makes an exception for FaceUnlock if it's allowed without encryption.

This uses a MutableBoolean to provide a mutable boolean capability.
We could instead write a custom one or use some other type of mutable
boolean if it exists.

In CryptKeeperSettings, using getKeyguardStoredPasswordQuality directly instead
of getActivePasswordQuality is simpler, but this uses a more complex approach
with a minor tweak as jaggies suggested it and it is clear about the
biometric exception being made.

Change-Id: Ia2645d6bd98857c79c6a9be45eda98087bfe517a
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
487b16f3400b62b79f8108ca669cc3e937c69def 02-Nov-2011 Danielle Millett <dmillett@google.com> Adding an improve face matching settings option for Face Unlock

Adding an option which will launch a version of setup where faces
can be added to the current gallery. It requires the user to first
confirm their password before launching addToSetup.

Patch 3 - Updated for renaming of FackLockTutorial to SetupIntro.
Now it is called every time regardless of it it's showing the tutorial
and a flag is passed in to determine whether or not SetupIntro shows
the tutorial.

Patch 4 - Removed 'Setup Complete' toast at the end of screen lock
setups since it was primarily for Face Unlock and the congratulations
screen removes the need for it.

Change-Id: Idc5f960809d992ec7bbce59ef1e13b95ef7cce45
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
19995779799e20b2844d49af2c97b6896a006991 04-Nov-2011 Steven Ross <stross@google.com> Using same task fixes 5486287

Change-Id: I8a4cd746bc0a0a8610ef9fe55325049fa3304820
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
80412e70db62d64777cd3399a9afc6fafae6f0a4 18-Oct-2011 Danielle Millett <dmillett@google.com> Fix 5466557: Removed secondary screenlock settings labels

Removed summary line from the screen lock picker and displaying
the about screen for face unlock every time instead of just the
first time

Change-Id: Iac572d2366acf28d32e632e8dcdde63475641e39
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
b965e1ccd78980390be89f95ad0fe38ed81e7657 05-Oct-2011 Danielle Millett <dmillett@google.com> Merge "Showing tutorial for Face Unlock on first try"
c82ba86375fc3c58bd9ee572f73d336693d62b11 05-Oct-2011 Danielle Millett <dmillett@google.com> Showing tutorial for Face Unlock on first try

Change-Id: Idf072750e70a9e5bc7699675d8a7a9c57900eea3
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
2d53e1a5d27e27e7d83474c9cd9e3f5c4ed49a91 04-Oct-2011 Steven Ross <stross@google.com> Merge "Formatting fix"
7caac4c19daf79a9220231a60ed1b8231968a619 03-Oct-2011 Steven Ross <stross@google.com> Formatting fix

Change-Id: If2869f2d6d6bc788cfffc1187b4de1deb9cec83b
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
0fb158a685d753682afdcffb0b783be8e38e0f2b 30-Sep-2011 Danielle Millett <dmillett@google.com> Reorganized the biometric weak check functions

Moved isBiometricSensorAvailable functionality into
isBiometricWeakInstalled (formerly called isBiometricEnabled). Settings
now only shows biometric weak if it's installed, if it's not installed
and the lock type is currently set to biometric weak, the backup lock
is shown as being set instead.

Change-Id: Icfe326a6598df33ee60d5fdc024273d94f115983
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
31dac17c4b0b49b4968b42b2af6f0799a0508a2f 30-Sep-2011 Steven Ross <stross@google.com> Delete the temp gallery on return from fallback

Change-Id: Id501302aa8c5606006f3e403e51bb01981bc173e
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c5df3daa0231c0b057497acc4527ead2fc979999 30-Sep-2011 Steven Ross <stross@google.com> Merge "calling back SetupFaceLock to clean up temporary gallery"
cf26bb2dcc83803678bcd37bb58b677209ffb3fc 26-Sep-2011 Amith Yamasani <yamasani@google.com> Remove "Screen lock" category header as the title is sufficient.

Bug: 5203189

Insert a descriptive text as a header view when in weak biometric
fallback case.

Change-Id: Ic10cc7d276975b13c188bd15016fea2200ec0e5b
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c620ba41ce20e683aad3d124b3866cadaddcc87d 28-Sep-2011 Steven Ross <stross@google.com> calling back SetupFaceLock to clean up temporary gallery

This is done when the backup lock is complete or canceled.
If successful, the permanent gallery is replaced with the new one.
The temporary gallery is always deleted

Also deletes the main gallery if the lock type is changed from facial recognition

Change-Id: Id7b066fd852c7ba188d6e46b47391a362cbab40f
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
940407eb6aac05a513d2f7d0626df9519be3a83c 20-Sep-2011 Danielle Millett <dmillett@google.com> Changed header to specify backup lock

-Changed main header to show backup lock text
-Reworded normal header
-Changed instances of FacePass to FaceLock

Change-Id: I66cbd3ada87df30b6b7ceb1a784d365ba60a8f41
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
5bae8739ea55702ec38df13550dd3f32137a9935 16-Sep-2011 Danielle Millett <dmillett@google.com> Adding info explaining facelock's backup lock

This changes the security picker when selecting a backup lock for facelock
such that it says back up lock and gives a brief description of why it's needed.
This is currently a temporary way to display the info and will need to be changed
for the final release.

Change-Id: I6373f97caec088482d36c65bd210c79238c623cf
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
c474a88c2de30ea93ae03221b70e6365bb7f5f34 14-Sep-2011 Danielle Millett <dmillett@google.com> Fix 5316440: Fix for facelock setup asking to confirm password twice

Change-Id: I6df292b80349a9d20b470d9261ecdca960b5dea5
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
5541a86efe5f26956e54de49c4a59bf1dab79a78 03-Sep-2011 Jim Miller <jaggies@google.com> Fix 5185505: Add weak biometric sensors to security choices.

This adds a simple biometric sensor (face lock) to the security choices.

Updated to disable biometric sensor by default.

Change-Id: I088e5e99cf5f8c7a06a1a992a9257940eb2cc07f
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
6465054995f8470e52ecaf68ea9508a28f8a5363 23-Aug-2011 Gilles Debunne <debunne@google.com> Bug 5050590: wrong title for lock screen

Change-Id: Iba170a25ac56db4140ab91f4fd583c0f676b02b0
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
d4023b7cca11e33e84df39dee9e9a737efab47c2 25-May-2011 Brian Carlstrom <bdc@google.com> Integrating keystore with keyguard (Part 4 of 4)

Summary:

frameworks/base
keystore rewrite
keyguard integration with keystore on keyguard entry or keyguard change
KeyStore API simplification

packages/apps/Settings
Removed com.android.credentials.SET_PASSWORD intent support
Added keyguard requirement for keystore use

packages/apps/CertInstaller
Tracking KeyStore API changes
Fix for NPE in CertInstaller when certificate lacks basic constraints

packages/apps/KeyChain
Tracking KeyStore API changes

Details:

frameworks/base

Move keystore from C to C++ while rewriting password
implementation. Removed global variables. Added many comments.

cmds/keystore/Android.mk
cmds/keystore/keystore.h
cmds/keystore/keystore.c => cmds/keystore/keystore.cpp
cmds/keystore/keystore_cli.c => cmds/keystore/keystore_cli.cpp

Changed saveLockPattern and saveLockPassword to notify the keystore
on changes so that the keystore master key can be reencrypted when
the keyguard changes.

core/java/com/android/internal/widget/LockPatternUtils.java

Changed unlock screens to pass values for keystore unlock or initialization

policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java

KeyStore API changes
- renamed test() to state(), which now return a State enum
- made APIs with byte[] key arguments private
- added new KeyStore.isEmpty used to determine if a keyguard is required

keystore/java/android/security/KeyStore.java

In addition to tracking KeyStore API changes, added new testIsEmpty
and improved some existing tests to validate expect values.

keystore/tests/src/android/security/KeyStoreTest.java

packages/apps/Settings

Removing com.android.credentials.SET_PASSWORD intent with the
removal of the ability to set an explicit keystore password now
that the keyguard value is used. Changed to ensure keyguard is
enabled for keystore install or unlock. Cleaned up interwoven
dialog handing into discrete dialog helper classes.

AndroidManifest.xml
src/com/android/settings/CredentialStorage.java

Remove layout for entering new password

res/layout/credentials_dialog.xml

Remove enable credentials checkbox

res/xml/security_settings_misc.xml
src/com/android/settings/SecuritySettings.java

Added ability to specify minimum quality key to ChooseLockGeneric
Activity. Used by CredentialStorage, but could also be used by
CryptKeeperSettings. Changed ChooseLockGeneric to understand
minimum quality for keystore in addition to DPM and device
encryption.

src/com/android/settings/ChooseLockGeneric.java

Changed to use getActivePasswordQuality from
getKeyguardStoredPasswordQuality based on experience in
CredentialStorage. Removed bogus class javadoc.

src/com/android/settings/CryptKeeperSettings.java

Tracking KeyStore API changes

src/com/android/settings/vpn/VpnSettings.java
src/com/android/settings/wifi/WifiSettings.java

Removing now unused string resources

res/values-af/strings.xml
res/values-am/strings.xml
res/values-ar/strings.xml
res/values-bg/strings.xml
res/values-ca/strings.xml
res/values-cs/strings.xml
res/values-da/strings.xml
res/values-de/strings.xml
res/values-el/strings.xml
res/values-en-rGB/strings.xml
res/values-es-rUS/strings.xml
res/values-es/strings.xml
res/values-fa/strings.xml
res/values-fi/strings.xml
res/values-fr/strings.xml
res/values-hr/strings.xml
res/values-hu/strings.xml
res/values-in/strings.xml
res/values-it/strings.xml
res/values-iw/strings.xml
res/values-ja/strings.xml
res/values-ko/strings.xml
res/values-lt/strings.xml
res/values-lv/strings.xml
res/values-ms/strings.xml
res/values-nb/strings.xml
res/values-nl/strings.xml
res/values-pl/strings.xml
res/values-pt-rPT/strings.xml
res/values-pt/strings.xml
res/values-rm/strings.xml
res/values-ro/strings.xml
res/values-ru/strings.xml
res/values-sk/strings.xml
res/values-sl/strings.xml
res/values-sr/strings.xml
res/values-sv/strings.xml
res/values-sw/strings.xml
res/values-th/strings.xml
res/values-tl/strings.xml
res/values-tr/strings.xml
res/values-uk/strings.xml
res/values-vi/strings.xml
res/values-zh-rCN/strings.xml
res/values-zh-rTW/strings.xml
res/values-zu/strings.xml
res/values/strings.xml

packages/apps/CertInstaller

Tracking KeyStore API changes
src/com/android/certinstaller/CertInstaller.java

Fix for NPE in CertInstaller when certificate lacks basic constraints
src/com/android/certinstaller/CredentialHelper.java

packages/apps/KeyChain

Tracking KeyStore API changes
src/com/android/keychain/KeyChainActivity.java
src/com/android/keychain/KeyChainService.java
support/src/com/android/keychain/tests/support/IKeyChainServiceTestSupport.aidl
support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
tests/src/com/android/keychain/tests/KeyChainServiceTest.java

Change-Id: I80533bf8986a92b0b99cd5fb1c4943e0f23fc1c8
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
6370c87a6b98abfc6badb31070a60f84b3f528b3 22-Jan-2011 Andy Stadler <stadler@google.com> Maintain password quality while encrypted

Bug: 3378277
Change-Id: I68aae06c518eb514c1be38214d8c9918b0398f95
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
17e9e1933055b207473b488595b2887bfcaea32e 08-Dec-2010 Jim Miller <jaggies@google.com> Fix 3148496: Initial pass at fragmentizing lockscreen settings.

This converts most of the existing activities to fragments and wraps
them in PreferenceActivities so they can be launched as before
(e.g. by a DevicePolicyManager)

Upload after sync/rebase.

Change-Id: I4f351b75d9fca0498bcb04b4e11ff3b70765a4ba
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
3970c38840ab5f73893d3278724d97ea6fde6e44 20-Nov-2010 Jim Miller <jaggies@google.com> Fix 3024522: Add new "Off" setting to LockScreen options.

This allows the user to tell the device to not show lock screen
at all as long as the DevicePolicyManager allows it.

Change-Id: Id46002500b47fc955565be197ac78b7b13b6757d
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
57fbf694a53afb9c1924d81272179dceb3acfa4d 28-May-2010 Konstantin Lopyrev <klopyrev@google.com> Change I546ee2fb: Fix 2677197: Adding minimum complex character support.

Change-Id: I5590ec2743b84e34098871507dbcc2f49e5a4e9f
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
2deec7edc937b1d19df0a74c4cd0c5ee3ef33070 14-Apr-2010 Jim Miller <jaggies@google.com> Fix 2594148: confirm PIN/Password before resetting device

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
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
bbb4afa19f75694c585506b0c091372d60e07ca7 09-Apr-2010 Jim Miller <jaggies@google.com> Fix 2579923: Make changing lock screen method more discoverable.

This changes the organization of lock screen security settings
to make choosing an alternate unlock method more discoverable.

Instead of having to disable the old lock method to use a new
one, the user now just has one set/change option in lock settings,
with a list of method-specific setting below it.

In addition, we ask the user to confirm their old credentials
before prompting them to choose a new one, which eliminates one
source of confusion.

Also, ChooseLockGeneric now shows a UI if quality isn't specified.
Any unlock method less secure than minimum specified by
DevicePolicyManager (if active) is greyed out.

Change-Id: Iecc6f64d4d3368a583f06f8d5fe9655cc3d5bd3b
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
af366a3ed66dcb3c3ecb1dd101e5d8869b518598 26-Mar-2010 Jim Miller <jaggies@google.com> Fix 2535700: Add support for enforcing password quality

Change-Id: I908b4229d46061f3d450adec72b04276fe10afc1
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
4037c7f27c849a1ada0980ad881636fc940a0b85 27-Feb-2010 Dianne Hackborn <hackbod@google.com> Move DeviceAdmin APIs to android.app.admin.
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
33111717d52132fca41661e87f8fb51c4b23492c 29-Jan-2010 Dianne Hackborn <hackbod@google.com> Update to follow password mode->quality API change.
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
8cecf89cec3ea14003482c046eec7d2aba8bb0ad 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Update to follow device policy changes.
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java
abc3dc64cf61c9f5c28b6f2640b221d63cb86a0a 20-Jan-2010 Dianne Hackborn <hackbod@google.com> Start hooking up password device policies

This introduces a new activity for changing the password, which takes
care of launching the correct password activity based on the caller's
request and active policy. The security settings activity now uses
this, and it implements the API action for launching the password UI.
/packages/apps/Settings/src/com/android/settings/ChooseLockGeneric.java