!1020 修复重启后输入法获取的安全模式和重启前不一致问题

Merge pull request !1020 from guojin31/master
This commit is contained in:
openharmony_ci 2023-12-21 12:04:27 +00:00 committed by Gitee
commit 74398ca2e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ bool SecurityModeParser::ParseJsonData(const std::string& valueStr, const int32_
int32_t SecurityModeParser::GetSecurityMode(const std::string bundleName, int32_t &security, const int32_t userId)
{
GetFullModeList(userId);
if (IsFullMode(bundleName)) {
security = static_cast<int32_t>(SecurityMode::FULL);
} else {

View File

@ -642,6 +642,7 @@ ohos_unittest("SecurityModeParseTest") {
external_deps = [
"ability_base:zuri",
"ability_runtime:ability_manager",
"ability_runtime:dataobs_manager",
"access_token:libaccesstoken_sdk",
"bundle_framework:appexecfwk_core",