Files
ability_ability_runtime/services
yewei0794 5a25ffbe5e 增强 ScreenUnlockInterceptor 配置加载失败的鲁棒性
当 ams_extension_config.json 读取或解析失败时,configMap_ 为空,
导致所有 extension 在解锁前被拦截。增加 isConfigLoaded_ 标志位,
配置未加载成功时拦截器直接放行所有 extension。

变更内容:
- ExtensionConfig 新增 std::atomic<bool> isConfigLoaded_ 标志
- LoadExtensionConfig 解析完成后设置标志为 true
- ScreenUnlockInterceptor::CheckExtensionInterception 增加前置判断,
  配置未加载时直接返回 ERR_OK 放行
- 补充 4 个测试用例覆盖新增分支,修改 NoConfig 测试用例适配新逻辑

Signed-off-by: yewei0794 <weiyejxnf@163.com>
Co-Authored-By: Agent

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

Change-Id: Iaed7559ddceb3914c69366aa38b58347b5478492
2026-05-27 09:53:17 +08:00
..
2026-05-21 16:31:43 +08:00
2026-03-24 09:23:06 +08:00
2026-04-20 11:03:22 +08:00
2024-12-18 21:16:37 +08:00