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)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Wed, 16 Jan 2019 18:55:48 +0000 (18:55 +0000)
commit7125bfe5d838abfcec3bc343a7ecb9ae02b6ec59
tree26e68c9dc6031862e2dd215f90fa07bc1b91089f
parent3c7499911f6f004b9060592849409408eacd46c1
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 ef116def7c91fd4492a8df03355e1dbdbde02a85)
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java