Skip to content

Commit

Permalink
module: Add action script for opening webui
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Jan 15, 2025
1 parent 763c5a3 commit 657df76
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions module/action.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
if [ -z "$MMRL" ] && [ ! -z "$MAGISKTMP" ]; then
pm path io.github.a13e300.ksuwebui >/dev/null 2>&1 && {
echo "- Launching WebUI in KSUWebUIStandalone..."
am start -n "io.github.a13e300.ksuwebui/.WebUIActivity" -e id "color_scheme"
exit 0
}
pm path com.dergoogler.mmrl >/dev/null 2>&1 && {
echo "- Launching WebUI in MMRL WebUI..."
am start -n "com.dergoogler.mmrl/.ui.activity.webui.WebUIActivity" -e MOD_ID "color_scheme"
exit 0
}
fi
echo "[!] Install KsuWebUI for WebUI access"
sleep 2
am start -a android.intent.action.VIEW -d https://github.com/5ec1cff/KsuWebUIStandalone/releases
exit 0

# EOF

0 comments on commit 657df76

Please sign in to comment.