本 App 内置了 Termux 的组件,均来自开源项目 https://github.com/termux/termux-app (Apache License 2.0)。 具体包含: 1. 终端模拟器源码 - android/app/src/main/java/com/termux/terminal/** - android/app/src/main/java/com/termux/view/** (来自 termux-app 的 terminal-emulator 与 terminal-view 模块,v0.118.3) 2. 原生库 - android/app/src/main/jniLibs//libtermux.so pty 支持(forkpty 等 JNI 实现),TerminalSession 依赖它 - android/app/src/main/jniLibs//libtermux-bootstrap.so 根文件系统(其实是个 zip,含 bash / apt / pkg 等 250+ 个可执行文件与 1146 条符号链接) 3. 安装逻辑 - android/app/src/main/java/com/doubao/lynxclone/termux/TermuxInstaller.kt (按 Termux 的 TermuxInstaller.java 移植:解压 + 用 sh 建符号链接) Apache License 2.0 全文见 https://www.apache.org/licenses/LICENSE-2.0 Copyright (c) 2013-2024 Termux contributors