Home > Samsung

Install TWRP Recovery on Galaxy Z Fold 4

In this guide, we will show you the steps to install the TWRP Recovery onto your Galaxy Z Fold 4. The fourth iteration of the folding device from the South Korean conglomerate is currently the best that you could get your hands on in the market as of now. While the likes of Xiaomi is giving it a tough competition but the offering from Samsung edges it out both on the software and hardware front, at least as of now.

Moreover, the device is quite active in the custom development as well. Whether it’s flashing GSI ROMs or gaining administrative access by rooting your device via Magisk Patched AP, there’s a lot to look forward to. And now, the device has also been blessed with the most popular custom recovery out there. So without further ado, let’s check out the steps to install the TWRP Recovery onto your Galaxy Z Fold 4. Follow along.

Benefits and Risks of TWRP & Root

twrp galaxy z fold 4

Once you have installed the TWRP Recovery, you could then flash a plethora of mods and ZIPs onto your device. Along the same lines, you could also take a backup of all the partitions on your devices via its Nandroid Backup feature. Then if you root your device via Magisk, you would have gained access to the system partition. Consequently, you could try out a plentitude of mods, including the likes of Magisk Modules, Viper4Android, Xposed Framework, and Substratum Themes among others.

However, these tweaks come with a few risks as well. First off, the process requires an unlocked bootloader. Doing so will wipe off all the data and could nullify the warranty as well. Likewise, Knox will also be tripped which will result in the inability to use banking apps. Likewise, Netflix WideVine L1 will be degraded to L3, hence Full HD resolution might not be supported. If all this is well and good, then let’s proceed ahead with the steps to install TWRP Recovery on Galaxy Z Fold 4.

How to Install TWRP and Root Samsung Galaxy Z Fold 4

The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

STEP 1: Unlock the Bootloader on Galaxy Z Fold 4

First and foremost, you will have to unlock the bootloader on your device. For that, you may refer to our comprehensive guide on How to Unlock Bootloader on Samsung Galaxy Z Fold 4. Once the process is complete and your device boots up, don’t restore the data yet, as your device will again have to go for a wipe in the subsequent step.

twrp galaxy z fold 4

STEP 2: Boot Samsung Galaxy Z Fold 4 to Download Mode

You will have to boot your device to Download Mode so that you are able to flash the required mods. So either refer to our detailed guide on How to Boot any Samsung Device to Download Mode or refer to the below shorter instructions:

twrp galaxy z fold 4

  1. To begin with, power off your device.
  2. Then press and hold the Power and Volume Up keys and your device will be booted to Stock Recovery.
  3. Now highlight the Reboot to Bootloader option using Volume keys and then press the Power key to confirm it.
  4. Your device should now boot to the Download Mode.

STEP 3: Install Odin

Next up, you will have to download and install the Odin Tool onto your PC. This is needed to flash the TWRP and to disable AVB on your device. So get hold of the latest Odin from here: Download: Odin3-v3.14.4.zip. Once downloaded, extract it to any convenient location on your PC.

twrp galaxy z fold 4

STEP 4: Disable Android Verified Boot on Samsung Galaxy Z Fold 4

Next up, you will have to disable AVB on your device which would then allow you to flash the desired custom binary (in this case, TWRP and Magisk).

  1. So start off by downloading the vbmeta_disabled.tar file onto your PC.
  2. Now connect your device to the PC via USB cable (make sure that it is booted to Download Mode)
  3. Then launch the Odin Tool and click on the Userdata button.
    twrp galaxy z fold 4
  4. Navigate to the vbmeta_disabled.tar file, select it and click Open.
    twrp galaxy z fold 4
  5. Finally, click on the Start button. You shall now get a prompt on your device, stating that “You have to reset your device to factory settings”.
    twrp galaxy z fold 4
  6. So use the Volume Keys to select the reset option and hit the Power key to confirm it.

Your device will now undergo a reset and then, the AVB stands disabled. You may now proceed ahead to install the TWRP Recovery and root Samsung Galaxy Z Fold 4.

STEP 5: Download Magisk App

Next up, download the Magisk APK file. This will be used to root your Samsung Galaxy Z Fold 4. So download it from the below link and then rename the APK to ZIP (i.e change the file extension from APK to ZIP). This will make the file TWRP flashable. Along the same lines, you will also have to flash a custom kernel on your device. So download both of them from the below links and then transfer them to your device

Download Magisk: Latest Magisk APK
Download Custom Kernel: waipio-gki_kernel_5.10.81-afaneh92.zip

STEP 6: Download TWRP Recovery for Samsung Galaxy Z Fold 4

You could now grab the latest custom recovery for your device from the below link. Credits: XDA Senior Member afaneh92

TWRP Recovery for Samsung Galaxy Z Fold 4: twrp-3.6.2_12-1_afaneh92-q4q.tar

STEP 7: Install TWRP Recovery on Samsung Galaxy Z Fold 4

  1. Launch the Odin Tool on your PC and click on the AP button.
    twrp galaxy z fold 4
  2. Navigate to the downloaded TWRP.tar file, select it and click Open.twrp galaxy z fold 4
  3. Finally, hit the Start button and TWRP will be flashed onto your device.
    twrp galaxy z fold 4
  4. Now use the hardware key combinations to boot your device directly to TWRP.

STEP 8: Disable Encryption on Galaxy Z Fold 4 via TWRP

  1. Once your device boots to TWRP, go to Advanced > Terminal.
    twrp galaxy z fold 4
  2. Then type in the below command and hit Enter
    multidisabler
  3. Your device will now resize the vendor and will ask you to run multidisabler again.
  4. So again execute the below command and hit Enter
    multidisabler

STEP 9: Install Custom Kernel on Samsung Galaxy Z Fold 4

  1. Once you have disabled encryption, you’ll have to format it. So go to Wipe and select Format Data.
  2. Then type in YES in the space provided and tap on the checkmark situated at the bottom right.
    twrp galaxy z fold 4
  3. Once the format is complete, you will have to reboot the device to TWRP. So go to Reboot and select Recovery.
    twrp galaxy z fold 4
  4. Now go to Install, select the custom kernel ZIP and perform a right swipe to flash it.

STEP 10: Root Samsung Galaxy Z Fold 4 via Magisk

  1. It’s now time to flash Magisk and root your device. So go to Install, select the Magisk ZIP and perform a right swipe to flash it.
    twrp galaxy z fold 4
  2. Once Magisk has been flashed, you may reboot the device to the OS. So go to Reboot and select System.
  3. That’s it. Your device will now boot up to the rooted OS with TWRP permanently installed.

With this, we round off the guide on how you could install the TWRP Recovery and root Samsung Galaxy Z Fold 4. If you have any queries concerning the aforementioned steps, do let us know in the comments section. We will get back to you with a solution at the earliest.


Share: