Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
MisterE 2024-09-04 16:25:24 +08:00
commit 144c01f46b
3 changed files with 5 additions and 6 deletions

View File

@ -20,7 +20,6 @@
#include <map>
#include <mutex>
#include <shared_mutex>
#include <bits/stl_vector.h>
#include "bundle_info.h"
#include "bundle_mgr_interface.h"

View File

@ -898,14 +898,13 @@ int32_t DSchedContinue::CheckStartPermission(std::shared_ptr<DSchedContinueDataC
{
if (cmd->srcBundleName_ == cmd->dstBundleName_) {
return DistributedSchedService::GetInstance().CheckTargetPermission(cmd->want_, cmd->callerInfo_,
cmd->accountInfo_, START_PERMISSION, true);
cmd->accountInfo_, START_PERMISSION, true);
} else {
if(!BundleManagerInternal::IsSameDeveloperId(cmd->dstBundleName_, cmd->srcDeveloperId_)) {
if (!BundleManagerInternal::IsSameDeveloperId(cmd->dstBundleName_, cmd->srcDeveloperId_)) {
return INVALID_PARAMETERS_ERR;
}
return DistributedSchedService::GetInstance().CheckTargetPermission(cmd->want_, cmd->callerInfo_,
cmd->accountInfo_, START_PERMISSION, true,
false);
cmd->accountInfo_, START_PERMISSION, true, false);
}
}

View File

@ -747,7 +747,8 @@ int32_t DmsBmStorage::CloudSync()
void DmsBmStorage::FindProvishionInfo(OHOS::sptr<OHOS::AppExecFwk::IBundleMgr> bundleMgr,
AppExecFwk::AppProvisionInfo appProvisionInfo, std::vector<AccountSA::OsAccountInfo> accounts,
uint32_t result, const std::string& bundleName) {
uint32_t result, const std::string& bundleName)
{
if (result == ERR_OK && !accounts.empty()) {
for (auto &account: accounts) {
result = bundleMgr->GetAppProvisionInfo(bundleName, account.GetLocalId(), appProvisionInfo);