mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-23 06:59:59 +00:00
Description: EL4解锁时需要尝试用空secret、token进行解密 Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hong-shengquan <hongshengquan3@huawei.com>
This commit is contained in:
parent
fe61138013
commit
567ef960f4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user