Open
feat: 新增 AddPortAuthorization 接口及权限管理重构 #18
feat: 新增 AddPortAuthorization 接口及权限管理重构 #18
Open
zgene94Add on May 7
zgene94
zgene94Collaborators
May 7

相关的 Issue

https://gitcode.com/openharmony-sig/busmanager_serial_manager/issues/13

变更内容

  1. 新增 AddPortAuthorization 接口:支持对话框应用授权串口权限给目标应用
  2. 重构设备上下文管理:使用 deviceId 替代 portName 作为唯一标识
  3. 新增 feature 配置:serial_manager_enable_service 特性开关
  4. 扩展测试模块:弹窗交互测试、数据库显示、init验证等

变更文件

  • bundle.json
  • services/native/src/serial_service.cpp
  • services/native/src/serial_right_manager.cpp
  • services/native/src/serial_right_db_helper.cpp
  • test/module_test/serial_module_test.cpp

测试方法

执行模块测试验证新增功能和重构逻辑

likedislike
Merge blocked
zgene94zgene94Collaborators
May 7 Associated issue: 新增 AddPortAuthorization 接口及权限管理重构
zgene94
zgene94Collaborators
May 7 Comments:

start build

likedislike
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ciopenharmony_ciCollaborators
May 7 Added label: dco检查成功
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

首次触发
门禁构建开始,包含静态检查、代码编译【serial_manager编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/69fc6afc64650f998b349c33/runlist

likedislike
openharmony_ciopenharmony_ciCollaborators
May 7 Added label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/69fc6afc64650f998b349c33/runlist

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 serial_manager pending NA

likedislike
zgene94zgene94Collaborators
May 7 Pushed commit
openharmony_ciopenharmony_ciCollaborators
May 7 Removed label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

代码有更新,重置PR验证状态

likedislike
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
zgene94
zgene94Collaborators
May 7 Comments:

start build

likedislike
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译【serial_manager编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/69fc7e3f64650f998b433459/runlist

likedislike
openharmony_ciopenharmony_ciCollaborators
May 7 Added label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
May 7 Comments:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/69fc7e3f64650f998b433459/runlist

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 serial_manager pending NA

likedislike
zgene94zgene94Collaborators
May 8 Force-pushed 7 commits:f969a964-fix(serial): handle BundleInfo crash risk in GetBundleInstallAndUpdateTime,4b1cb0f1-refactor: add real unit tests for SerialService,f88b99f9-refactor: add real unit tests for SerialService,354df11a-refactor: improve unit test mock and build config,3b5f7202-temp: fix stale file handle,70dd2942-merge serial_service_dev into zg_dev_0507,b6293082-refactor: remove permission expiration mechanism
openharmony_ciopenharmony_ciCollaborators
May 8 Removed label: 静态检查失败
openharmony_ci
openharmony_ciCollaborators
May 8 Comments:

代码有更新,重置PR验证状态

likedislike
openharmony_ci
openharmony_ciCollaborators
May 8 Comments:

感谢提交 Pull Requests !此PR未通过DCO校验。
校验失败可能原因:

1. 未签署“DCO协议”(开发者原创声明协议),在线签署、查看签署状态。

2. Commits 中未包含 Signed-off-by信息,参考FAQ处理。

修复上述问题后,在PR的评论框输入“check dco” ,单击”评论”,系统将再次进行DCO校验。

当前检测到如下Commits的Signed-off-by邮箱未签署DCO协议:


当前检测到如下Commits 未包含Signed-off-by信息:

Thanks for submitting a pull request. This pull request has not passed the DCO check.
Possible causes:

1. You have not signed the Developer Certificate of Origin (DCO). Sign the DCO and check DCO status.

2. The commits do not contain the Signed-off-by information. To resolve this issue, see FAQs.

After resolving the preceding issues, enter check dco in the comment box of this pull request and click Comment. The system will check DCO status again.

The Signed-off-by emails in the following commits have not signed the DCO:


The following commits do not contain the Signed-off-by information:
likedislike
openharmony_ciopenharmony_ciCollaborators
May 8 Removed label: dco检查成功
openharmony_ciopenharmony_ciCollaborators
May 8 Added label: dco检查失败
zgene94zgene94Collaborators
May 8 Pushed 1 commits:41a25f5f-refactor: implement cache-based permission management
openharmony_ci
openharmony_ciCollaborators
May 8 Comments:

感谢提交 Pull Requests !此PR未通过DCO校验。
校验失败可能原因:

1. 未签署“DCO协议”(开发者原创声明协议),在线签署、查看签署状态。

2. Commits 中未包含 Signed-off-by信息,参考FAQ处理。

修复上述问题后,在PR的评论框输入“check dco” ,单击”评论”,系统将再次进行DCO校验。

当前检测到如下Commits的Signed-off-by邮箱未签署DCO协议:


当前检测到如下Commits 未包含Signed-off-by信息:

Thanks for submitting a pull request. This pull request has not passed the DCO check.
Possible causes:

1. You have not signed the Developer Certificate of Origin (DCO). Sign the DCO and check DCO status.

2. The commits do not contain the Signed-off-by information. To resolve this issue, see FAQs.

After resolving the preceding issues, enter check dco in the comment box of this pull request and click Comment. The system will check DCO status again.

The Signed-off-by emails in the following commits have not signed the DCO:


The following commits do not contain the Signed-off-by information:
likedislike