NyaZygisk Author: NkBe Branch: master Run: #ci_217 chore(loader): bump YukiPLT to 192e931 Updates loader/src/external/yukiplt from 289d10b to 192e931: - a811e6c: feat: support riscv64 - bb32ba7: fix: support anchored negative load bias and narrow version tags - 192e931: fix: zero-extend 32-bit dynamic tag values before widening Co-authored-by: Anan <[email protected]> Commit Workflow run
Open in TelegramPosts of NyaZygisk
NyaZygisk Author: NkBe Branch: master Run: #ci_216 chore(loader): bump YukiPLT to 289d10b Pick up upstream scan, image/session/rule and hook-transaction performance work plus the additive batch-select and bulk-target ABI. Public C ABI used by zn_hook is unchanged. Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_215 refactor(ptracer,module): move shell stage scripts into C++ stage.cpp (#81) Refactors NyaZygisk boot/lifecycle shell scripts into C++ stage/status subcommands in zygisk-ptrace, upgrades REARM to lightweight synchronous replies, hardens injector icache flush in clean.cpp, and defers spoof-props.sh resetprop until sys.boot_completed=1 (Fixes #82). Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_210 fix(module,ptracer): ignore inherited ZYGISK_ENABLED across soft reboot Fixes #80: NyaZygisk sets ZYGISK_ENABLED=1 inside the root manager app (PROCESS_IS_MANAGER). When a soft reboot or hot install is triggered from the manager app while NyaZygisk is active, su and ksud inherit ZYGISK_ENABLED=1 and pass it to post-fs-data.sh, post-mount.sh, service.sh, and hotinstall.sh. Bare 'if [ "$ZYGISK_ENABLED" ]' mistook that inherited variable for Magisk's built-in Zygisk and exited immediately after emulated-soft-reboot.sh had already stopped the old monitor, causing every other soft reboot to fail alternately. - Stand down for ZYGISK_ENABLED only when neither KSU nor APATCH is set and magisk is present on PATH. - Unlink init_monitor im... Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_209 fix(ptracer,module): unlink control socket on exit and retry PTRACE_SEIZE across soft reboot Fixes #80: when ksud's 5s emulated-soft-reboot stage timeout expires before the old monitor finishes tearing down (e.g. slow disk sync inside update_status() during request_exit()), post-fs-data starts the new monitor while the exiting monitor still holds init_monitor open. The new monitor's monitor_is_running() check saw connect()==0 and exited immediately, leaving module.prop permanently stuck at 'monitor_status=exited / zygote_64_status=unknown / daemon_64_status=running'. - Unlink init_monitor immediately inside AppMonitor::request_exit() before writing monitor_status=exited so an incoming monitor never mistakes an exiting instance f... Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_208 fix(module): require reboot on normal installs/updates and harden soft-reboot teardown - Gate MODULE_HOT_INSTALL_REQUEST in customize.sh strictly on temp-root fresh installs (KSU_LATE_LOAD=1 and no existing /data/adb/modules/$MODID). In-place upgrades and normal installs now require a reboot instead of leaving zygote running with the previous libzygisk.so mismatched against a new daemon IPC protocol. - Add SIGTERM/SIGKILL fallback by executable path in emulated-soft-reboot.sh when 'ctl exit' cannot reach an old monitor (e.g. across a workdir change or hung socket), preventing the old monitor from keeping PID 1 seized across soft reboot. Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_207 perf(build): shrink release zip via Rust build-std, proper C++ linker flags, and dropping unused libbytehook.so - Drop anyhow backtrace feature and enable -Zbuild-std=std,panic_abort with -Zunstable-options -Cpanic=immediate-abort, -C force-unwind-tables=no, and lld --gc-sections/--icf=safe/--pack-dyn-relocs=android for release zygiskd across all 4 ABIs. - Pass C++ release linker flags via CMAKE_SHARED_LINKER_FLAGS / CMAKE_EXE_LINKER_FLAGS instead of cFlags/cppFlags so lld actually applies --gc-sections, --icf=safe, --exclude-libs,ALL, and --pack-dyn-relocs=android. - Exclude unused libbytehook.so from module zip packaging (libzygisk.so already links bytehook_static). Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_206 fix(build): use -Zunstable-options -Cpanic=immediate-abort for nightly Rust Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_204 chore(module,webui): drop legacy workdir migration and simplify ColorOS display Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_203 fix(webui): report OPlus ROM as ColorOS instead of OxygenOS Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_200 fix(sepolicy): restore system_server execmem for Zygisk module compatibility Zygisk modules running in system_server such as HMA-OSS (via PanamaPort/AndroidVMTools) allocate ART hook trampolines with anonymous mmap + mprotect(PROT_EXEC) and do not ship their own sepolicy.rule, failing with EACCES when LSPosed is not installed. Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_195 fix(sepolicy,zn): drop system_server execmem and narrow broad domain rules - Remove 'allow system_server system_server process execmem' probed by DirtySepolicy 2.2. - Fall back to a closed memfd ('jit-cache') RX mapping in zn::hook::StubPool when anonymous mprotect(PROT_READ|PROT_EXEC) is denied, backed by system_server_tmpfs / self:memfd_file. - Remove unused 'zygisk_file dir' rule and narrow broad 'allow domain ...' rules to zygote and system_server. Commit Workflow run
Open in Telegramhttps://github.com/HSSkyBoy/NyaZygisk/pull/77 2ddf91d: feat(module): migrate spoof.prop to workdir and apply two-stage resetprop e10a260: fix(loader): resolve P0 crashes in IPC, resident ZN/ByteHook unmap, and specialization f3d9900: fix(linker): add 16KB page compat mode, fix REL addends, and prevent registry deadlocks 968adb3: fix(ptracer): prevent ERESTARTNOHAND crash, fix crash-loop detector, and harden… 58f36b3: fix(daemon): eliminate accept/fork/companion deadlocks and harden IPC security ad72540: Ship sepolicy.rule without its comments 95e95d7: fix(zn): support multi-module chained inlineHook and pltHook on the same target
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_192 fix(zn): support multi-module chained inlineHook and pltHook on the same target Commit Workflow run
Open in TelegramAt the current stage, NyaZygisk still has many areas that need improvement. To comprehensively enhance the overall health of the architecture, the next few version updates will primarily focus on "system stability and security optimization," supplemented by tasks such as "environment hiding enhancement" and "multi-environment adaptation." The relevant optimization work is steadily progressing. Please look forward to future updates.
Open in TelegramThis update resolves a critical issue where modules caused system service crashes under specific circumstances (such as MediaProvider loop crashes leading to the failure of /sdcard and FUSE): * Fixed segment fault (Crash) issues in resident modules: When custom linker modules (such as LSPosed) are resident in memory, libzygisk.so no longer unloads itself (munmap), preventing SEGV_ACCERR crashes triggered by dangling pointers when modules call dlsym or perform exception unwinding. * Enhanced memory anonymization and thread safety: As long as libzygisk.so remains resident, its memory mappings are forcibly anonymized and hidden, and a global lock is applied during memory remapping (mremap) to prevent data corruption caused by multi-threaded race conditions. * Other low-level detail fixes: Adjusted the registration timing of module constructors, improved nulling handling after pointer release, and added relevant low-level test cases.
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_187 fix(loader): always anonymize resident libzygisk.so and lock image registry during it Anonymize libzygisk.so whenever it stays mapped (not only when should_spoof_maps), and hold g_images_lock across the copy-and-mremap so a resident module's interposed dl_* call cannot write our .data mid-copy. Commit Workflow run
Open in TelegramNyaZygisk Author: NkBe Branch: master Run: #ci_186 fix(hotinstall): do not restart zygote on hot install Arm the new monitor and inform the user instead of triggering a framework restart (stop; start). Commit Workflow run
Open in Telegram