System-level KernelSU module: aapt2/aidl/zipalign (API 35), BusyBox, platform-tools, all as static arm64 binaries in the Android framework. Termux integration for Java/Kotlin/Gradle/Python via pkg. CLI tools: buildchain, bc-build, bc-sign. WebUI on :8089 for toolchain management. Turns any Android phone into a native compilation powerhouse.
16 lines
497 B
Bash
Executable File
16 lines
497 B
Bash
Executable File
#!/system/bin/sh
|
|
CONFIG_DIR="/data/adb/buildchain"
|
|
PID_FILE="$CONFIG_DIR/webui.pid"
|
|
TERMUX_BIN="/data/data/com.termux/files/usr/bin"
|
|
TERMUX_ETC="/data/data/com.termux/files/usr/etc"
|
|
|
|
[ -f "$PID_FILE" ] && kill $(cat "$PID_FILE") 2>/dev/null
|
|
|
|
# Remove Termux symlinks
|
|
for tool in aapt aapt2 aidl dexdump zipalign split-select buildchain buildchain-setup bc-build bc-sign; do
|
|
rm -f "$TERMUX_BIN/$tool" 2>/dev/null
|
|
done
|
|
rm -f "$TERMUX_ETC/profile.d/buildchain.sh" 2>/dev/null
|
|
|
|
rm -rf "$CONFIG_DIR"
|