| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
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 | 11 天前 | |
!219 merge dev2 into master feat: 新增伴随设备认证流程耗时分解打点 Created-by: tianshiliu25 Commit-by: Tianshi Liu Merged-by: openharmony_ci Description: ## 变更摘要 为伴随设备认证流程新增耗时分解打点,支持按请求类型统计总耗时(TOTAL_TIME)与本地处理耗时(LOCAL_TIME),并提供阶段时间线(timeTrace)用于单条排障与超时失败定位。 ## 影响范围 - **打点上报**:INTERACTION_EVENT 新增 TOTAL_TIME/LOCAL_TIME 独立列(可按 REQUEST_TYPE 做 P50/P99 分布聚合),EXTRA_INFO 新增 timeTrace 阶段时间线 - **TimingTracer**:新增 checkpoint 时间线工具,LOCAL_TIME = TOTAL_TIME - 软总线/外部等待区间之和;任意下一个点自动关闭当前等待,漏标/取消/超时路径仍正确统计 - **插点覆盖**:OutboundRequest 基类统一标注建连等待;各认证 Request 标注消息往返/推送等待;编排型 MixAuth 标注决策点 Mark - **单测**:新增 TimingTracer 单元测试覆盖核心语义与边界 Closes #174 See merge request: openharmony/useriam_companion_device_auth!219 | 20 小时前 | |
refactor: split active user id into pure active and unlocked variants Rename GetActiveUserId/SubscribeActiveUserId to *UnlockedActiveUserId to reflect their verified (unlocked) semantics, and repurpose the original names for the pure active user without unlock verification. Migrate all call sites to the Unlocked variants. 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: I6e5ce1e4b738c9e60107247ba8b1717dcc778470 | 1 天前 | |
!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 | 20 小时前 | |
refactor: improve subscription structure and add business id filtering - Restructure subscription directory layout for better organization - Add business id filtering in host mix auth request for template validation - Apply GET_MASKED_STR_CSTR for sensitive device info in logs - Simplify SystemParamManager subscription storage with unified struct - Fix userId type from uint32_t to int32_t in BeginDelegateAuth Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com> Change-Id: Id2f6b3a1001a60916ed3260d518ce5105cc66e9f | 4 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 11 天前 | ||
| 20 小时前 | ||
| 1 天前 | ||
| 20 小时前 | ||
| 4 个月前 |