mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
Merge branch 'master' of https://gitee.com/gritking/ability_dmsfwk
Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
commit
144c01f46b
@ -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"
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user