[core] Fix deamon name & fix daemon exit (#668)
This commit is contained in:
parent
1e31479d20
commit
550eacfccb
|
|
@ -135,4 +135,4 @@ if [ ! -z "${MISC_PATH}" ]; then
|
|||
start_log_catcher all "LSPosed:V XSharedPreferences:V LSPosed-Bridge:V LSPosedManager:V LSPosedService:V *:F" true ${LOG_VERBOSE}
|
||||
fi
|
||||
|
||||
nohup /system/bin/app_process -Djava.class.path=$(magisk --path)/.magisk/modules/riru_lsposed/framework/lspd.dex /system/bin org.lsposed.lspd.core.Main --nice-name=lspd >/dev/null 2>&1
|
||||
nohup /system/bin/app_process -Djava.class.path=$(magisk --path)/.magisk/modules/riru_lsposed/framework/lspd.dex /system/bin --nice-name=lspd org.lsposed.lspd.core.Main >/dev/null 2>&1
|
||||
|
|
|
|||
|
|
@ -20,4 +20,4 @@
|
|||
#
|
||||
|
||||
# post-fs-data.sh may be blocked by other modules. retry to start this
|
||||
nohup /system/bin/app_process -Djava.class.path=$(magisk --path)/.magisk/modules/riru_lsposed/framework/lspd.dex /system/bin org.lsposed.lspd.core.Main --nice-name=lspd --from-service >/dev/null 2>&1
|
||||
nohup /system/bin/app_process -Djava.class.path=$(magisk --path)/.magisk/modules/riru_lsposed/framework/lspd.dex /system/bin --nice-name=lspd org.lsposed.lspd.core.Main --from-service >/dev/null 2>&1
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class ServiceManager {
|
|||
|
||||
// call by ourselves
|
||||
public static void start(String[] args) {
|
||||
if (!ConfigManager.getInstance().tryLock()) return;
|
||||
if (!ConfigManager.getInstance().tryLock()) System.exit(0);
|
||||
|
||||
android.os.Process.killProcess(android.system.Os.getppid());
|
||||
for (String arg : args) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue