!1165 BugFix:恢复同包名appId校验

Merge pull request !1165 from zhx/master
This commit is contained in:
openharmony_ci 2024-11-08 11:33:52 +00:00 committed by Gitee
commit 00733fd989
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -904,7 +904,7 @@ int32_t DSchedContinue::PackDataCmd(std::shared_ptr<DSchedContinueDataCmd>& cmd,
int32_t DSchedContinue::CheckStartPermission(std::shared_ptr<DSchedContinueDataCmd> cmd)
{
if (cmd->srcBundleName_ == cmd->dstBundleName_) {
return DistributedSchedService::GetInstance().CheckTargetPermission4DiffBundle(cmd->want_, cmd->callerInfo_,
return DistributedSchedService::GetInstance().CheckTargetPermission(cmd->want_, cmd->callerInfo_,
cmd->accountInfo_, START_PERMISSION, true);
} else {
if (!BundleManagerInternal::IsSameDeveloperId(cmd->dstBundleName_, cmd->srcDeveloperId_)) {