How to root the Samsung Galaxy Z Fold 6/5/4 & Z Flip 6/5/4 with Magisk
Detailed Odin rooting instructions for Samsung Galaxy Z Fold 6/5 and Z Flip 6/5 foldables. Explains dual-screen display scaling modules, Flex Mode root scripts, and Knox e-fuse status.
At a glance
| Device family | Samsung Galaxy Z Fold 6/5/4 & Z Flip 6/5/4 |
| Launch software | Android 14 with One UI 6.1.1 Foldable Edition |
| Chipset | Snapdragon 8 Gen 3 / Gen 2 for Galaxy |
| Root partition | AP Tar Package |
| Firmware format | Odin 4-File Firmware |
| Bootloader unlock | OEM Unlocking + Knox VaultKeeper Unlock |
| Warranty / security impact | Trips the Samsung Knox warranty bit (0x1), permanently disabling Samsung Pay, Secure Folder and Samsung Health keystores. |
Rooting method
- Step 1. Download the full Odin firmware package for your exact model and CSC region (Odin 4-File Firmware).
- Step 2. Copy
AP_*.tar.md5to the phone and open the Magisk app. Tap Install → Select and Patch a File and choose the AP tar. Magisk patchesboot.imginside it — no manual extraction is required. - Step 3. Copy the resulting
magisk_patched.tarback to your computer. - Step 4. Open Odin and load
magisk_patched.tarin the AP slot, then load the matching BL, CP and HOME_CSC files from the same firmware package. - Step 5. Flash, then boot the device and open the Magisk app to confirm root.
For the full workflow and prerequisites, see the installation guide and boot image patching guide.
If the device bootloops
Download Mode -> Flash Full Stock Odin Package
More options: fix a Magisk bootloop.
Keeping root across updates
Download the full Odin firmware for the new build, patch the new AP tar in the Magisk app, then flash it together with BL, CP and HOME_CSC (HOME_CSC keeps your data).
See the OTA survival guide for the full procedure.
Related
Samsung rooting hub
HubAll Samsung models covered on this site.
Play Integrity Fix
ModuleRestore device integrity for Google Wallet and banking apps after rooting.
Shamiko
ModuleHide root from apps that perform detection checks.
Root method checker
ToolConfirm which partition to patch and generate the flash command.