RuiChen_01
3bbbfedc6e
perf(build): enable size_optimize_config on 130 SO targets
...
Add a new services/common:size_optimize_config (same flags as
optimize_config minus the explicit -flto=full, so the toolchain's
global ThinLTO mode is preserved) and apply it to the 130
ohos_shared_library targets that previously shipped without any
optimization config, so unreferenced functions/data are dropped at
link time and ROM shrinks without overriding the global LTO policy.
-Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so
both optimize_config and size_optimize_config now add it only when
current_os != "mac", keeping the darwin SDK host build (which links
dylibs with -dead_strip) working.
Co-Authored-By: Agent
Signed-off-by: RuiChen_01 <chenrui193@huawei.com >
AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%]
Co-authored-by: claude (glm-5.3) <ai@local>
2026-08-21 17:24:00 +08:00
openharmony_ci
63ed8ca6fd
!20066 merge fix_bti_0804 into master
...
fix bti 0804
Created-by: zhang_feng_zhuang
Commit-by: zfz
Merged-by: openharmony_ci
Description: **IssueNo**:
https://gitcode.com/openharmony/ability_ability_runtime/issues/15856
**Description**:
**稳定性自检:**
| 自检项 | 自检结果 |
| ------------------------------------------------------------ | -------- |
| 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | ok |
| 成员变量进行赋值或创建需要排查并发 | ok |
| 谨慎在lambda表达式中使用引用捕获 | ok |
| 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | ok |
| map\vector\list\set等stl模板类使用时需要排查并发 | ok |
| 谨慎考虑加锁范围 | ok |
| 在IPC通信中谨慎使用同步通信方式 | ok |
| 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | ok |
| 禁止将外部传入的裸指针在内部直接构造智能指针 | ok |
| 禁止多个独立创建的智能指针管理同一地址 | ok |
| 禁止在析构函数中抛异步任务 | ok |
| 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | ok |
| 禁止在对外接口中未经判空直接使用外部传入的指针 | ok |
| 禁止接口返回局部变量引用 | ok |
| 禁止在信号函数中加锁 | ok |
| 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | ok |
| 禁止将同一个cpp编译在不同的so中 | ok |
**安全编码自检:**
| 自检项 | 自检结果 |
| -------------------------------------------------------------- | -------- |
| 裸指针避免通过隐式转换构造为sptr | ok |
| json对象在取值之前必须先判断类型,避免类型不匹配 | ok |
| 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | ok |
| 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | ok |
| 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | ok |
| 指针变量、表示资源描述符的变量、bool变量必须赋初值 | ok |
| readParcelable获取的对象使用前需要判空 | ok |
| 分配和释放内存的函数需要成对出现 | ok |
| 申请内存后异常退出前需要及时进行内存释放 | ok |
| 内存申请前必须对内存大小进行合法性校验 | ok |
| 内存分配后必须判断是否成功 | ok |
| 禁止使用realloc、alloca函数 | ok |
| 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | ok |
| 禁止打印内存地址 | ok |
| 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | ok |
| 禁止对有符号整数进行位操作符运算 | ok |
| 禁止对指针进行逻辑或位运算 | ok |
| 循环次数如果收外部数据控制,需要检验其合法性 | ok |
| 禁止使用内存操作类危险函数,需要使用安全函数 | ok |
| 谨慎使用不可重入函数 | ok |
| 必须检查安全函数的返回值,并进行正确处理 | ok |
| 禁止仅通过TokenType类型判断绕过权限校验 | ok |
**TDD Result**:
**XTS Result**:
### 是否已执行L0用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由
### AI检视评分(使用本地代码检视skills扫描):
See merge request: openharmony/ability_ability_runtime!20066
2026-08-08 21:33:28 +08:00
zfz
df331e6933
fix bti 0804
...
Signed-off-by: zfz <zhangfengzhuang@huawei.com >
2026-08-07 15:52:34 +08:00
liuzongze@h-partners.com
be6a34dda8
前台组件BTI适配
...
Co-Authored-By: Liuzongze
Signed-off-by: liuzongze@h-partners.com <liuzongze@h-partners.com >
🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[100%] 👌 AI Adopted[0%]
Change-Id: I679d5a5acdc3173856c6a91f21839a50bd7ca899
2026-08-05 14:46:08 +08:00
yangxuguang-huawei
ccacf5cefe
bugfix: agent connection/disconnection
...
Co-Authored-By: Agent
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-07-03 14:35:18 +08:00
yangxuguang-huawei
5707dfe8bd
bugfix: agentManager.connect/disconnect serviceExt
...
Co-Authored-By: Agent
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-04-19 15:42:21 +08:00
yangxuguang-huawei
ecbb64d5de
refactor: make shared libraries lean
...
Co-Authored-By: Agent
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-03-12 16:20:16 +08:00
SKY2001
986fec4119
AgentExtensionContext
...
Signed-off-by: SKY2001 <songtianyu10@huawei.com >
2026-03-06 15:58:36 +08:00
yangxuguang-huawei
1bb9ba7c0e
feat: Connect/Disconnect AgentExtension 1.2 part2
...
Co-Authored-By: Agent
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-02-26 22:17:11 +08:00
zexin_c
80ceb84943
fix ets export
...
Co-Authored-By: Agent
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-26 09:55:31 +08:00
zexin_c
c8a9793114
modify create with dlopen
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-25 11:57:50 +08:00
zexin_c
00626ae675
fix gn path
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-11 10:28:54 +08:00
zexin_c
630c4bc4e2
fix gn error & add extension process mode
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-10 21:52:07 +08:00
zexin_c
60e405081d
use dlopen& fix gn error
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-09 20:19:39 +08:00
zexin_c
e72b305aee
change filepath
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-09 10:53:54 +08:00
yangxuguang-huawei
3d30b86f24
refactor: AgentRuntime
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-02-07 15:47:13 +08:00
openharmony_ci
46242fe95e
!18246 merge agentUI into master
...
add agentuiextension Ability
Created-by: zexin_c
Commit-by: zexin_c
Merged-by: openharmony_ci
Description: **IssueNo**:
**Description**:
**稳定性自检:**
| 自检项 | 自检结果 |
| ------------------------------------------------------------ | -------- |
| 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | PASS |
| 成员变量进行赋值或创建需要排查并发 | PASS |
| 谨慎在lambda表达式中使用引用捕获 | PASS |
| 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | PASS |
| map\vector\list\set等stl模板类使用时需要排查并发 | PASS |
| 谨慎考虑加锁范围 | PASS |
| 在IPC通信中谨慎使用同步通信方式 |PASS |
| 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | PASS |
| 禁止将外部传入的裸指针在内部直接构造智能指针 | PASS |
| 禁止多个独立创建的智能指针管理同一地址 | PASS |
| 禁止在析构函数中抛异步任务 | PASS |
| 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | PASS |
| 禁止在对外接口中未经判空直接使用外部传入的指针 | PASS |
| 禁止接口返回局部变量引用 | PASS |
| 禁止在信号函数中加锁 | PASS |
| 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | PASS |
| 禁止将同一个cpp编译在不同的so中 | PASS |
**安全编码自检:**
| 自检项 | 自检结果 |
| -------------------------------------------------------------- | -------- |
| 裸指针避免通过隐式转换构造为sptr | PASS |
| json对象在取值之前必须先判断类型,避免类型不匹配 | PASS |
| 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | PASS |
| 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | PASS |
| 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | PASS |
| 指针变量、表示资源描述符的变量、bool变量必须赋初值 | PASS |
| readParcelable获取的对象使用前需要判空 | PASS |
| 分配和释放内存的函数需要成对出现 | PASS |
| 申请内存后异常退出前需要及时进行内存释放 | PASS |
| 内存申请前必须对内存大小进行合法性校验 | PASS |
| 内存分配后必须判断是否成功 | PASS |
| 禁止使用realloc、alloca函数 | PASS |
| 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | PASS |
| 禁止打印内存地址 | PASS |
| 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | PASS |
| 禁止对有符号整数进行位操作符运算 | PASS |
| 禁止对指针进行逻辑或位运算 | PASS |
| 循环次数如果收外部数据控制,需要检验其合法性 | PASS |
| 禁止使用内存操作类危险函数,需要使用安全函数 |PASS |
| 谨慎使用不可重入函数 | PASS |
| 必须检查安全函数的返回值,并进行正确处理 | PASS |
| 禁止仅通过TokenType类型判断绕过权限校验 | PASS |
**TDD Result**:
不涉及
**XTS Result**:
### 是否已执行L0用例
- [x] 已验证
- [ ] 不涉及。如不涉及,请写明理由
See merge request: openharmony/ability_ability_runtime!18246
2026-02-06 14:50:36 +08:00
yangxuguang-huawei
a3332f89b6
bugfix: Connect/Disconnect AgentExtension part2
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-02-06 11:32:42 +08:00
zexin_c
842bff506d
fix head & module path
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-06 11:15:49 +08:00
yangxuguang-huawei
1a9142878c
tdd: Connect/Disconnect AgentExtension part4
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-02-05 16:05:09 +08:00
yangxuguang-huawei
3a3dd69fed
bugfix: Connect/Disconnect AgentExtension
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-02-05 10:20:14 +08:00
yangxuguang-huawei
8f361c17f4
feat: Connect/Disconnect AgentExtension part3
...
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com >
2026-02-03 14:06:59 +08:00
zexin_c
36c694f59d
fix gn path
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-03 09:08:54 +08:00
zexin_c
6b0052683c
fix include dir
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-03 08:58:29 +08:00
zexin_c
8a671fd37c
add agentuiextenion
...
Signed-off-by: zexin_c <chenzexin14@huawei.com >
2026-02-03 08:58:29 +08:00
openharmony_ci
bd2ac23933
!18226 merge AgentExtensionAbility-part into master
...
AgentExtension-part
Created-by: SKY2001
Commit-by: SKY2001
Merged-by: openharmony_ci
Description: **IssueNo**:
https://gitcode.com/openharmony/ability_ability_runtime/issues/14380?ref=&did=3744842#tid-3744842
**Description**:
**稳定性自检:**
| 自检项 | 自检结果 |
| ------------------------------------------------------------ | -------- |
| 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | yes |
| 成员变量进行赋值或创建需要排查并发 | yes |
| 谨慎在lambda表达式中使用引用捕获 | yes |
| 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | yes |
| map\vector\list\set等stl模板类使用时需要排查并发 | yes |
| 谨慎考虑加锁范围 | yes |
| 在IPC通信中谨慎使用同步通信方式 | yes |
| 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | yes |
| 禁止将外部传入的裸指针在内部直接构造智能指针 | yes |
| 禁止多个独立创建的智能指针管理同一地址 | yes |
| 禁止在析构函数中抛异步任务 | yes |
| 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | yes yes |
| 禁止在对外接口中未经判空直接使用外部传入的指针 | yes |
| 禁止接口返回局部变量引用 | yes |
| 禁止在信号函数中加锁 | yes |
| 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | yes |
| 禁止将同一个cpp编译在不同的so中 | yes |
**安全编码自检:**
| 自检项 | 自检结果 |
| -------------------------------------------------------------- | -------- |
| 裸指针避免通过隐式转换构造为sptr | yes |
| json对象在取值之前必须先判断类型,避免类型不匹配 | yes |
| 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | yes |
| 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | yes |
| 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | yes |
| 指针变量、表示资源描述符的变量、bool变量必须赋初值 | yes |
| readParcelable获取的对象使用前需要判空 | yes |
| 分配和释放内存的函数需要成对出现 | yes |
| 申请内存后异常退出前需要及时进行内存释放 | yes |
| 内存申请前必须对内存大小进行合法性校验 | yes |
| 内存分配后必须判断是否成功 | yes |
| 禁止使用realloc、alloca函数 | yes |
| 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | yes |
| 禁止打印内存地址 | yes |
| 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | yes |
| 禁止对有符号整数进行位操作符运算 | yes |
| 禁止对指针进行逻辑或位运算 | yes |
| 循环次数如果收外部数据控制,需要检验其合法性 | yes |
| 禁止使用内存操作类危险函数,需要使用安全函数 | yes |
| 谨慎使用不可重入函数 | yes |
| 必须检查安全函数的返回值,并进行正确处理 | yes |
| 禁止仅通过TokenType类型判断绕过权限校验 | yes |
**TDD Result**:
pass
**XTS Result**:
pass
### 是否已执行L0用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由
See merge request: openharmony/ability_ability_runtime!18226
2026-01-31 15:17:47 +08:00
SKY2001
25f20e23f7
AgentExtensionAbility
...
Signed-off-by: SKY2001 <songtianyu10@huawei.com >
2026-01-30 16:40:30 +08:00
SKY2001
63ce605dfa
AgentExtension-part
...
Signed-off-by: SKY2001 <songtianyu10@huawei.com >
2026-01-30 16:11:34 +08:00