OSDN Git Service

FRP: save password quality in DPM.resetPassword
authorAdrian Roos <roosa@google.com>
Thu, 6 Dec 2018 16:50:41 +0000 (17:50 +0100)
committerJP Sugarbroad <jpsugar@google.com>
Tue, 15 Jan 2019 00:44:50 +0000 (16:44 -0800)
commit9fd6c676512d28190193ae2e7f4998804d8df891
treeb5dc61a03b8c37c27d967519021b5cf11edfd706
parentdf1396c07b2f86bd67902f72ab69715e058b861a
FRP: save password quality in DPM.resetPassword

When setting a password from DPM.resetPassword(), the actual quality of the
password was not passed to LockSettingsService (instead, the minimum required
quality was passed which is often UNSPECIFIED). As a result, during FRP we
would see inconsistent state and skip it.

Bug: 110172241
Test: Set credential via DPM.resetPassword(), factory reset device to trigger FRP, verify FRP shows.
Change-Id: I54376f60ac53451ace22965d331b47cd8c2e614e
Merged-In: I54376f60ac53451ace22965d331b47cd8c2e614e
(cherry picked from commit 7923b3c10cad5059a7d187fa6abc39abdb4173ec)
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java