OSDN Git Service

KeyChain: Remove Screenlock dependency
authorEran Messeri <eranm@google.com>
Wed, 16 Jan 2019 13:49:04 +0000 (05:49 -0800)
committerEran Messeri <eranm@google.com>
Mon, 21 Jan 2019 12:43:44 +0000 (12:43 +0000)
commitfa7f75abd9a3a86efab4837832a8cdd8cad90584
treee86b1eaaf7ecb186938ff0513423de41940aa92d
parentdbaa5459b84b21c4a12268a471619f191d247e42
KeyChain: Remove Screenlock dependency

In coordination with KeyChain changes, stop using FLAG_ENCRYPTED when
importing keys into KeyStore and remove the requirement that a screen
lock is present.

The change to this package removes the checks for KeyStore state and
Keyguard presence. See the KeyChain change for more detailed
explanation.

Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedProfileOwnerTest#testKeyManagement
Bug: 120901345
Change-Id: I82f1c18e84dd4a63d55017fa4b7be31c45f7ef14
src/com/android/settings/CredentialStorage.java