hope2333.github.io / wiki

architecture


架构说明

移植管线

核心创新:将 OpenCode 的 JavaScript 模块图植入官方 Android Bun ELF,再执行「复活手术」产出单个 Bionic 可执行文件。

官方 Bun ELF → 提取 → 模块图插入 → 修补 → 组装 → 复活 → 可用二进制

Seccomp SIGSYS Shim

双层保护:

TUI(libopentui.so)

自构建 bionic libopentui.so(NDK 编译),通过 swap_tui.py 等长替换植入。

原生 Watcher

tools/watcher/ 提供独立文件监控守护进程:

包格式