commit | 85c85e9840b9546a1919eeb23b7e9d3e2dadef69 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Wed Apr 26 20:07:30 2017 +0100 |
committer | Rubin Xu <rubinxu@google.com> | Wed Apr 26 20:07:30 2017 +0100 |
tree | b165dea76b57cb682c0491edd6d3ebed00e369a9 | |
parent | 211dcefb7762c1dcb130f89a282cb4c4f666ec56 [diff] |
Do not clear critical keys in clear_uid() If clear_uid() is called on system uid, skip clearing keys with FLAG_CRITICAL_TO_DEVICE_ENCRYPTION flag since device authenticaion would be broken without them. Bug: 34600579 Test: Add device lock under synthtic password, goto Settings/security/encryption, tap clear credentials and verify device lock is still intact. Change-Id: I6c009163831b0901b0973d13906f56139028052c