You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Abandon action.sh in KernelSU and Apatch. Magisk: redirect to WebUI with action button if installed KSU WebUI. Add KSU WebUI standalone automated installation script (optional).
28 lines
719 B
Bash
28 lines
719 B
Bash
URL="https://github.com/5ec1cff/KsuWebUIStandalone/releases/download/v1.0/KsuWebUI-1.0-34-release.apk"
|
|
APK_DIR="$COMPATH"
|
|
LOG_FILE="$COMPATH/webuiError.log"
|
|
|
|
find_busybox
|
|
check_wget
|
|
|
|
echo "- Downloading the WebUI apk..."
|
|
download_webui
|
|
echo "- Download complete."
|
|
|
|
APK_PATH=$(find "$APK_DIR" -type f -name "*.apk" | head -n 1)
|
|
if [ -z "$APK_PATH" ]; then
|
|
echo "Error: No APK file found in $APK_DIR."
|
|
exit 1
|
|
fi
|
|
|
|
echo "- Installing..."
|
|
install_webui
|
|
echo "- Done."
|
|
rm -f "$APK_PATH"
|
|
echo "- Launching..."
|
|
am start -n "${PACKAGE_NAME}/.WebUIActivity" -e id "$MODID" </dev/null 2>&1 | cat
|
|
if [ $? -ne 0 ]; then
|
|
echo "Error: Failed to start application."
|
|
exit 1
|
|
fi
|
|
echo "- Application launched successfully." |