Skip to content

Commit 6977a7c

Browse files
committed
scripts/action: launch webui
mostly for magisk user and ksu manager that hasn't support file upload yet
1 parent 3829c97 commit 6977a7c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

module/action.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
if pm path io.github.a13e300.ksuwebui >/dev/null 2>&1; then
4+
echo "- Launching WebUI in KSUWebUIStandalone..."
5+
am start -n "io.github.a13e300.ksuwebui/.WebUIActivity" -e id "KPatch-Next"
6+
echo "- WebUI launched successfully."
7+
else
8+
echo "! No WebUI app found"
9+
sleep 2
10+
am start -a android.intent.action.VIEW -d "https://github.com/KOWX712/KsuWebUIStandalone/releases"
11+
fi

0 commit comments

Comments
 (0)