mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 14:30:21 +00:00
fix uid for StopExtensionAbility interface in dms
Signed-off-by: xinking129 <xinxin13@huawei.com>
This commit is contained in:
parent
2fffa973db
commit
f621ad3268
@ -2110,8 +2110,14 @@ int32_t DistributedSchedService::StopExtensionAbilityFromRemote(const OHOS::AAFw
|
||||
want.RemoveParam(DMS_SRC_NETWORK_ID);
|
||||
sptr<IRemoteObject> callerToken = new DmsTokenCallback();
|
||||
|
||||
std::vector<int> ids;
|
||||
ErrCode ret = OsAccountManager::QueryActiveOsAccountIds(ids);
|
||||
if (ret != ERR_OK || ids.empty()) {
|
||||
return INVALID_PARAMETERS_ERR;
|
||||
}
|
||||
|
||||
return AAFwk::AbilityManagerClient::GetInstance()->StopExtensionAbility(
|
||||
want, callerToken, callerInfo.uid, static_cast<AppExecFwk::ExtensionAbilityType>(extensionType));
|
||||
want, callerToken, ids[0], static_cast<AppExecFwk::ExtensionAbilityType>(extensionType));
|
||||
}
|
||||
} // namespace DistributedSchedule
|
||||
} // namespace OHOS
|
Loading…
Reference in New Issue
Block a user