OSDN Git Service

KeyguardStateMonitor looses connection with keystore if keystore dies
authorJanis Danisevskis <jdanis@google.com>
Wed, 10 Oct 2018 16:32:39 +0000 (09:32 -0700)
committerJanis Danisevskis <jdanis@google.com>
Thu, 11 Oct 2018 16:00:49 +0000 (09:00 -0700)
commit01c3c2fbac33654187e440dd454f90a55de94d1d
tree2dc3e3b1e7c09b85643ff1a7504fbbc0e917eb79
parentc41a5d6bc0f3e6848d09ac27399cc4f989c3de00
KeyguardStateMonitor looses connection with keystore if keystore dies

When keystore dies it no longer gets information about the lock screen
visibility state. This state is vital to enforcing the "unlocked
device required" authorization of keymaster keys.

With this patch KeyguardStateMonitor tries to reestablish the connection
to keystore if communication fails.

Test: run atest android.keystore.cts.CipherTest#testKeyguardLockAndUnlock
      after killing keystore
Bug: 117552147

Change-Id: I8346e53c342bdba0f5960b1feba7c26db5cef33e
services/core/java/com/android/server/policy/keyguard/KeyguardStateMonitor.java