This repository is a fork of termux/proot adapted for Lyra Code. See README-zh-cn.md for the Chinese version.
master— kept fully in sync with upstreamtermux/prootmaster, with no local modifications.main— holds the adaptations made for Lyra Code.
Lyra Code first integrated PRoot functionality in version 3.7.0 using the prebuilt binaries published by RikkaHub. To eliminate the uncertainty of depending on a third-party build, starting with version 3.7.1 Lyra Code switched to a self-built PRoot library. The RikkaHub prebuilt binaries are retained as a backup in the Lyra Code source repository so that a rollback remains possible, but they are no longer packaged into the APK.
The bundled talloc-2.5.0 is not part of the PRoot modifications. Talloc 2.5.0
is distributed under the LGPLv3 license (see talloc-2.5.0/LICENSE); it is
vendored here so that the build can use a tested talloc.h header without
fetching sources at build time.
The repository already includes the vendored talloc dependency. You only need
cmake and ninja, plus an Android NDK toolchain (the build targets
arm64-v8a + x86_64 / Android API 24):
cmake -S android -B build/android-arm64 -G Ninja `
-DCMAKE_TOOLCHAIN_FILE=<ndk>/build/cmake/android.toolchain.cmake `
-DANDROID_ABI=arm64-v8a `
-DANDROID_PLATFORM=android-24
cmake --build build/android-arm64The build produces the executable PRoot ELF and its freestanding loader with
the .so names expected by Lyra's packaging:
dist/libproot_exec.sodist/libproot_loader.so
See android/README.md and android/RIKKAHUB_COMPARISON.md for details and the comparison against the RikkaHub binaries.
- Upstream termux/proot and
PRoot: GPLv2-or-later (see
COPYING). - Modifications in this fork: distributed under the GPLv3 license (see
LICENSE). - Bundled
talloc-2.5.0: LGPLv3 (seetalloc-2.5.0/LICENSE).
See android/README.md for the Lyra .3 dual-ABI build, five upstream fixes through d4d2a19, and Android runtime regression checks.