Signed-off-by: guojin31 <guojin31@huawei.com>
This commit is contained in:
guojin31 2023-12-21 09:39:37 +08:00
parent d895d9f9b9
commit c889063c5b
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",