Description: EL4解锁时需要尝试用空secret、token进行解密
Feature or Bugfix: Bugfix
Binary Source: No

Signed-off-by: hong-shengquan <hongshengquan3@huawei.com>
This commit is contained in:
iFinder-Mini 2024-07-02 17:41:25 +08:00
parent fe61138013
commit 567ef960f4

View File

@ -1008,7 +1008,7 @@ int KeyManager::UnlockUserScreen(uint32_t user, const std::vector<uint8_t> &toke
return 0;
}
auto el4Key = userEl4Key_[user];
if (!el4Key->RestoreKey({ token, secret })) {
if (!el4Key->RestoreKey({ token, secret }) && !el4Key->RestoreKey(NULL_KEY_AUTH)) {
LOGE("Restore user %{public}u el4 key failed", user);
return -EFAULT;
}