Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zygisk/module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ esac
ui_print "- Device platform: $ARCH ($ABI32 / $ABI64)"

ui_print "- Extracting root module files"
for file in module.prop action.sh service.sh uninstall.sh sepolicy.rule framework/vector.dex cli daemon.apk daemon manager.apk; do
for file in module.prop action.sh service.sh emulated-soft-reboot.sh uninstall.sh sepolicy.rule framework/vector.dex cli daemon.apk daemon manager.apk; do
extract "$ZIPFILE" "$file" "$MODPATH"
done

Expand Down
12 changes: 12 additions & 0 deletions zygisk/module/emulated-soft-reboot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ksud runs this stage at the start of an emulated soft reboot, before `stop`.
# The daemon is detached from the service.sh that started it, so `stop` does not
# reach it while the same cycle runs service.sh again; without this, the second
# soft reboot leaves two daemons claiming the same proxy service name.

# -f is required: app_process sets the nice name in argv only, so comm stays
# "main" and `pkill vectord` matches nothing. The ^ anchor keeps the pattern
# from matching a shell whose own command line contains the word.
pids=$(pgrep -f '^vectord')
[ -n "$pids" ] && kill -9 $pids

exit 0
Loading