commit | 67d4426e3800b8ddcbcad82488145cb21e041a6a | [log] [tgz] |
---|---|---|
author | Pavel Grafov <pgrafov@google.com> | Fri May 03 15:58:54 2019 +0100 |
committer | Pavel Grafov <pgrafov@google.com> | Wed May 08 15:26:24 2019 +0100 |
tree | ea9e7c8056054c1215cbce2cd47cd3ba17c09637 | |
parent | 090cb136006ba6c9fbdcf84873df4a059e3f6200 [diff] |
Restart the user only after the key is evicted. This solves a race condition that occurs during DMP.lockNow(FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY) when the user is restarted too early and key eviction is skipped to avoid data corruption in the user startup. Fixes: 130337379 Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testLockNowWithKeyEviction Change-Id: Ie411b502a44201726b18314204ec78ee90d204d0