Skip to content

Commit a51eb4d

Browse files
committed
misc: use my fork
require 32234 ksu or 11159 apatch for working pm api close #92
1 parent 9a1bc92 commit a51eb4d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

module/action.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ APK_PATH="$TMP_DIR/base.apk"
1111
manual_download() {
1212
echo "$1"
1313
sleep 3
14-
am start -a android.intent.action.VIEW -d "https://github.com/5ec1cff/KsuWebUIStandalone/releases"
14+
am start -a android.intent.action.VIEW -d "https://github.com/KOWX712/KsuWebUIStandalone/releases"
1515
exit 1
1616
}
1717

@@ -27,7 +27,7 @@ download() {
2727

2828
get_webui() {
2929
echo "- Downloading KSU WebUI Standalone..."
30-
API="https://api.github.com/repos/5ec1cff/KsuWebUIStandalone/releases/latest"
30+
API="https://api.github.com/repos/KOWX712/KsuWebUIStandalone/releases/latest"
3131
ping -c 1 -w 5 raw.githubusercontent.com &>/dev/null || manual_download "! Error: Unable to connect to raw.githubusercontent.com, please download manually."
3232
URL=$(download "$API" | grep -o '"browser_download_url": "[^"]*"' | cut -d '"' -f 4) || manual_download "! Error: Unable to get latest version, please download manually."
3333
download "$URL" > "$APK_PATH" || manual_download "! Error: APK download failed, please download manually."
@@ -57,4 +57,4 @@ else
5757
get_webui
5858
fi
5959

60-
echo "- WebUI launched successfully."
60+
echo "- WebUI launched successfully."

module/customize.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ kb="$COMPATH/.default"
1010

1111
ui_print " "
1212
if [ "$APATCH" ]; then
13+
[ "$APATCH_VER_CODE" -ge 11159 ] || abort "! Unsupported APatch version, please update APatch to 11159 or higher"
1314
ui_print "- APatch:$APATCH_VER$APATCH_VER_CODE"
1415
ACTION=false
1516
elif [ "$KSU" ]; then
17+
[ "$KSU_VER_CODE" -ge 32234 ] || abort "! Unsupported KernelSU version, please update KernelSU to 32234 or higher"
1618
if [ "$KSU_NEXT" ]; then
1719
ui_print "- KernelSU Next:$KSU_KERNEL_VER_CODE$KSU_VER_CODE"
1820
else

0 commit comments

Comments
 (0)