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)
committerAdrian Roos <roosa@google.com>
Fri, 7 Dec 2018 11:18:41 +0000 (12:18 +0100)
commitef116def7c91fd4492a8df03355e1dbdbde02a85
tree9af412fd70685380eab64e1100ffc17632c428f1
parent7396f53056cd6545e5aca7e888863f727a16684d
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
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java