OSDN Git Service

Fix phishing attack in ChooseLockGeneric
authorSteven Ng <stevenckng@google.com>
Thu, 23 Feb 2017 10:34:28 +0000 (10:34 +0000)
committerSteven Ng <stevenckng@google.com>
Tue, 7 Mar 2017 19:48:35 +0000 (19:48 +0000)
commit436256c36d69549c77320d073bef27649c1b1d6e
treed6fd6397d80f0a01f7e69779896356172c4d9fdd
parentce6e17ddfee411ef06e41770f38dbdffea7910d1
Fix phishing attack in ChooseLockGeneric

Test: 1) make and run SettingsTests. It passes.
      2) Manual test 1
         a) On a device supports fingerprint, set a password but not fingerprint.
         b) adb shell am start -a android.app.action.SET_NEW_PARENT_PROFILE_PASSWORD
         c) Confirm Lock password screen is shown
         d) Select "Skip fingerprint". There isn't a second lock password confirmation screen.
         e) A new password can be set successfully.
      3) Manual test 2
         a) Repeat step 2)a) - 2)c)
         b) Select "Fingerprint + PIN". There isn't a second lock password confirmation screen.
         c) A new password and fingerprint can be enrolled successfully.

Bug: 33059280
Change-Id: I1078c6e303fc41aeeb370e5d6518d1f16b5837f1
src/com/android/settings/ChooseLockGeneric.java
tests/app/Android.mk
tests/app/src/com/android/settings/ChooseLockGenericTest.java [new file with mode: 0644]