Commit Graph

180 Commits

Author SHA1 Message Date
DESKTOP-UGVMD4B\DawnComing 455151f902 pc claw支持拉起分身应用
Signed-off-by: lidongrui <lidongrui3@huawei.com>
Co-Authored-By: Agent
2026-06-27 19:48:15 +08:00
yangxuguang-huawei 02aaf6b63b bugfix: free-install agent permissions
Co-Authored-By: Agent

Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com>
Change-Id: I24c15803dc5464c1e70bf2aca6a711dcfc90a7ff
2026-06-22 18:38:56 +08:00
yewei0794 44b91812de extension分身场景使用
Signed-off-by: yewei0794 <weiyejxnf@163.com>

🤖‍ AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%]
Co-authored-by: Agent

Change-Id: If4bc6b09c1804c5685610f81d47ebb7a1ed9904a
2026-06-06 16:23:03 +08:00
wangzhen 34fa86335e Add index check error
Co-Authored-By: Agent

Signed-off-by: wangzhen <wangzhen416@huawei.com>

🤖‍ AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%]
Co-authored-by: claude (glm-5.1) <ai@local>

Change-Id: I0a8640bdf5e73812e3280b4ab676e319115038d8
2026-05-30 17:01:15 +08:00
wangzhen 1947b39687 Code review
Co-Authored-By: Agent

Signed-off-by: wangzhen <wangzhen416@huawei.com>

🤖‍ AI[57%] 👌 AI Adopted[57%] 🧑 Human[43%]

Change-Id: I58e2d8f62919c4d83b28816e23d2f6750b2fc8bb
2026-05-30 09:23:21 +08:00
wangzhen fd3ba90f77 AppClone for account
Co-Authored-By: Agent

Signed-off-by: wangzhen <wangzhen416@huawei.com>

🤖‍ AI[80%] 👌 AI Adopted[80%] 🧑 Human[20%]
Co-authored-by: claude (glm-5.1) <ai@local>

Change-Id: Iab06be120e73f5b345d74b0f159796fd3fcca85d
2026-05-28 20:22:51 +08:00
openharmony_ci b69cb88370 !19333 merge wantop into master
optimise or use of want

Created-by: zivzhen
Commit-by: wangzhen
Merged-by: openharmony_ci
Description: **IssueNo**:

**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**:
pass
**XTS Result**:
pass

### 是否已执行L0用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!19333
2026-05-16 19:32:55 +08:00
xuzheheng ba0c7c373a add lock
Signed-off-by: xuzheheng <xuzheheng2@h-partners.com>
Change-Id: Ifd65c653bc0490060c5bbd3cf6c9972e4e8bc9f0

Co-Authored-By: Agent
Change-Id: I172d1a04a6bba46f66bb951ada435d8d23d209d1
2026-05-15 16:24:29 +08:00
wangzhen 0eea009dd0 want op for performance
Signed-off-by: wangzhen <wangzhen416@huawei.com>
Change-Id: Ib2d0d6df3bd87a2e17deae9165a802b556241a3f
2026-05-14 10:28:01 +08:00
zhengzhuolan b492727fc2 support start ui ability with callback
Co-Authored-By: zzz
Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com>
2026-04-27 20:19:17 +08:00
yangxuguang-huawei dc69c85cf2 feat: add WINDOW_MODE_SPLIT to WindowMode
Co-Authored-By: Agent

Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com>
2026-04-25 10:41:31 +08:00
Luobniz21 af4e14d467 atomicservicesharerouterpermission
Signed-off-by: Luobniz21 <luoyicong@h-partners.com>
2026-04-17 12:35:33 +08:00
openharmony_ci ceafd387a4 !18951 merge master0414 into master
deviceId Anonymize

Created-by: dsz2025
Commit-by: duansizhao
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用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!18951
2026-04-16 16:43:47 +08:00
duansizhao bcbfea26e9 deviceId Anonymize
Co-Authored-By: Agent
Signed-off-by: duansizhao <duansizhao@huawei.com>
Change-Id: I9f405c91cfccd42909750e3ea5f9b5e8b68ae8d1
2026-04-15 21:44:47 +08:00
DESKTOP-UGVMD4B\DawnComing 430ac0d9d9 游戏预启动需求
Signed-off-by: lidongrui <lidongrui3@huawei.com>
Co-Authored-By: Agent
2026-04-11 20:39:27 +08:00
openharmony_ci f3bc70c119 !18603 merge Extension into master
Extension_Enhancement

Created-by: renjh5496
Commit-by: renjianhao
Merged-by: openharmony_ci
Description: **IssueNo**:
https://gitcode.com/openharmony/ability_ability_runtime/issues/14695
**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_runtime!18603
2026-04-10 13:12:25 +08:00
openharmony_ci 99cd9fabbc !18713 merge skipAbilityStageLifeCycle into master
add skipAbilityStageLifecycle

Created-by: renjh5496
Commit-by: renjianhao
Merged-by: openharmony_ci
Description: **IssueNo**:
https://gitcode.com/openharmony/ability_ability_runtime/issues/14771
**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**:
![img_v3_0210h_fe78a00d-194a-4907-b999-78fc007ad95g.jpg](https://raw.gitcode.com/user-images/assets/4421702/fe8e5c87-c646-4160-9c73-368316dbef15/img_v3_0210h_fe78a00d-194a-4907-b999-78fc007ad95g.jpg 'img_v3_0210h_fe78a00d-194a-4907-b999-78fc007ad95g.jpg')
**XTS Result**:

### 是否已执行L0用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!18713
2026-04-09 17:07:42 +08:00
renjianhao c054bbb472 Extension_Enhancement
Signed-off-by: renjianhao <renjianhao@h-partners.com>
2026-04-09 15:46:15 +08:00
openharmony_ci 1cfd8cb04b !18858 merge 0331startability into master
0331startability

Created-by: Luobniz21
Commit-by: Luobniz21
Merged-by: openharmony_ci
Description: 
**IssueNo**:

**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用例
- [x] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!18858
2026-04-08 20:55:26 +08:00
renjianhao 08be4b0c24 add skipAbilityStageLifeCycle
Signed-off-by: renjianhao <renjianhao@h-partners.com>
2026-04-03 17:01:54 +08:00
Luobniz21 81aa5fad62 0331startability
Signed-off-by: Luobniz21 <luoyicong@h-partners.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/accesstoken_kit.h
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/accesstoken_kit.h
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_my_flag.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/accesstoken_kit.h
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_my_flag.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/accesstoken_kit.h
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_my_flag.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/accesstoken_kit.h
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_my_flag.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:13:42 2026 +0800
#
# On branch 0331startability
# Your branch is up to date with 'origin/0331startability'.
#
# Changes to be committed:
#	modified:   frameworks/ets/ani/ui_ability/include/ets_ui_ability.h
#	modified:   frameworks/ets/ani/ui_ability/src/ets_ui_ability.cpp
#	modified:   frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp
#	modified:   interfaces/kits/native/ability/native/ability_runtime/js_ui_ability.h
#	modified:   services/abilitymgr/include/utils/start_ability_utils.h
#	modified:   services/abilitymgr/src/ability_manager_service.cpp
#	modified:   services/abilitymgr/src/utils/start_ability_utils.cpp
#	modified:   services/common/include/permission_constants.h
#	modified:   test/unittest/dialog_session_manager_test/BUILD.gn
#	modified:   test/unittest/js_ui_ability_test/js_ui_ability_test.cpp
#	modified:   test/unittest/start_ability_utils_test/BUILD.gn
#	new file:   test/unittest/start_ability_utils_test/mock/include/accesstoken_kit.h
#	new file:   test/unittest/start_ability_utils_test/mock/include/mock_my_flag.h
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_accesstoken_kit.cpp
#	new file:   test/unittest/start_ability_utils_test/mock/src/mock_my_flag.cpp
#	modified:   test/unittest/start_ability_utils_test/start_ability_utils_test.cpp
#
2026-04-02 15:04:24 +08:00
Luobniz21 84c9bcd91c publish_startuiability_0331
Signed-off-by: Luobniz21 <luoyicong@h-partners.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:24:58 2026 +0800
#
# On branch publish_startuiability_0331
# Your branch is up to date with 'origin/publish_startuiability_0331'.
#
# Changes to be committed:
#	modified:   frameworks/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.cpp
#	modified:   interfaces/kits/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.h
#	modified:   services/abilitymgr/include/utils/ability_event_util.h
#	modified:   services/abilitymgr/src/ability_record.cpp
#	modified:   services/abilitymgr/src/utils/ability_event_util.cpp
#	modified:   test/fuzztest/abilityeventutil_fuzzer/BUILD.gn
#	modified:   test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_bundle_manager.h
#	modified:   test/unittest/ability_event_util_test/BUILD.gn
#	modified:   test/unittest/ability_event_util_test/ability_event_util_test.cpp
#	modified:   test/unittest/ability_manager_service_first_test/ability_manager_service_first_test.cpp
#	modified:   test/unittest/ability_manager_service_mock_test/BUILD.gn
#	modified:   test/unittest/insight_intent/insight_intent_utils_test/BUILD.gn
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:24:58 2026 +0800
#
# On branch publish_startuiability_0331
# Your branch is up to date with 'origin/publish_startuiability_0331'.
#
# Changes to be committed:
#	modified:   frameworks/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.cpp
#	modified:   interfaces/kits/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.h
#	modified:   services/abilitymgr/include/utils/ability_event_util.h
#	modified:   services/abilitymgr/src/ability_record.cpp
#	modified:   services/abilitymgr/src/utils/ability_event_util.cpp
#	modified:   test/fuzztest/abilityeventutil_fuzzer/BUILD.gn
#	modified:   test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_bundle_manager.h
#	modified:   test/unittest/ability_event_util_test/BUILD.gn
#	modified:   test/unittest/ability_event_util_test/ability_event_util_test.cpp
#	modified:   test/unittest/ability_manager_service_first_test/ability_manager_service_first_test.cpp
#	modified:   test/unittest/ability_manager_service_mock_test/BUILD.gn
#	modified:   test/unittest/insight_intent/insight_intent_utils_test/BUILD.gn
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:24:58 2026 +0800
#
# On branch publish_startuiability_0331
# Your branch is up to date with 'origin/publish_startuiability_0331'.
#
# Changes to be committed:
#	modified:   frameworks/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.cpp
#	modified:   interfaces/kits/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.h
#	modified:   services/abilitymgr/include/utils/ability_event_util.h
#	modified:   services/abilitymgr/src/ability_record.cpp
#	modified:   services/abilitymgr/src/utils/ability_event_util.cpp
#	modified:   test/fuzztest/abilityeventutil_fuzzer/BUILD.gn
#	modified:   test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_bundle_manager.h
#	modified:   test/unittest/ability_event_util_test/BUILD.gn
#	modified:   test/unittest/ability_event_util_test/ability_event_util_test.cpp
#	modified:   test/unittest/ability_manager_service_first_test/ability_manager_service_first_test.cpp
#	modified:   test/unittest/ability_manager_service_mock_test/BUILD.gn
#	modified:   test/unittest/insight_intent/insight_intent_utils_test/BUILD.gn
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:24:58 2026 +0800
#
# On branch publish_startuiability_0331
# Your branch is up to date with 'origin/publish_startuiability_0331'.
#
# Changes to be committed:
#	modified:   frameworks/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.cpp
#	modified:   interfaces/kits/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.h
#	modified:   services/abilitymgr/include/utils/ability_event_util.h
#	modified:   services/abilitymgr/src/ability_record.cpp
#	modified:   services/abilitymgr/src/utils/ability_event_util.cpp
#	modified:   test/fuzztest/abilityeventutil_fuzzer/BUILD.gn
#	modified:   test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_bundle_manager.h
#	modified:   test/unittest/ability_event_util_test/BUILD.gn
#	modified:   test/unittest/ability_event_util_test/ability_event_util_test.cpp
#	modified:   test/unittest/ability_manager_service_first_test/ability_manager_service_first_test.cpp
#	modified:   test/unittest/ability_manager_service_mock_test/BUILD.gn
#	modified:   test/unittest/insight_intent/insight_intent_utils_test/BUILD.gn
#

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Mar 31 22:24:58 2026 +0800
#
# On branch publish_startuiability_0331
# Your branch is up to date with 'origin/publish_startuiability_0331'.
#
# Changes to be committed:
#	modified:   frameworks/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.cpp
#	modified:   interfaces/kits/native/appkit/ability_bundle_manager_helper/bundle_mgr_helper.h
#	modified:   services/abilitymgr/include/utils/ability_event_util.h
#	modified:   services/abilitymgr/src/ability_record.cpp
#	modified:   services/abilitymgr/src/utils/ability_event_util.cpp
#	modified:   test/fuzztest/abilityeventutil_fuzzer/BUILD.gn
#	modified:   test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_bundle_manager.h
#	modified:   test/unittest/ability_event_util_test/BUILD.gn
#	modified:   test/unittest/ability_event_util_test/ability_event_util_test.cpp
#	modified:   test/unittest/ability_manager_service_first_test/ability_manager_service_first_test.cpp
#	modified:   test/unittest/ability_manager_service_mock_test/BUILD.gn
#	modified:   test/unittest/insight_intent/insight_intent_utils_test/BUILD.gn
#
2026-04-01 13:15:58 +08:00
openharmony_ci 20a104f317 !18736 merge master0321 into master
feat: add URI permission verification mechanism for content URIs

Created-by: dsz2025
Commit-by: duansizhao
Merged-by: openharmony_ci
Description: **IssueNo**: #14797

**Description**:

Add URI permission verification mechanism for content URIs to enhance security and proper authorization checks.

- Add VerifyUriPermission interface in IAbilityManagerCollaborator
- Add VerifyContentUriPermission in UriPermissionManagerStubImpl
- Mark content URIs as authorized for broker calls
- Add ContentUriPermission verification in CheckProxyUriPermission
- Update mock classes for unit testing

**稳定性自检:**
| 自检项 | 自检结果 |
| ------------------------------------------------------------ | -------- |
| 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | 待确认 | 修改了敏感文件: *proxy.cpp, *stub.cpp
| 成员变量进行赋值或创建需要排查并发 | 不涉及 |
| 谨慎在lambda表达式中使用引用捕获 | 待确认 | 修改了敏感文件: *.cpp
| 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | 待确认 | 修改了敏感文件: *.cpp, *.h
| map\vector\list\set等stl模板类使用时需要排查并发 | 待确认 | 修改了敏感文件: *.cpp, *.h
| 谨慎考虑加锁范围 | 待确认 | 修改了敏感文件: *.cpp
| 在IPC通信中谨慎使用同步通信方式 | 不涉及 |
| 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | 不涉及 |
| 禁止将外部传入的裸指针在内部直接构造智能指针 | 不涉及 |
| 禁止多个独立创建的智能指针管理同一地址 | 不涉及 |
| 禁止在析构函数中抛异步任务 | 不涉及 |
| 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | 不涉及 |
| 禁止在对外接口中未经判空直接使用外部传入的指针 | 不涉及 |
| 禁止接口返回局部变量引用 | 不涉及 |
| 禁止在信号函数中加锁 | 待确认 | 修改了敏感文件: *.cpp
| 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | 不涉及 |
| 禁止将同一个cpp编译在不同的so中 | 不涉及 |

**安全编码自检:**
| 自检项 | 自检结果 |
| -------------------------------------------------------------- | -------- |
| 裸指针避免通过隐式转换构造为sptr | 待确认 | 修改了敏感文件: *.cpp
| json对象在取值之前必须先判断类型,避免类型不匹配 | 待确认 | 修改了敏感文件: *.cpp
| 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | 待确认 | 修改了敏感文件: *.cpp
| 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | 不涉及 |
| 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | 待确认 | 修改了敏感文件: *.cpp
| 指针变量、表示资源描述符的变量、bool变量必须赋初值 | 不涉及 |
| readParcelable获取的对象使用前需要判空 | 待确认 | 修改了敏感文件: *.cpp
| 分配和释放内存的函数需要成对出现 | 不涉及 |
| 申请内存后异常退出前需要及时进行内存释放 | 不涉及 |
| 内存申请前必须对内存大小进行合法性校验 | 不涉及 |
| 内存分配后必须判断是否成功 | 不涉及 |
| 禁止使用realloc、alloca函数 | 不涉及 |
| 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | 待确认 | 修改了敏感文件: *.cpp
| 禁止打印内存地址 | 待确认 | 修改了敏感文件: *.cpp
| 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | 不涉及 |
| 禁止对有符号整数进行位操作符运算 | 待确认 | 修改了敏感文件: *.cpp
| 禁止对指针进行逻辑或位运算 | 不涉及 |
| 循环次数如果收外部数据控制,需要检验其合法性 | 不涉及 |
| 禁止使用内存操作类危险函数,需要使用安全函数 | 不涉及 |
| 谨慎使用不可重入函数 | 不涉及 |
| 必须检查安全函数的返回值,并进行正确处理 | 不涉及 |
| 禁止仅通过TokenType类型判断绕过权限校验 | 不涉及 |

**TDD Result**:
待确认

**XTS Result**:
待确认

### 是否已执行L0用例
- [ ] 待确认


See merge request: openharmony/ability_ability_runtime!18736
2026-03-27 15:00:36 +08:00
duansizhao 917417dbd9 support anco uri
Co-Authored-By: Agent
Signed-off-by: duansizhao <duansizhao@huawei.com>
Change-Id: Ia4b95c81132fad2e64d54c7dd31ee082007a39da
2026-03-26 17:16:07 +08:00
openharmony_ci df59f9b9db !18686 merge open_time_event into master
OPEN_TIME事件补充targetUid

Created-by: renjh5496
Commit-by: renjianhao
Merged-by: openharmony_ci
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    |

**XTS Result**:
![image.png](https://raw.gitcode.com/user-images/assets/4421702/e7bb0d89-fe99-47e9-b3ce-d98aaddd68e3/image.png 'image.png')
**TDD Result**:
![image.png](https://raw.gitcode.com/user-images/assets/4421702/6caec03e-b14d-4f79-80f1-fd0869ed3e3c/image.png 'image.png')

### 是否已执行L0用例
- [ ] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!18686
2026-03-21 16:32:27 +08:00
renjianhao 9d7480efb1 target uid
Signed-off-by: renjianhao <renjianhao@h-partners.com>
2026-03-18 13:27:08 +08:00
wangzhen a18e1873e8 add tdd
Co-Authored-By: Agent

Signed-off-by: wangzhen <wangzhen416@huawei.com>
2026-03-10 20:43:10 +08:00
wangzhen 9572bf48ad code op
Co-Authored-By: Agent

Signed-off-by: wangzhen <wangzhen416@huawei.com>
2026-03-09 15:20:42 +08:00
wangzhen 66f892f744 StartAbilityByOEExt
Co-Authored-By: Agent

Signed-off-by: wangzhen <wangzhen416@huawei.com>
2026-03-09 11:30:08 +08:00
zhengzhuolan f8f53d05cb add caller uid to OPEN_TIME event
Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com>
2026-03-03 14:54:01 +08:00
zhengzhuolan 38eff50f16 修改整数溢出
Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com>
2026-02-28 16:22:46 +08:00
DESKTOP-UGVMD4B\DawnComing b1bc3cb739 支持三方冷启动东湖文件分享
Signed-off-by: lidongrui <lidongrui3@huawei.com>
2026-02-10 21:11:16 +08:00
Luobniz21 379ef409cd so_cpp
Signed-off-by: Luobniz21 <luoyicong@h-partners.com>
Change-Id: I4305ff366fb545d18651807a9b017fdeffb2ad37
2026-02-09 20:46:30 +08:00
zhengzhuolan a573889ea3 yizhixing
Signed-off-by: zhengzhuolan <zhengzhuolan@huawei-partners.com>
2026-02-05 15:18:23 +08:00
xuzheheng c3619079fa dump优化
Signed-off-by: xuzheheng <xuzheheng2@h-partners.com>
2026-01-29 15:35:48 +08:00
hanchen45 7e51a2f78d 退出原因分支一致
Signed-off-by: hanchen45 <wanghanchen1@huawei.com>
2026-01-16 09:48:41 +08:00
zyr020212 12f86f731d Sensitive word remove
Signed-off-by: zyr020212 <zhaoyuran@h-partners.com>
2026-01-09 13:54:34 +08:00
openharmony_ci 9326714ef3 !17851 merge getstartTime into master
new_提供UIAbility获取开始启动时间的接口

Created-by: lidongrui
Commit-by: lidongrui
Merged-by: openharmony_ci
Description: **IssueNo**:

**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_runtime!17851
2025-12-27 21:19:41 +08:00
lidongrui 059fef744b 提供UIAbility获取开始启动时间的接口 new
Signed-off-by: lidongrui <lidongrui3@huawei.com>

Change-Id: I7f6f1363b0ccd137fa952fea938af148ffc603da
2025-12-27 17:02:10 +08:00
任国军 9d825ca10f fix
Signed-off-by: 任国军 <renguojun1@h-partners.com>
2025-12-25 22:38:54 +08:00
任国军 ff7fc8a35a format
Signed-off-by: 任国军 <renguojun1@h-partners.com>
2025-12-25 20:53:34 +08:00
任国军 46d965741f 插件支持EmbeddedUIExtensionAbilityState
Signed-off-by: 任国军 <renguojun1@h-partners.com>
2025-12-25 20:26:31 +08:00
任国军 3f4e46a5bf update
Signed-off-by: 任国军 <renguojun1@h-partners.com>
2025-12-20 18:49:31 +08:00
Nathan Yang 37abb2ee27 feat: OpenLink disallow self-redirection
Signed-off-by: Nathan Yang <yangxuguang3@huawei.com>
2025-12-18 20:13:02 +08:00
Nathan Yang 4b0a2da9e9 feat: add sessionInfo to StartSpecifiedAbilityBySCB
Signed-off-by: Nathan Yang <yangxuguang3@huawei.com>
2025-12-17 18:36:42 +08:00
unknown 8a6a5381b8 remove log
Signed-off-by: unknown <sijunjie@huawei.com>
2025-12-10 19:20:41 +08:00
Nathan Yang 9e2ecdba9a refactor: huge methods for StartAbility
Signed-off-by: Nathan Yang <yangxuguang3@huawei.com>
2025-12-09 15:23:57 +08:00
openharmony_ci b7c6584c58 !17379 merge PluginSCB into master
启动插件UIAbility时,通知SCB

Created-by: lidongrui
Commit-by: lidongrui
Merged-by: openharmony_ci
Description: **IssueNo**:

**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_runtime!17379
2025-12-03 16:02:19 +08:00
openharmony_ci d1b2039a4f !17590 merge uiabilityli into master
No appCloneSelector for SCB

Created-by: zivzhen
Commit-by: wangzhen
Merged-by: openharmony_ci
Description: **IssueNo**:

**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**:
pass
**XTS Result**:
pass

### 是否已执行L0用例
- [x] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!17590
2025-12-02 09:43:54 +08:00
wangzhen ded8c1cf5d No appCloneSelector for scb
Signed-off-by: wangzhen <wangzhen416@huawei.com>
2025-11-29 17:17:35 +08:00