mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
optimize log
Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
parent
e6822025a0
commit
3d251babd4
@ -519,18 +519,22 @@ int32_t DistributedSchedPermission::CheckAccountAccessPermission(const CallerInf
|
||||
}
|
||||
HILOGI("check same account by DM fail, will try check access Group by hichain");
|
||||
#endif
|
||||
|
||||
int32_t result = ERR_OK;
|
||||
if (!DistributedSchedAdapter::GetInstance().CheckAccessToGroup(udid, targetBundleName)) {
|
||||
HILOGE("CheckAccessToGroup by HiChain failed.");
|
||||
return CHECK_ACCESS_FAILED_BY_HICHAIN;
|
||||
}
|
||||
result = CHECK_ACCESS_FAILED_BY_HICHAIN;
|
||||
|
||||
HILOGI("Check access Group by hichain fail, will try check different account ACL by DM.");
|
||||
if (!DeviceManager::GetInstance().CheckAccessControl(dmSrcCaller, dmDstCallee)) {
|
||||
HILOGE("Check different account ACL by DM failed, CheckAccessControl failed.");
|
||||
return CHECK_ACCESS_FAILED_BY_DM;
|
||||
HILOGI("Check access Group by hichain fail, will try check different account ACL by DM.");
|
||||
if (!DeviceManager::GetInstance().CheckAccessControl(dmSrcCaller, dmDstCallee)) {
|
||||
HILOGE("Check different account ACL by DM failed, CheckAccessControl failed.");
|
||||
result = CHECK_ACCESS_FAILED_BY_DM;
|
||||
} else {
|
||||
HILOGI("Check different account ACL by DM success");
|
||||
result = ERR_OK;
|
||||
}
|
||||
}
|
||||
return ERR_OK;
|
||||
HILOGI("CheckAccessToGroup by HiChain success.");
|
||||
return result;
|
||||
}
|
||||
|
||||
bool DistributedSchedPermission::CheckComponentAccessPermission(const AppExecFwk::AbilityInfo& targetAbility,
|
||||
|
Loading…
Reference in New Issue
Block a user