From be2342194c6c3faabbd259ba67a69aaa9b12c6df Mon Sep 17 00:00:00 2001 From: Keeperorowner Date: Thu, 31 Oct 2024 22:02:28 +0800 Subject: [PATCH] Add action.sh to open LSPosed manager (#74) * Update customize.sh * Create action.sh * Keep WebUI as fallback --------- Co-authored-by: JingMatrix --- magisk-loader/magisk_module/action.sh | 4 ++++ magisk-loader/magisk_module/customize.sh | 1 + 2 files changed, 5 insertions(+) create mode 100644 magisk-loader/magisk_module/action.sh diff --git a/magisk-loader/magisk_module/action.sh b/magisk-loader/magisk_module/action.sh new file mode 100644 index 00000000000..42359ce19ac --- /dev/null +++ b/magisk-loader/magisk_module/action.sh @@ -0,0 +1,4 @@ +DEFAULT_MANAGER_PACKAGE_NAME=org.lsposed.manager +INJECTED_PACKAGE_NAME=com.android.shell + +am start -c "${DEFAULT_MANAGER_PACKAGE_NAME}.LAUNCH_MANAGER" "${INJECTED_PACKAGE_NAME}/.BugreportWarningActivity" diff --git a/magisk-loader/magisk_module/customize.sh b/magisk-loader/magisk_module/customize.sh index fc35ebfeabe..5db192671a1 100644 --- a/magisk-loader/magisk_module/customize.sh +++ b/magisk-loader/magisk_module/customize.sh @@ -72,6 +72,7 @@ fi ui_print "- Extracting module files" extract "$ZIPFILE" 'module.prop' "$MODPATH" +extract "$ZIPFILE" 'action.sh' "$MODPATH" extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH" extract "$ZIPFILE" 'service.sh' "$MODPATH" extract "$ZIPFILE" 'uninstall.sh' "$MODPATH"