Home / Guide / Zygisk

Zygisk and DenyList in Magisk: How They Work and When to Use Them

Zygisk lets modules work inside apps; the DenyList keeps chosen apps untouched. Here is what each one really does under the hood.

Zygote process with Zygisk connecting to app processes, some on the DenyList

Two features introduced together

Zygisk and the DenyList arrived in Magisk version 24 as a pair. Zygisk gave modules a supported way to run code inside Android app processes. The DenyList gave users a way to keep chosen apps free of Magisk changes. Together they replaced the older MagiskHide feature and the separate Riru framework that many modules had relied on.

Both features are switched off by default. Turning them on is a single toggle each, but understanding what they do helps you decide whether you need them at all, and how to troubleshoot them when an app behaves unexpectedly.

A quick lesson on Zygote

Android does not start every app from scratch. Early in boot it launches a process called Zygote, which loads the Android framework and common libraries once. When you open an app, Zygote forks, creating a copy of itself that already has the framework loaded, and that copy becomes the app. This is why apps start quickly and share memory efficiently.

Because every app begins life as a copy of Zygote, anything placed inside Zygote at the right moment can influence every app that follows. That is the opportunity Zygisk uses.

What Zygisk does

Zygisk, a name combining Zygote and Magisk, loads into the Zygote process during boot. When Zygote forks to create an app, Zygisk gives modules a chance to run code in the new process before and after Android specialises it into a particular app. Modules can then load libraries, adjust behaviour or hook functions inside that app.

Modules built for Zygisk ship native libraries in a zygisk/ folder, with one library per processor architecture. Magisk loads them only when Zygisk is enabled. If you install a Zygisk module while the feature is off, the module appears in the list but does nothing until you enable Zygisk and reboot.

Typical uses

  • Frameworks that let other modules modify apps at runtime.
  • Per-app tweaks such as forcing a feature on or changing how an app reads device properties.
  • Tools that adjust what certain apps see about the device environment.
  • Developer utilities that inspect app behaviour for debugging.

Enabling Zygisk

  1. Open the Magisk app and go to Settings.
  2. Turn on Zygisk.
  3. Reboot the phone.
  4. Return to the home screen; the Magisk card shows Zygisk as Yes when it is active.

What the DenyList does

The DenyList is a list of apps and processes you choose. Its effect depends on one extra setting.

  • With Zygisk enabled, Zygisk modules are not loaded into processes on the DenyList, even if the module would otherwise target them.
  • With Enforce DenyList turned on, Magisk also reverts its own modifications for those processes, including module file mounts, so they see the original system files.

In other words, the DenyList is a way of saying “leave this app alone.” It is useful for apps that misbehave in a modified environment, and for keeping sensitive apps away from modules that do not need to touch them.

Configuring the DenyList

  1. Enable Zygisk and reboot.
  2. In Settings, turn on Enforce DenyList if you want Magisk changes reverted for listed apps.
  3. Tap Configure DenyList. Use the menu to show system apps if the app you need is hidden.
  4. Tick the app. Expand it to see individual processes; some apps run services in separate processes that also need ticking.
  5. Clear the app’s data or force stop it, then open it again.

Selecting the top-level checkbox selects every process belonging to that app. For apps that use Google Play Services checks, some guides also suggest adding specific Play Services processes. Do that carefully; adding broad system components can affect features such as notifications or location for other apps.

Realistic expectations

This is the part most guides skip. The DenyList controls what Magisk loads into a process. It does not change your bootloader state, your device’s security patch level, or the hardware-backed signals that modern integrity checks rely on. Many banking, payment and streaming apps now use Google’s Play Integrity API, which can report an unlocked bootloader regardless of anything Magisk does inside the app process.

The official project does not promise to defeat these checks, and its documentation is careful not to describe the DenyList as a bypass. Some third-party modules aim to change what integrity checks report; they are separate projects, their effectiveness changes as detection changes, and installing them is a decision that should be made with an understanding of the apps’ terms of service.

Think of the DenyList as hygiene, not invisibility. It keeps Magisk and its modules out of apps that should not be modified. Whether those apps accept your device is ultimately decided by checks outside Magisk’s control.

Zygisk and module compatibility

Before Zygisk, many modules depended on Riru, a separate framework that also injected into Zygote. Riru is no longer the recommended path on current Magisk, and modules have largely migrated to Zygisk. If you are following an older guide that tells you to install Riru, look for a Zygisk version of the module instead.

On kernel-based root solutions such as KernelSU and APatch, Magisk’s built-in Zygisk is not present. Standalone implementations of the Zygisk API exist for those platforms, which is why many Zygisk modules can run there too. The module author’s documentation usually lists which environments are supported.

Troubleshooting

A module does nothing

Confirm Zygisk shows Yes on the home screen. Check the app you expect the module to affect is not on the DenyList. Reboot after any change.

An app on the DenyList still detects root

Make sure every process of the app is ticked, Enforce DenyList is on, and the app’s data has been cleared so it does not rely on a cached result. Remember that the app may be checking signals the DenyList cannot change.

Something else broke after enabling Zygisk

Disable Zygisk modules one at a time. Zygisk itself is stable, but a faulty module can crash apps it loads into. The Magisk log and Android’s logcat usually show which library caused the crash.

Phone will not boot after enabling a Zygisk module

Boot into Android Safe Mode to disable all modules, or use adb wait-for-device shell magisk --remove-modules. Then remove the offending module.

Should you enable Zygisk?

If none of your modules need it, leave it off. Fewer moving parts mean fewer chances for conflicts and slightly less work at app launch. If you install a module that lists Zygisk as a requirement, enable it, reboot and keep the DenyList in mind for apps that should stay untouched.

The DenyList is worth configuring even if you use only a couple of modules. Adding your banking app, work profile apps and anything handling sensitive data costs nothing and keeps those apps running in an environment as close to stock as Magisk can provide.

Performance and battery

People sometimes worry that injecting code into every app launch will slow the phone down. In practice, Zygisk itself adds very little overhead, because it only gives modules a chance to act and does not perform heavy work on its own. What matters is the modules you install. A well-written module that targets a single app has no measurable effect on others. A poorly written one that hooks broadly into every process can increase app start time or memory use. If your phone feels slower after enabling Zygisk, disable Zygisk modules one at a time and compare. You will usually find a single module responsible, and its author may offer settings to narrow its scope.

A worked example

Imagine you have installed a Zygisk module that changes how a camera app processes photos, and you also use a banking app and a work email client from your company. A sensible setup looks like this. Zygisk is enabled because the camera module requires it. Enforce DenyList is turned on. The banking app and the work email client, along with all their processes, are ticked in the DenyList. The camera app is not ticked, so the module can reach it.

In this arrangement, the camera module does its job, while the banking and work apps start in an environment without Magisk mounts or Zygisk code. If the banking app still refuses to run, you know the cause is a check outside Magisk’s reach, such as bootloader state, rather than a module interfering with it. That clarity is valuable when deciding what to do next.

Key points

  • Zygisk runs module code inside app processes by loading into Zygote.
  • The DenyList keeps chosen apps free of Zygisk modules and, when enforced, Magisk changes.
  • Both are off by default and need a reboot after changes.
  • The DenyList is not a guaranteed bypass for integrity checks.
  • Only enable Zygisk when your modules require it.