From 4ce5a3ae7435962501790106c4cf3633b94e8bcb Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Fri, 31 Dec 2021 04:47:14 +0000 Subject: [PATCH] IssueNo:https://gitee.com/openharmony/appexecfwk_standard/issues/I4OVVJ Description:fix bug Sig:appexecfwk Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- services/bundlemgr/src/bundle_profile.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/services/bundlemgr/src/bundle_profile.cpp b/services/bundlemgr/src/bundle_profile.cpp index 63fb10387..1399be023 100644 --- a/services/bundlemgr/src/bundle_profile.cpp +++ b/services/bundlemgr/src/bundle_profile.cpp @@ -2044,6 +2044,17 @@ bool TransformToInfo(ProfileReader::ConfigJson &configJson, InnerBundleInfo &inn std::string shortcutkey = configJson.app.bundleName + configJson.module.package + info.shortcutId; innerBundleInfo.InsertShortcutInfos(shortcutkey, shortcutInfo); } + for (const auto &info : configJson.module.commonEvents) { + CommonEventInfo commonEvent; + commonEvent.name = info.name; + commonEvent.bundleName = configJson.app.bundleName; + commonEvent.permission = info.permission; + commonEvent.data = info.data; + commonEvent.type = info.type; + commonEvent.events = info.events; + std::string commonEventKey = configJson.app.bundleName + configJson.module.package + info.name; + innerBundleInfo.InsertCommonEvents(commonEventKey, commonEvent); + } bool find = false; for (const auto &ability : configJson.module.abilities) { AbilityInfo abilityInfo;