Skip to content
Commit 67d4426e authored by Pavel Grafov's avatar Pavel Grafov
Browse files

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
parent 090cb136
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment