Skip to content

cccodroid v0.8.0

Choose a tag to compare

@greyoak111 greyoak111 released this 24 Nov 07:03

简体中文 · English

重构更新与通知检查机制,全面收口 targetSdk 36 执行层、压缩包大包与安全边界、宿主升级防误报及队列并发生命周期。

更新与远程通知机制重构

  • 只读状态与联网检查彻底解耦:应用切回前台与账户菜单加载改为纯只读状态查询(upd_status),不再隐式触发后台联网检查;拆分 lastAutoCheck 并将启动自动检查节流扩至 10 分钟,并发检查共享 checkedOnce 防抢跑,关闭弹窗即释放 noticeHold 避免远程公告卡滞。
  • 配置引导直达:欢迎页 Setup Guide 与未配置接口时的 503 提示支持携带子页参数一键直达「设置 → 接口」并在列表就绪后定位卡片。

targetSdk 36 执行层与宿主自愈加固

  • 原生垫片与启动环境修复:exec-shim.c 改用对齐安全的 newfstatat 权限位核验(替代 targetSdk 36 W^X 下被 SELinux 拦截的 faccessat(X_OK)),pre/adb 移除 [ -x ] 误判,bin/claude 延至 exec 紧前清理 LD_PRELOAD,Env.proc() 统一注入 TERMUX_EXEC__PROC_SELF_EXE。
  • 升级零误报与残留网关精准回收:AppFiles.ensureSynced() 以同步锁串行化铺包与校验,消除应用升级瞬间 MainActivity 与 GatewayService 并发触发的「文件被改动」假警报;新增 .gateway.pid(核对第 22 字段 starttime)跨重启收割不可转储旧网关;子进程全面剥离 CCAPP_TOKEN_FILE。

压缩包、安全封口与调度生命周期

  • 大包解压预览与安全扫描:已存在目标目录(如 /storage/emulated/0)改为目录内就地暂存合并,新增 1 秒磁盘余量看门狗(ENOSPC 优先)、悬空/软链目标拦截(403)、源树内目录软链防环凭据排查与关机 7zz 清理;列目录限 60 秒超时,解压与单文件预览不设硬超时并恢复 256 MB 目录输出上限以支持数十万条目大包。
  • 安全封口与 overlayfs 兼容:插件封口在任意深度排除 .mcp.json / .lsp.json 并剔除清单钩子,补齐 .claude/commands 钩子扫描、文件读取 O_NOFOLLOW + dev/ino 复核及本地协议桥配置在 overlayfs 下的 ctimeNs 漂移豁免。
  • 队列车道、附图与前端收口:新会话独立车道防串注,定时任务忙等仅统计可立即起跑的未阻塞车道(不再被运行中会话的同车道续问拖满 30 分钟);支持带空格引号图片路径 @"..." 提取与历史去重;补齐 goalStateOfAsync 缓存指纹一致性、usageImport 单文件坏损容错及切页轮询生命周期收口。

说明

  • 全量测试通过(网关与前端测试套件、Java 宿主单测、原生垫片无警告编译及九语 3,119 条词典 100% 校验)。
  • 升级不会改动已有会话、设置和档案。

安装

下载 cccodroid.apk 安装(系统提示「与此版本的安卓不兼容」、装不上时,改装 cccodroid-36.apk)。首次打开先勾选要装的工具包模块(默认约 330 MB,全部约 700 MB,断点续传),再下载官方 Claude Code(约 275 MB)。

校验

  • cccodroid.apk sha256:016e2cd463f8ddaa8004426989fc46409c9be156fb45bd88ff3c68c4cb4a0095
  • cccodroid-36.apk(targetSdk 36)sha256:dd0a5bfcd7e328b627630ec0944e5087b35652eb9e4766ccf65db7c3b223e4e2
  • 配套开发工具包:devkit-2026.11.21.2
  • 源码提交:16895d5678a65a946d5827cfc4298a3948a4e51e

English

Overhauls update and notice check lifecycles, and comprehensively hardens targetSdk 36 execution, large-archive extraction and security boundaries, host upgrade synchronization, and queue concurrency.

Update & Remote Notice Overhaul

  • Read-only status decoupled from network checks: Returning to the foreground and opening the account menu now query read-only upd_status without triggering implicit network update checks; split lastAutoCheck with a 10-minute foreground throttle, guarded concurrent checks via checkedOnce, and released noticeHold immediately on overlay close so remote notices never stall.
  • Direct provider setup routing: Tapping the welcome Setup Guide or hitting an unconfigured 503 now forwards sub-tab arguments directly to Settings → Provider after providers finish loading.

targetSdk 36 Execution & Host Self-Healing

  • Native shim & launcher alignment: Replaced faccessat(X_OK) (blocked on app_data_file under targetSdk 36 W^X SELinux) in exec-shim.c with alignment-safe newfstatat mode-bit checks, switched pre/adb to [ -f ], deferred unset LD_PRELOAD in bin/claude until right before exec, and injected TERMUX_EXEC__PROC_SELF_EXE in Env.proc().
  • Race-free upgrades & gateway reaping: Added atomic AppFiles.ensureSynced() locking to eliminate false tamper alerts when MainActivity and GatewayService race during app upgrades; persisted .gateway.pid with /proc/<pid>/stat field-22 starttime verification to reap non-dumpable leftover gateways across restarts; stripped CCAPP_TOKEN_FILE from helper subprocesses.

Archiver, Security Seals & Queue Lifecycle

  • Large-archive support & secret safety: Existing extraction destinations (such as /storage/emulated/0) now stage inside the target folder, backed by a 1-second ENOSPC free-space watchdog, symlink/dangling-symlink destination rejection (403), cycle-safe directory-symlink secret scanning, and shutdown 7zz cleanup; directory listing keeps a 60s timeout for /api/arc/list, while extraction and single-entry preview run without a hard listing timeout and restore the 256 MB listing cap for multi-hundred-thousand-entry archives.
  • Seal hardening & overlayfs compatibility: Excluded .mcp.json / .lsp.json at any plugin depth and stripped manifest hooks, added .claude/commands hook scanning and O_NOFOLLOW + dev/ino verification, and exempted volatile overlayfs ctimeNs checks in managed bridge configs.
  • Lane-aware scheduling, spaced image refs & UI lifecycle: Isolated new-session lanes against accidental mid-turn injection and aligned scheduled-task busySlots with runnableQueueCount() so queued follow-ups on an already-running session no longer block schedules for 30 minutes; added @"/path/with space.png" inline image parsing and deduplication, goalStateOfAsync fingerprint cache parity, per-file usageImport fault tolerance, and page/visibility polling cleanup.

Notes

  • Full test suite passes (gateway/frontend tests, Java host tests, zero-warning native shim compilation, and all 9 language dictionaries with 3,119 entries).
  • Upgrading does not touch existing sessions, settings, or archives.

Install

Download and install cccodroid.apk (if Android says it isn’t compatible and won’t install it, use cccodroid-36.apk instead). On first launch you pick toolchain modules (about 330 MB by default, about 700 MB for all, resumable), then the official Claude Code is downloaded (about 275 MB).

Verification

  • cccodroid.apk sha256: 016e2cd463f8ddaa8004426989fc46409c9be156fb45bd88ff3c68c4cb4a0095
  • cccodroid-36.apk (targetSdk 36) sha256: dd0a5bfcd7e328b627630ec0944e5087b35652eb9e4766ccf65db7c3b223e4e2
  • Matching toolchain: devkit-2026.11.21.2
  • Source commit: 16895d5