OSDN Git Service

Restore separate challenge state on error
authorPavel Grafov <pgrafov@google.com>
Mon, 25 Jun 2018 11:13:38 +0000 (12:13 +0100)
committerPavel Grafov <pgrafov@google.com>
Mon, 25 Jun 2018 11:13:38 +0000 (12:13 +0100)
commitf10ae7e7317b0c7241ff87163017cd5feda8af1f
treebfb62b818d0f2d478530ff30556e9e97e3e4851f
parent0eb2be3a679b146e068cf99e2dbf45b4181c0bfa
Restore separate challenge state on error

Otherwise if something goes wrong when tying the profile to the primary
user, challenge will remain in inconsistent state and the user won't
be able to unlock the profile.

Bug: 110262879
Test: manual, unified both compliant and uncompliant challenge.
Change-Id: I2bea3867541f43cbabd5cabbe8a0f61acc2602ca
services/core/java/com/android/server/locksettings/LockSettingsService.java