暂无描述
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
安全告警 Signed-off-by: liuzongze@h-partners.com <liuzongze@h-partners.com> 🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[100%] 👌 AI Adopted[0%] Change-Id: Ida6eace418e3f2f71b9872c2798b25b60821d25c | 11 天前 | |
add codecheck skills for ability_base Signed-off-by: duansizhao <duansizhao@huawei.com> 🤖 AI[37%] 🔧 Human Fixed[0%] 🧑 Human[63%] 👌 AI Adopted[100%] Change-Id: I57515f40066acf6019bf3bb303721ea49cedb6d8 | 26 天前 | |
!861 merge master into master 7.0 Created-by: hlzhangaj Commit-by: Your Merged-by: openharmony_ci Description: **IssueNo**: https://gitcode.com/openharmony/ability_ability_base/issues/1224 **Description**: **稳定性自检:** | 自检项 | 自检结果 | | ------------------------------------------------------------ | -------- | | 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | | | 成员变量进行赋值或创建需要排查并发 | | | 谨慎在lambda表达式中使用引用捕获 | | | 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | | | map\vector\list\set等stl模板类使用时需要排查并发 | | | 谨慎考虑加锁范围 | | | 在IPC通信中谨慎使用同步通信方式 | | | 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | | | 禁止将外部传入的裸指针在内部直接构造智能指针 | | | 禁止多个独立创建的智能指针管理同一地址 | | | 禁止在析构函数中抛异步任务 | | | 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | | | 禁止在对外接口中未经判空直接使用外部传入的指针 | | | 禁止接口返回局部变量引用 | | | 禁止在信号函数中加锁 | | | 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | | | 禁止将同一个cpp编译在不同的so中 | | **安全编码自检:** | 自检项 | 自检结果 | | -------------------------------------------------------------- | -------- | | 裸指针避免通过隐式转换构造为sptr | | | json对象在取值之前必须先判断类型,避免类型不匹配 | | | 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | | | 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | | | 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | | | 指针变量、表示资源描述符的变量、bool变量必须赋初值 | | | readParcelable获取的对象使用前需要判空 | | | 分配和释放内存的函数需要成对出现 | | | 申请内存后异常退出前需要及时进行内存释放 | | | 内存申请前必须对内存大小进行合法性校验 | | | 内存分配后必须判断是否成功 | | | 禁止使用realloc、alloca函数 | | | 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | | | 禁止打印内存地址 | | | 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | | | 禁止对有符号整数进行位操作符运算 | | | 禁止对指针进行逻辑或位运算 | | | 循环次数如果收外部数据控制,需要检验其合法性 | | | 禁止使用内存操作类危险函数,需要使用安全函数 | | | 谨慎使用不可重入函数 | | | 必须检查安全函数的返回值,并进行正确处理 | | | 禁止仅通过TokenType类型判断绕过权限校验 | | **TDD Result**: **XTS Result**: ### 是否已执行L0用例 - [ ] 已验证 - [ ] 不涉及。如不涉及,请写明理由 See merge request: openharmony/ability_ability_base!861 | 11 天前 | |
!871 merge task-work into master Add version scripts to limit exported symbols of libbase.z.so and libconfiguration.z.so Created-by: RuiChen_01 Commit-by: RuiChen_01 Merged-by: openharmony_ci Description: ## Summary - Add libbase.map and libconfiguration.map version scripts, and apply them via version_script in BUILD.gn - Only public API symbols (classes/interfaces/g_IID_* constants in base; Configuration class and conversion helpers in configuration) are exported; internal symbols and statically linked nlohmann::json weak template instantiations are hidden - No source or header changes; public symbol set is unchanged, only visibility of internal symbols is reduced ## Test plan - [ ] Build ability_base part and compare readelf --dyn-syms output before/after for both libbase.z.so and libconfiguration.z.so - [ ] Verify downstream modules linking ability_base:base and ability_base:configuration still build See merge request: openharmony/ability_ability_base!871 | 5 天前 | |
Description:init ability_base Sig: SIG_ApplicationFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: dy_study <dingyao5@huawei.com> | 4 年前 | |
IssueNo:#I5C46H Description:更新代码及readme文档 Sig:SIG_ApplicationFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: dy_study <dingyao5@huawei.com> | 4 年前 | |
Fix link error of base Signed-off-by: yuyaozhi <yuyaozhi@huawei.com> | 3 年前 | |
cwant Signed-off-by: zhuhan <zhuhan10@huawei.com> Change-Id: Ifd1b4ff3405151397e23f22d4c6ec89df7fdac54 | 1 年前 | |
编译依赖整改 Signed-off-by: OningO <zhangning134@huawei.com> | 3 个月前 | |
Revert libbase.map to export all symbols The pattern-based version script introduced in the earlier round hid symbols that in-tree and cross-repo consumers reference without declaring a direct dependency on the base target (the same implicit closure issue the abilityms twin exposed). Until each affected consumer is identified and its dependency made explicit, restore the no-version-script behavior with a single global wildcard. Co-Authored-By: Agent AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> Change-Id: I10d2454af268b340c98f9300008cb6d228e0f6fa Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 1 天前 | |
Add version scripts to limit exported symbols of libbase/libconfiguration/libwant/libzuri Co-Authored-By: Agent AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> Change-Id: Ic50a64faa789ba9082a72ac7327a30b70d27d217 Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 5 天前 | |
Revert libwant.map to export all symbols The pattern-based version script hid symbols that consumers reference through the want target's implicit dependency closure. Until each affected consumer is identified, restore the no-version-script behavior with a single global wildcard. Co-Authored-By: Agent AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> Change-Id: I2f1a0e79ec7bb2c66a0ce8543d60e7f032cd5228 Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 1 天前 | |
Add version scripts to limit exported symbols of libbase/libconfiguration/libwant/libzuri Co-Authored-By: Agent AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> Change-Id: Ic50a64faa789ba9082a72ac7327a30b70d27d217 Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 5 天前 |
元能力基础部件
简介
ability_base部件作为元能力的基础定义部件,提供组件启动参数(Want),系统环境参数(Configuration),URI参数(Uniform Resource Identifier)的定义,用于启动应用,获取环境参数等功能。
部件内子模块职责
| 子模块名称 | 职责 |
|---|---|
| Want模块 | 组件启动参数模块,开发者可以使用Want携带自定义参数,显示/隐示启动应用,同时支持Pending机制,可本地及跨设备延迟启动目标组件。 |
| Configuration模块 | 系统环境参数模块,支持开发者查询当前环境配置信息,感知系统环境变化。 |
| URI模块 | URI参数定义模块,提供本地及跨设备资源访问能力,开发者可以使用URI访问文件等资源。 |
| Base模块 | 基础数据类型模块,提供Boolean,Integer,String等支持Want携带的基础数据类型定义,方便开发者启动过程中传递自定义参数。 |
目录
foundation/ability/ability_base
├── frameworks
│ └── js
│ └── napi # ability_base的napi代码实现
│ └── native # ability_base的核心代码实现
├── interfaces
│ └── inner_api # ability_base的系统内部件间接口
└── test # 测试目录
使用说明
功能模块开发指导可参考开发指南
相关仓
元能力子系统