mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2025-02-22 07:20:38 +00:00
适配DM接口
Signed-off-by: yangwei_814916 <yangwei271@huawei.com>
This commit is contained in:
parent
192c837649
commit
60fc3c85bd
@ -150,7 +150,7 @@ int32_t DistributedSchedPermission::GetAccountInfo(const std::string& remoteNetw
|
||||
}
|
||||
|
||||
#ifdef DMSFWK_SAME_ACCOUNT
|
||||
if (!DeviceManager::GetInstance().IsSameAccount(udid)) {
|
||||
if (!DeviceManager::GetInstance().IsSameAccount(remoteNetworkId)) {
|
||||
HILOGE("different account");
|
||||
return INVALID_PARAMETERS_ERR;
|
||||
}
|
||||
@ -408,7 +408,7 @@ bool DistributedSchedPermission::CheckAccountAccessPermission(const CallerInfo&
|
||||
{
|
||||
std::string udid = DnetworkAdapter::GetInstance()->GetUdidByNetworkId(callerInfo.sourceDeviceId);
|
||||
#ifdef DMSFWK_SAME_ACCOUNT
|
||||
if (!DeviceManager::GetInstance().IsSameAccount(udid)) {
|
||||
if (!DeviceManager::GetInstance().IsSameAccount(callerInfo.sourceDeviceId)) {
|
||||
HILOGE("check same account permission in DM failed");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user