OSDN Git Service

Nexus imprint setting is missing while adding corp account from SUW
authorSteven Ng <stevenckng@google.com>
Tue, 25 Oct 2016 16:23:30 +0000 (17:23 +0100)
committerSteven Ng <stevenckng@google.com>
Tue, 25 Oct 2016 20:01:23 +0000 (20:01 +0000)
commit378dec149569f57a4f8bfcbf5ece3fd458ab6263
tree28cda0bba91bce1a24ec3ad3a017d1fa5c4507d2
parentc027907edcb34e7b63d5b28d4243d6ad699ec005
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
src/com/android/settings/ChooseLockGeneric.java