OSDN Git Service

Fix keyguard checking when installing user certs.
authorPavel Grafov <pgrafov@google.com>
Fri, 31 Aug 2018 16:55:18 +0000 (17:55 +0100)
committerPavel Grafov <pgrafov@google.com>
Tue, 4 Sep 2018 17:17:04 +0000 (18:17 +0100)
commit1613c712482e35ecb790d386e25fe0ec99bcf135
tree8a8f2c69d58dbaf8a7c38249943b6ca32f471884
parenta59ce66b3beaec79c662d472467c73f6eaa90306
Fix keyguard checking when installing user certs.

Currently the condition is inverted, so the user is asked to enroll
a password only when there is one already.

Also, use existing method instead of a duplicate one. LPU.isSecure doesn't
check the credential owner, but for unified lock with empty parent password
it will correctly return false, so should be correct.

Bug: 113646620
Test: manual, tried installing user certs with and without screen lock.
Change-Id: Iabb1614540e454873e48039be13e22cc89b0a7be
src/com/android/settings/CredentialStorage.java