8 Star 55 Fork 80

OpenHarmony / systemabilitymgr_safwk_lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_zh.md 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
huangxiaolinabc123 提交于 2022-09-27 15:13 . modify md

轻量型系统服务框架部件

简介

safwklite模块负责提供基础服务运行的空进程。

系统架构

图 1 面向服务的架构

  • Provider:服务的提供者,为系统提供能力(对外接口)。
  • Consumer:服务的消费者,调用服务提供的功能(对外接口)。
  • Samgr:作为中介者,管理Provider提供的能力,同时帮助Consumer发现Provider的能力。

目录

系统服务管理源代码目录结构如下表所示:

**表1 **主要源代码目录结构

名称

描述

safwk_lite

foundation进程实现

其中系统服务管理safwk_lite组件的源代码目录结构如下:

├── BUILD.gn
├── readme.md
├── LICENSE
├── src
    └── main.c

使用

在foundation进程中添加服务

按照服务的模板写完服务后在BUILD.gn中添加依赖即可:

deps = [
  "${aafwk_lite_path}/services/abilitymgr_lite:abilityms",
  "${appexecfwk_lite_path}/services/bundlemgr_lite:bundlems",
  "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
  "//base/security/permission_lite/services/ipc_auth:ipc_auth_target",
  "//base/security/permission_lite/services/pms:pms_target",
  "//foundation/ability/dmsfwk_lite:dtbschedmgr",
  "//foundation/systemabilitymgr/samgr_lite/samgr_server:server",
]

相关仓

系统服务管理子系统

systemabilitymgr_samgr_lite

systemabilitymgr_samgr

systemabilitymgr_safwk

systemabilitymgr_safwk_lite

1
https://gitee.com/openharmony/systemabilitymgr_safwk_lite.git
git@gitee.com:openharmony/systemabilitymgr_safwk_lite.git
openharmony
systemabilitymgr_safwk_lite
systemabilitymgr_safwk_lite
master

搜索帮助