Skip to content
Home » How To Root Galaxy Z Fold4 Using Magisk?

How To Root Galaxy Z Fold4 Using Magisk?

Hi guys, this tutorial will help you to root your all time favourite Samsung Galaxy Z Fold4 using the one and only Magisk mobile app. Here we will be also using the official Odin app from Samsung to realize the root.

Please note: This rooting method is compatible for Samsung Galaxy Z Fold4 SM-F936B, SM-F936U, SM-F936U1, SM-F936N, SM-F936W variant only.

First let me give you a brief intro to Galaxy Z Fold4 specifications before proceeding with the rooting steps.

A brief intro to Galaxy Z Fold4 specs

The foldable Galaxy Z Fold 4 comes with a lot of options to choose from like storage and RAM, which has a wide range to select like 256GB 12GB RAM, 512GB 12GB RAM & 1TB 12GB RAM. Further, it has a 50MP rear camera and 4MP cover camera. The Z Fold4 has AKG tuned audio and IPX8 water resistance. It also has Gorilla Glass Victus+ on front and back.

The phones comes factory pre-installed with Android 12L firmware along with One UI 4.1.1 on top of it. Qualcomm SM8475 Snapdragon 8+ Gen 1 chipset is powerful enough for your day to day operations. The Fold 4 has Octa-core 1×3.19 GHz Cortex-X2 & 3×2.75 GHz Cortex-A710 & 4×1.80 GHz Cortex-A510 processor which even satisfies the gaming freaks.

Colour options

  • Graygreen, Phantom Black, Beige, Burgundy

Now lets proceed to the rooting tutorial.

Before proceeding any further please make sure that you have made a complete backup of your phone to prepare for worst case scenario. Also keep in mind that rooting will void your warranty and will not be liable for any loss of data nor bricking of the device.

Steps to root Galaxy Z Fold4 using the Magisk app

1. First you need to perform the OEM unlock and enable USB debugging on your Galaxy Z Fold4 device.

Enabling Developer mode

To enable “Developer Options” on your Galaxy Smartphone go to Settings>About phone>Software Information, and tap on the “Build number” 10 times until you get a message that you are a “developer“.

Once done you will see an additional menu entry in the “Settings” main menu called “Developer Options” as shown below in the screenshot.

Once you have enabled the “Developer Options” tap on it and you will see a similar screen as shown below (These are from One UI 2, if your UI version is something else slight difference maybe there).

Now tap on “OEM unlocking” and “USB debugging” to enable it. If  you get a popup warning, tap enable if you would like to proceed.

Unlocking bootloader

Also you may need to unlock bootloader from the Download Mode. This is a new security feature on the latest version android firmware.

For that first switch off your phone and connect it to the PC using a USB cable and press and hold the Volume Up and Volume Down keys together until you see the bootloader screen as show below.

bootloader unlock 2021

Next please long press Volume Up key to enter “Device unlock mode.”

For that you may also try the below tutorial which will help you to enable the same.

2. Now download the latest version of “Magisk App” from the below link.

After downloading please install it. Kindly make sure to allow installations from “Unknown Sources” from the “Settings”->”Security” before trying to install apps from outside of Play Store.

3. Now download the same firmware version which is currently present on your phone to your computer. To know the “AP”, “CP”, “CSC version of your phone try the code “*#1234#” into your phone’s dialing keypad.

Downloading firmware files

Please use the below links to download the firmware for your Samsung Galaxy Z Fold4. Please note that once you click download link on the next page you will be guided to a 3rd party website were you will be able to download the required firmware for free.

Once downloaded please extract the file and you will get similar files like shown below.

4. Now check for a file with “AP” in the starting as shown in the above image. Now copy that file alone to your phones “Internal Storage“.

5. Once done open the “Magisk” app and tap on the “Install button” near to “Magisk“. Please check the below screenshot for reference.

s21 root magisk1

6. When you get the below page tap on “Next“.

s21 root magisk2

7. Now you will get the below page, there you need to tap on “Select and Patch a File” and select the “AP” file you have already copied to your Galaxy Z Fold4’s internal storage. Now this file will be patched and will be named as “magisk_patched.tar“. It will be found in the “Downloads” folder. Copy that file back to your computer desktop.

s21 root magisk3

Entering Download Mode

8. Once done please switch off your phone and enter it into the Download Mode. First you need to connect your phone to your PC using a USB cable. To enter into the download mode first you need to enter into the Recovery Mode for that press and hold the “Vol Up” + “Power” buttons at the same time and release the “Power” button when you see your phone model number on the screen. Now you will be entered into the Recovery Mode.


The above image shows the “Recovery Mode” menu. Here select the “Reboot to bootloader” option and confirm the action to enter into the “Download Mode”. Please use “Vol Up” and “Vol Down” buttons to toggle through the options and “Power” button to confirm a selection.

9. Now download the latest Odin app from the below link.

Once downloaded please open the “Odin.exe” file and tap on the the “AP” button and select the patched file (“magisk_patched.tar“) which was copied from your phone back to your computer. Also please click “BL”, “CP” and CSC buttons on the Odin and select appropriate files. Please ignore “UMS/Home CSC“.

odin 3 12 7

Now go to Odin’s “Options” tab and uncheck “Auto Reboot” and click the “Start” button in the Odin to start the flashing process.

Once flashing is finished enter your phone into “Recovery Mode” again and perform a “wipe data/factory reset. And reboot your phone. When booted up your Z Fold4 will be rooted with super user privileges.

If you have faced any issues while going through the above tutorial please have a look at the troubleshooting steps given below.


No matter what how hard you try there can be errors and issues when you do the rooting. Don’t worry because we have all the solutions for normal errors that may occur on your Z Fold4 during the rooting process. Please have a look at them below.

Normal queries root Galaxy Z Fold4 tutorial

  • How to get root access/superuser/admin privileges on my Samsung Galaxy Z Fold4 SM-F936B, SM-F936U, SM-F936U1, SM-F936N, SM-F936W?
  • Root Galaxy Z Fold 4 SM-F936B, SM-F936U, SM-F936U1, SM-F936N, SM-F936W using magisk app.
  • Root Galaxy Z Fold 4 SM-F936B, SM-F936U, SM-F936U1, SM-F936N, SM-F936W without PC / Computer / Laptop

If “How To Root Galaxy Z Fold4 Using Magisk?” tutorial really helped you, please give a like/share on social networking websites.