mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2025-02-13 19:30:54 +00:00
add service_router_framework
Signed-off-by: xucheng <xucheng2@huawei.com> Change-Id: I6c8cfb3ec968c0afb5e91f26ff2762863ae58d86
This commit is contained in:
parent
7f61418b3f
commit
eabb17fef3
@ -15,7 +15,7 @@ import("//build/ohos.gni")
|
||||
import("../../srms.gni")
|
||||
|
||||
group("srms_target") {
|
||||
deps = [ ":libsrms" ]
|
||||
deps = [ ":libsrms" ]
|
||||
}
|
||||
|
||||
config("srms_config") {
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user