add service_router_framework

Signed-off-by: xucheng <xucheng2@huawei.com>
Change-Id: I6c8cfb3ec968c0afb5e91f26ff2762863ae58d86
This commit is contained in:
xucheng 2023-04-14 08:50:25 +00:00
parent 7f61418b3f
commit eabb17fef3
3 changed files with 10 additions and 4 deletions

View File

@ -15,7 +15,7 @@ import("//build/ohos.gni")
import("../../srms.gni")
group("srms_target") {
deps = [ ":libsrms" ]
deps = [ ":libsrms" ]
}
config("srms_config") {

View File

@ -24,12 +24,12 @@ group("srms") {
ohos_sa_profile("srms_sa_profile") {
sources = [ "404.xml" ]
part_name = "bundle_framework"
part_name = "ability_runtime"
}
ohos_prebuilt_etc("srms.cfg") {
source = "srms.cfg"
relative_install_dir = "init"
subsystem_name = "bundlemanager"
part_name = "bundle_framework"
subsystem_name = "ability"
part_name = "ability_runtime"
}

View File

@ -80,6 +80,9 @@ int ServiceRouterMgrStub::HandleQueryBusinessAbilityInfos(MessageParcel &data, M
}
std::vector<BusinessAbilityInfo> infos;
int ret = QueryBusinessAbilityInfos(*filter, infos);
if (filter != nullptr) {
delete filter;
}
if (!reply.WriteInt32(ret)) {
APP_LOGE("write ret failed");
return ERR_APPEXECFWK_PARCEL_ERROR;
@ -108,6 +111,9 @@ int ServiceRouterMgrStub::HandleQueryPurposeInfos(MessageParcel &data, MessagePa
std::string purposeName = data.ReadString();
std::vector<PurposeInfo> infos;
int ret = QueryPurposeInfos(*want, purposeName, infos);
if (want != nullptr) {
delete want;
}
if (!reply.WriteInt32(ret)) {
APP_LOGE("write ret failed");
return ERR_APPEXECFWK_PARCEL_ERROR;