fix(ncm): 设备无系统 CA → App 自带 Mozilla CA bundle(cacert.pem) 显式指给 core HTTP 层;真机验证 unikey ok/QR ready(修复 rc=-5 TLS 错误)

This commit is contained in:
MeowOS committed 2026-08-31 08:06:41 +08:00
1 parent f806395dbe
commit 4199dc77ea
3 files changed
+3003

No files matched your search

+3
View File
@@ -96,6 +96,9 @@ int main(void)
/* 应用数据/核心库上下文(cookie/deviceId/cache/设置) */ /* 应用数据/核心库上下文(cookie/deviceId/cache/设置) */
appstate_init(); appstate_init();
/* M2.82-联调修复:设备无系统 CA 库(真机 rc=-5 TLS 错误根因)——App 自带 Mozilla CA bundle,
* 显式指给 core HTTP 层(保持 verify=1,不降级为不校验) */
ncm_http_set_verify_default(1, "/usr/data/mnt/sd_0/MeowAPPs/os.meow.ncm/cacert.pem");
/* 播放 + 媒体会话线程(UI 不卡;无 launcher socket 时 ipc 优雅跳过) */ /* 播放 + 媒体会话线程(UI 不卡;无 launcher socket 时 ipc 优雅跳过) */
player_manager_start(); player_manager_start();
File diff suppressed because it is too large. Load diff
Binary file not shown.