Skip to content

v5.2.1 — UniRoot Next: Fix LSPosed & Vector (Zygisk) Startup + KernelSU-Next 3.4.2 Service/Soft-Reboot Pipeline

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:34
· 9 commits to main since this release
v5.2.1
0dc9938

What's New in v5.2.1

Root Cause Fixes for LSPosed, Vector (Zygisk), and Module Mounts

  • Fix KSU_IOCTL_REPORT_EVENT (EVENT_SERVICES = 4) in all 8 Samsung KDP/DEFEX KernelSU-Next modules (android12-5.10 → android17-6.18):
    • KernelSU-Next v3.4.2 (UAPI v5) checks that ioctl(KSU_IOCTL_REPORT_EVENT, &4) returns 1 inside on_services() before executing /data/adb/service.d/*.sh and module service.sh scripts.
    • Previously, do_report_event returned 0 (mov w0, wzr) for event == 4, causing ksud 3.4.2 to log "services already started, skipping" and skip all service.sh scripts (preventing LSPosed's lspd daemon and Vector's service stage from starting).
    • Patched do_report_event across all 8 df/samsung-ko/*_kernelsu.ko modules (and s26u-zzhk-next / zfold8-next profile modules) to return 1 (mov w0, #1) and re-embedded all 8 modules into 3.4.2-kdp-samsung, ksud-new-next, and ghostsam/payloads/ksud/ksud-next.
  • Fix KernelSU-Next late-load private mount namespace & emulated_soft_reboot transition:
    • DirtyFrag (libexpnext.so) runs unshare(CLONE_NEWNS) and mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) before bind-mounting ksud over /system/bin/logcat.
    • Because upstream ksud late-load did not call switch_mnt_ns(1) (/proc/1/ns/mnt), did not call on_post_fs_data() (EVENT_POST_FS_DATA = 1, ksu_observer_init, post-fs-data.sh), and did not run emulated_soft_reboot, module overlays (metamount.sh) were mounted inside a disposable private mount namespace and Zygisk (Vector / Zygisk Next / ReZygisk) + LSPosed post-fs-data.sh never hooked Zygote.
    • Patched ksud Next 3.4.2-kdp-samsung and 3.4.0-kdp-samsung (and the in-app DfKsudUpdater patcher) so late-load transitions into emulated_soft_reboot (switch_mnt_ns(1) → stop → on_post_fs_data → start → on_services → on_boot_completed) when Auto soft reboot is enabled (toggled dynamically in DFBridge.stageKsud).
    • Removed the broken unprivileged su -c "setprop ctl.restart zygote" workaround from MainActivity, allowing soft-reboot to work reliably as root in both manual root and boot auto-root (DfBootService) without a prior Superuser grant.

App Branding & Other Fixes

  • App renamed to UniRoot Next: Updated app launcher name, top bar title, bottom tab switcher, notifications, dialogs, and logs to UniRoot Next.
  • Credits & UI: Updated credits and repository links in-app (About dialog & home footer) and in README.md to MahanYTT (MahanYTT/UniRoot-Next).
  • Fix 3.3.0-s938x-proven profile staging: Route 3.3.0-s938x-proven through ksud-wrapper-next.sh in DFBridge.stageKsud so /data/local/tmp/.ksud-stage is created and bind-mounted over /system/bin/atrace.
  • Auto-purge stale dynamic ksud-next profiles on upgrade: KsudNextProfiles now tracks KO_PATCH_REV and purges stale on-device dynamic profiles built with older .ko revisions so upgrading users immediately use the fixed 3.4.2-kdp-samsung profile.
  • Restore "Already updated" check in DfKsudUpdater: Prevents redundant downloads when the latest GitHub release is already patched with the current .ko revision.