Felix
0a603116ef
Merge branch 'dev' into fix/image-scan-helper-entitlement
...
解决冲突:在 dev 最新 Mach API 内存扫描方案基础上,保留 image_scan_helper
子进程作为优先路径(有 debugger entitlement),Mach API 作为 fallback。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 22:42:59 +11:00
Felix
bff9e87096
fix: 图片密钥内存扫描通过子进程调用解决 task_for_pid 权限问题
...
Electron 进程缺少 com.apple.security.cs.debugger entitlement,
导致 ScanMemoryForImageKey 中的 task_for_pid 调用失败(kr=5)。
新增 image_scan_helper 子进程包装程序(与 xkey_helper 方案一致):
- 新建 resources/image_scan_helper.c:dlopen libwx_key.dylib 并调用
ScanMemoryForImageKey,通过 JSON stdout 返回结果
- 新建 resources/image_scan_entitlements.plist:包含 debugger 和
allow-unsigned-executable-memory entitlements
- 编译为 universal binary(x86_64 + arm64)并 ad-hoc 签名
- 修改 keyServiceMac.ts _scanMemoryForAesKey():优先 spawn
image_scan_helper 子进程,失败时 fallback 到直接调 dylib
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 15:18:52 +11:00
superclaw
5daa7bce73
feat: update app logic and add unsigned mac arm64 dmg action
2026-03-12 22:56:09 +08:00
hicccc77
0e42c19d3b
feat(mac): implement WeChat PID detection and pass to helper
2026-03-12 20:46:10 +08:00
superclaw
8e0c3306e8
feat: macOS 接入 xkey_helper 并完善密钥获取与诊断
2026-03-11 23:06:20 +08:00
hicccc77
2f32c8e092
fix: koffi 自动转换字符串,无需 decode
2026-03-10 23:44:06 +08:00
hicccc77
d101a79bf8
debug: 添加详细日志输出
2026-03-10 23:36:32 +08:00
hicccc77
caea10a190
feat: 添加详细错误信息
...
- 区分进程未找到、附加失败、扫描失败
- 提示权限解决方案
2026-03-10 23:30:11 +08:00
hicccc77
6f62ac4ffb
fix: 修正 koffi decode 调用方式
...
- 使用 'string' 而非 'char' 类型
- 移除调试代码
2026-03-10 23:18:11 +08:00
hicccc77
78b6d445fa
feat: 添加进程调试信息
...
- 显示找到的 WeChat 进程列表
- 更新 dylib 支持多进程名
- 帮助诊断附加失败问题
2026-03-10 23:01:58 +08:00
hicccc77
8bee66d404
feat: macOS 密钥获取完整实现
...
- KeyServiceMac 实现内存扫描
- 复刻 Windows 的图片密钥扫描逻辑
- 使用 Xkey dylib 的 ScanMemoryForImageKey
- 更新 libwx_key.dylib (102KB)
2026-03-10 22:43:47 +08:00