Add `--system-server-max-retry` argument in service mode (#511)

User reports that system server injection can still fail even when the daemon is started in service mode.

Hence, we add argument `--system-server-max-retry=3` to address this problem.
This commit is contained in:
JingMatrix 2026-01-21 23:24:38 +01:00 committed by GitHub
parent 4cec46a074
commit e893bb0f28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -22,4 +22,4 @@ MODDIR=${0%/*}
cd "$MODDIR" cd "$MODDIR"
# To avoid delaying the normal mount timing of zygote, we start LSPosed service daemon in late_start service mode instead of post-fs-data mode # To avoid delaying the normal mount timing of zygote, we start LSPosed service daemon in late_start service mode instead of post-fs-data mode
unshare --propagation slave -m sh -c "$MODDIR/daemon $@&" unshare --propagation slave -m sh -c "$MODDIR/daemon --system-server-max-retry=3 $@&"