Zygisk Assistant

snake-4

Magisk KernelSU APatch
v2.1.4
Version
949.70 KB
Size
Feb 23, 2025
Updated

Module Info

  • Contributors snake-4, Yervant7, RipperHybrid, osm0sis, VisionR1
  • Source Code View Repository
  • Tags
    #Zygisk #Root Hide #DenyList #Magisk Module #KernelSU #APatch #snake-4

About this module

Zygisk Assistant by snake-4 is a Zygisk module that hides root and Zygisk from the apps you choose. It works with KernelSU, Magisk and APatch on Android 5.0 and newer, by removing root-related mounts from those apps before they start. It's open source under the MIT license.

How it hides root

It works per app, just before the app starts running.

Only touches target apps

It acts on user apps that are on the deny list (or set to unmount in your manager), and skips apps granted root and system processes. Other apps keep seeing your modules as normal.

New mount namespace

It gives the app its own mount namespace, because Android's use of unshare differs between versions. Changes there don't affect the rest of the system.

Unmounts root traces

It removes mounts from or to /data/adb and /debug_ramdisk, overlays that use those folders, and overlay or tmpfs mounts whose source is KSU, APatch, magisk or worker.

Hides Zygisk

It then hides Zygisk's traces in the app and asks Zygisk to unload the module's library from that process, so the module itself isn't left behind.

Setup for your root manager

Root managerWhat to do
KernelSU and APatchInstall Zygisk Next. Enable Umount modules or Exclude modifications for the target app in the manager. Disable Enforce DenyList in Zygisk Next, if it has that setting.
MagiskUpdating to 27.0 or newer is optional, but gives better hiding. Turn on Zygisk, and turn off Enforce DenyList. Add the target app to the deny list, unless your Magisk fork uses a whitelist.

Enforce DenyList has to stay off because the module does the unmounting itself. The zip includes builds for arm, arm64, x86 and x86_64.

What the scripts change

Besides the Zygisk library, the module has two boot scripts that hide common signs of an unlocked or modified device. They use resetprop, and only change a value when it differs.

ScriptExamples of what it sets
post-fs-data.shro.boot.warranty_bit and similar to 0, ro.boot.realmebootstate to green, ro.is_ever_orange to 0, build tags to release-keys, build type to user, ro.adb.secure to 1
service.shBoot mode properties that say recovery to unknown, ro.boot.selinux to enforcing

If SELinux is permissive, service.sh also restricts access to /sys/fs/selinux/enforce and /sys/fs/selinux/policy. Credit for the property scripts goes to osm0sis.

Some properties are deleted as well. To stop that, create an empty file called skipdelprop in the module folder.

Limits

  • It's a root-hiding module only. It doesn't help you pass Play Integrity, which is handled by other modules.
  • Detection methods change over time, so don't assume any particular app will stop seeing root.
  • If the module can't reach its Zygisk companion process, it logs a warning and works with limited functionality.

Recent changes

  • v2.1.4 (February 2025): fixed a problem that made the module detectable, updated the property scripts, and moved to a newer compiler.
  • v2.1.3 (August 2024): restored compatibility with Shamiko v1.1.1, and fixed a bootloop on some Xiaomi devices.
  • v2.1.2 (August 2024): added the scripts that reset sensitive properties.

v2.1.4 is still the latest release, though the repo has been updated since then.