| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat: add cpp-side infrastructure for custom auth - Add SecureVector to zeroize sensitive buffers (passcode) after use - Add typed JSON field helper with bounds-checked integral parsing - Add MiscManager pending-unlock tracking (bounded, dedup, FIFO eviction) - Add synchronous resident task runner API with timeout - Refine request/service layers and clean up FFI headers Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[34%] 🔧 Human Fixed[0%] 🧑 Human[66%] 👌 AI Adopted[100%] Change-Id: Ib11ead554c53e4a294368ae82acfa894d26708f4 | 7 天前 | |
feat: add cpp-side infrastructure for custom auth - Add SecureVector to zeroize sensitive buffers (passcode) after use - Add typed JSON field helper with bounds-checked integral parsing - Add MiscManager pending-unlock tracking (bounded, dedup, FIFO eviction) - Add synchronous resident task runner API with timeout - Refine request/service layers and clean up FFI headers Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[34%] 🔧 Human Fixed[0%] 🧑 Human[66%] 👌 AI Adopted[100%] Change-Id: Ib11ead554c53e4a294368ae82acfa894d26708f4 | 7 天前 | |
feat: add cpp-side infrastructure for custom auth - Add SecureVector to zeroize sensitive buffers (passcode) after use - Add typed JSON field helper with bounds-checked integral parsing - Add MiscManager pending-unlock tracking (bounded, dedup, FIFO eviction) - Add synchronous resident task runner API with timeout - Refine request/service layers and clean up FFI headers Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[34%] 🔧 Human Fixed[0%] 🧑 Human[66%] 👌 AI Adopted[100%] Change-Id: Ib11ead554c53e4a294368ae82acfa894d26708f4 | 7 天前 | |
feat: resync companion device status on user switch and device name change Re-sync bound companion devices when the active user switches or the local display device name changes, keeping each side's device status current without polling. - Add a settings manager observing the display-device-name setting via DataShare and fanning out change notifications. - Expose TriggerDeviceSync on the cross-device communication manager. - Wire the SoftBus channel to trigger resync on active-user and device-name changes. - Add test seams (fake DataShare/CommonEvent), mocks, and unit/module tests for the new flow. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[99%] 🔧 Human Fixed[0%] 🧑 Human[1%] 👌 AI Adopted[100%] Co-authored-by: claude (glm-4.7) <ai@local> Co-authored-by: claude (glm-5.2) <ai@local> Change-Id: I2503ee2a6ef152112945fdeb44590d48bfdb1f9c | 1 个月前 | |
fix: prevent heap corruption when a request is torn down A request is destroyed synchronously inside RequestManager::Remove's deque erase, so a subscription cleanup that ran complex logic inline corrupted the heap (jemalloc "may double free"). Reset every request's subscriptions in Destroy() (which always runs before the destructor, since Remove is posted from Destroy) and defer the complex parts of subscription cleanups to the next resident event-loop turn. 🤖 AI[18%] 🔧 Human Fixed[0%] 🧑 Human[82%] 👌 AI Adopted[100%] Change-Id: I66a965b03f67f13513dcc066f920cad90012309e Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 11 天前 | |
feat: add LogTracer file ID definitions for error path tracing Change-Id: Ib4d59ccd17f5a0f64c50cfc88ee577aa8e9146e2 Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 3 个月前 | |
fix: prevent heap corruption when a request is torn down A request is destroyed synchronously inside RequestManager::Remove's deque erase, so a subscription cleanup that ran complex logic inline corrupted the heap (jemalloc "may double free"). Reset every request's subscriptions in Destroy() (which always runs before the destructor, since Remove is posted from Destroy) and defer the complex parts of subscription cleanups to the next resident event-loop turn. 🤖 AI[18%] 🔧 Human Fixed[0%] 🧑 Human[82%] 👌 AI Adopted[100%] Change-Id: I66a965b03f67f13513dcc066f920cad90012309e Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 11 天前 | |
feat: add cpp-side infrastructure for custom auth - Add SecureVector to zeroize sensitive buffers (passcode) after use - Add typed JSON field helper with bounds-checked integral parsing - Add MiscManager pending-unlock tracking (bounded, dedup, FIFO eviction) - Add synchronous resident task runner API with timeout - Refine request/service layers and clean up FFI headers Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[34%] 🔧 Human Fixed[0%] 🧑 Human[66%] 👌 AI Adopted[100%] Change-Id: Ib11ead554c53e4a294368ae82acfa894d26708f4 | 7 天前 | |
!224 merge dev4 into master fix: 加固请求完成生命周期与事件采集字段 Created-by: tianshiliu25 Commit-by: Tianshi Liu Merged-by: openharmony_ci Description: ## 变更摘要 本次变更主要加固跨设备认证请求的完成生命周期,使终态完成(CompleteWithError / CompleteWithSuccess)成为一次性操作,避免重复或重入触发的二次回调与重复销毁;同时修复若干由 move 语义导致的悬空回调、错误码未正确传播等问题,并丰富交互事件采集字段、加固内存分配。 ## 影响范围 - **请求完成生命周期加固**(common/base_request 及各 host/companion request):BaseRequest 新增 completed_ 标志与 AcquireCompletion(),所有请求类型的完成函数加入一次性守卫,防止重复/重入完成;HostAddCompanionRequest 在 enrollmentSucceeded_ 路径下内联成功完成逻辑;HostRemoveHostBindingRequest 即使无 templateId 也继续上报事件并销毁。 - **delegate_auth 委托认证**:HandleDelegateAuthResult 增加 cancelled_ 早退避免迟到回调;发送失败通过 ErrorGuard 设置 COMMUNICATION_ERROR;回复处理统一走 ErrorGuard 错误码。 - **issue_token**:预下发消息发送失败改用 COMMUNICATION_ERROR 而非 GENERAL_ERROR。 - **move 语义修复**:local_device_status_manager callback 改拷贝入表、companion_init_key_negotiation_handler / host_pre_obtain_token_handler 的 OnMessageReply 改拷贝传递,避免延迟任务/ErrorGuard 引用到 moved-from 对象。 - **sync_device_status**:SetConnectionName 由构造函数移至 OnConnected(),确保连接名有效。 - **事件采集**:InteractionEventCollector 新增 callerUserId 字段;InteractionDesc 中 pkgName 仅保留末段以缩短日志。 - **内存分配加固**:rsa_oaep_encryptor、companion_device_auth_all_in_one_executor 使用 new(std::nothrow) + ENSURE_OR_RETURN_VAL。 - **测试**:补充完成幂等性、callerUserId 编码及 subscription_util 边界逻辑的单元测试。 Closes #179 See merge request: openharmony/useriam_companion_device_auth!224 | 29 天前 | |
feat: add LogTracer file ID definitions for error path tracing Change-Id: Ib4d59ccd17f5a0f64c50cfc88ee577aa8e9146e2 Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 3 个月前 | |
fix: harden request completion lifecycle and collector fields Make terminal completion (CompleteWithError/CompleteWithSuccess) a one-shot operation across request types to prevent double or re-entrant completion, fix moved-from callbacks retained by error guards and deferred tasks, propagate the correct error code on delegate-auth and issue-token send failures, and record callerUserId in interaction events. Construct encryptor and executor with nothrow allocation. Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[100%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[100%] Co-authored-by: claude (glm-5.2) <ai@local> Change-Id: I014a484d6a923562bfbee871a83c8f712dd50691 | 30 天前 | |
!224 merge dev4 into master fix: 加固请求完成生命周期与事件采集字段 Created-by: tianshiliu25 Commit-by: Tianshi Liu Merged-by: openharmony_ci Description: ## 变更摘要 本次变更主要加固跨设备认证请求的完成生命周期,使终态完成(CompleteWithError / CompleteWithSuccess)成为一次性操作,避免重复或重入触发的二次回调与重复销毁;同时修复若干由 move 语义导致的悬空回调、错误码未正确传播等问题,并丰富交互事件采集字段、加固内存分配。 ## 影响范围 - **请求完成生命周期加固**(common/base_request 及各 host/companion request):BaseRequest 新增 completed_ 标志与 AcquireCompletion(),所有请求类型的完成函数加入一次性守卫,防止重复/重入完成;HostAddCompanionRequest 在 enrollmentSucceeded_ 路径下内联成功完成逻辑;HostRemoveHostBindingRequest 即使无 templateId 也继续上报事件并销毁。 - **delegate_auth 委托认证**:HandleDelegateAuthResult 增加 cancelled_ 早退避免迟到回调;发送失败通过 ErrorGuard 设置 COMMUNICATION_ERROR;回复处理统一走 ErrorGuard 错误码。 - **issue_token**:预下发消息发送失败改用 COMMUNICATION_ERROR 而非 GENERAL_ERROR。 - **move 语义修复**:local_device_status_manager callback 改拷贝入表、companion_init_key_negotiation_handler / host_pre_obtain_token_handler 的 OnMessageReply 改拷贝传递,避免延迟任务/ErrorGuard 引用到 moved-from 对象。 - **sync_device_status**:SetConnectionName 由构造函数移至 OnConnected(),确保连接名有效。 - **事件采集**:InteractionEventCollector 新增 callerUserId 字段;InteractionDesc 中 pkgName 仅保留末段以缩短日志。 - **内存分配加固**:rsa_oaep_encryptor、companion_device_auth_all_in_one_executor 使用 new(std::nothrow) + ENSURE_OR_RETURN_VAL。 - **测试**:补充完成幂等性、callerUserId 编码及 subscription_util 边界逻辑的单元测试。 Closes #179 See merge request: openharmony/useriam_companion_device_auth!224 | 29 天前 | |
feat: add cpp-side infrastructure for custom auth - Add SecureVector to zeroize sensitive buffers (passcode) after use - Add typed JSON field helper with bounds-checked integral parsing - Add MiscManager pending-unlock tracking (bounded, dedup, FIFO eviction) - Add synchronous resident task runner API with timeout - Refine request/service layers and clean up FFI headers Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> 🤖 AI[34%] 🔧 Human Fixed[0%] 🧑 Human[66%] 👌 AI Adopted[100%] Change-Id: Ib11ead554c53e4a294368ae82acfa894d26708f4 | 7 天前 | |
fix: prevent heap corruption when a request is torn down A request is destroyed synchronously inside RequestManager::Remove's deque erase, so a subscription cleanup that ran complex logic inline corrupted the heap (jemalloc "may double free"). Reset every request's subscriptions in Destroy() (which always runs before the destructor, since Remove is posted from Destroy) and defer the complex parts of subscription cleanups to the next resident event-loop turn. 🤖 AI[18%] 🔧 Human Fixed[0%] 🧑 Human[82%] 👌 AI Adopted[100%] Change-Id: I66a965b03f67f13513dcc066f920cad90012309e Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> | 11 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 7 天前 | ||
| 7 天前 | ||
| 7 天前 | ||
| 1 个月前 | ||
| 11 天前 | ||
| 3 个月前 | ||
| 11 天前 | ||
| 7 天前 | ||
| 29 天前 | ||
| 3 个月前 | ||
| 30 天前 | ||
| 29 天前 | ||
| 7 天前 | ||
| 11 天前 |