OSDN Git Service

Added support for DO_NOT_ASK_CREDENTIALS_ON_BOOT DPM flag
authorAndrei Kapishnikov <kapishnikov@google.com>
Thu, 9 Apr 2015 15:08:16 +0000 (11:08 -0400)
committerAndrei Kapishnikov <kapishnikov@google.com>
Wed, 29 Apr 2015 02:53:53 +0000 (02:53 +0000)
commit146fc11958ae93d4c97ce83839188ece762f3275
tree3cb2d4cf40e8bc2fd01d2498c9c3d58059ba9559
parent02c89944d13fa473c9fb0da3c5a69777a25fe048
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
src/com/android/settings/ChooseLockGeneric.java
src/com/android/settings/CryptKeeperSettings.java