The Lite System Ability Framework (safwk_lite) component provides an empty process for running basic services.
Figure 1 Service-oriented architecture
The following table describes the directory structure of the safwk_lite source code.
Table 1 Directory structure of the major source code
Name | Description |
---|---|
safwk_lite | Implementation of the foundation process. |
bool Publish(sptr<IRemoteObject> systemAbility); | Publishes a system ability. |
virtual void DoStartSAProcess(const std::string& profilePath) = 0; | Enables a system ability based on its profile. |
The source code directory structure of the safwk_lite component is as follows:
├── BUILD.gn
├── readme.md
├── LICENSE
├── src
└── main.c
Add a service to the foundation process.
After writing the service information based on the service template, add the dependencies to the BUILD.gn file.
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",
]
Samgr
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.