Repository navigation
cccodroid v0.8.0
简体中文 · 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.apksha256:016e2cd463f8ddaa8004426989fc46409c9be156fb45bd88ff3c68c4cb4a0095cccodroid-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_statuswithout triggering implicit network update checks; splitlastAutoCheckwith a 10-minute foreground throttle, guarded concurrent checks viacheckedOnce, and releasednoticeHoldimmediately on overlay close so remote notices never stall. - Direct provider setup routing: Tapping the welcome Setup Guide or hitting an unconfigured
503now 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 onapp_data_fileunder targetSdk 36 W^X SELinux) inexec-shim.cwith alignment-safenewfstatatmode-bit checks, switchedpre/adbto[ -f ], deferredunset LD_PRELOADinbin/claudeuntil right beforeexec, and injectedTERMUX_EXEC__PROC_SELF_EXEinEnv.proc(). - Race-free upgrades & gateway reaping: Added atomic
AppFiles.ensureSynced()locking to eliminate false tamper alerts whenMainActivityandGatewayServicerace during app upgrades; persisted.gateway.pidwith/proc/<pid>/statfield-22starttimeverification to reap non-dumpable leftover gateways across restarts; strippedCCAPP_TOKEN_FILEfrom 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-secondENOSPCfree-space watchdog, symlink/dangling-symlink destination rejection (403), cycle-safe directory-symlink secret scanning, and shutdown7zzcleanup; 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.jsonat any plugin depth and stripped manifest hooks, added.claude/commandshook scanning andO_NOFOLLOW+dev/inoverification, and exempted volatile overlayfsctimeNschecks 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
busySlotswithrunnableQueueCount()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,goalStateOfAsyncfingerprint cache parity, per-fileusageImportfault 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.apksha256:016e2cd463f8ddaa8004426989fc46409c9be156fb45bd88ff3c68c4cb4a0095cccodroid-36.apk(targetSdk 36) sha256:dd0a5bfcd7e328b627630ec0944e5087b35652eb9e4766ccf65db7c3b223e4e2- Matching toolchain: devkit-2026.11.21.2
- Source commit: 16895d5