The instructions given below are listed under separate sections for ease of understanding. Make sure to follow the same order as mentioned. Pixelroms and its members will not be held responsible in the event of a thermonuclear war, if your alarm does not wake you up, or if something happens to your device and data by performing the following steps.
1: Unlock the Bootloader on Galaxy Z Fold 4
First and foremost, you will have to unlock the bootloader on your device.
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.
- To begin with, power off your device.
- Then press and hold the Power and Volume Up keys and your device will be booted to Stock Recovery.
- Now highlight the Reboot to Bootloader option using the Volume keys and then press the Power key to confirm it.
- Your device should now boot to the Download Mode.
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.
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).
- So start off by downloading the vbmeta_disabled.tar file onto your PC.
- Now connect your device to the PC via USB cable (make sure that it is booted to Download Mode)
- Then launch the Odin Tool and click on the Userdata button.
- Navigate to the vbmeta_disabled.tar file, select it and click Open.
- 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”.
- 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.
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
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
7: Install TWRP Recovery on Samsung Galaxy Z Fold 4
- Launch the Odin Tool on your PC and click on the AP button.
- Navigate to the downloaded TWRP.tar file, select it and click Open.
- Finally, hit the Start button and TWRP will be flashed onto your device.
- Now use the hardware key combinations to boot your device directly to TWRP.
8: Disable Encryption on Galaxy Z Fold 4 via TWRP
- Once your device boots to TWRP, go to Advanced > Terminal.
- Then type in the below command and hit Enter
- Your device will now resize the vendor and will ask you to run multidisabler again.
- So again execute the below command and hit Enter
9: Install Custom Kernel on Samsung Galaxy Z Fold 4
- Once you have disabled encryption, you’ll have to format it. So go to Wipe and select Format Data.
- Then type in YES in the space provided and tap on the checkmark situated at the bottom right.
- Once the format is complete, you will have to reboot the device to TWRP. So go to Reboot and select Recovery.
- Now go to Install, select the custom kernel ZIP and perform a right swipe to flash it.
10: Root Samsung Galaxy Z Fold 4 via Magisk
- 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.
- Once Magisk has been flashed, you may reboot the device to the OS. So go to Reboot and select System.
- That’s it. Your device will now boot up to the rooted OS with TWRP permanently installed.
You may also like:
- How to Root Android 13 Phones and Roms Easily (Via Magisk)
- Add Phillips Hue Lights to Apple HomeKit: How to
- One UI 5 Update Schedule for Samsung Galaxy Devices with Android 13
- Samsung Good Lock 2023 APK + All Plugins For One UI 5 | Complete Features and Changelog