Samsung Android 15 / One UI 7 boot.img via Odin AP tar

How to root the Samsung Galaxy Z Fold 7 & Z Flip 7 with Magisk

Samsung Galaxy Z Fold 7 and Z Flip 7 Magisk rooting status guide (2025). Z Fold 7 uses Snapdragon 8 Elite globally; Z Flip 7 uses Exynos 2500 including in the US. Critical note: One UI 8 removed OEM Unlocking toggle globally on both devices. This page documents the current rooting status, bootloader lock situation, KernelSU experimental options, and recovery procedures for both SM-F966B (Fold 7) and SM-F766B (Flip 7) international variants.

At a glance

Device familySamsung Galaxy Z Fold 7 & Z Flip 7
Launch softwareAndroid 15 / One UI 7 (7-Year Update Lifecycle; foldable-optimized multitasking and taskbar persistence)
ChipsetZ Fold 7: Snapdragon 8 Elite for Galaxy (Global) | Z Flip 7: Exynos 2500 (Global including US - first Exynos flagship foldable in US market)
Root partitionboot.img (patched inside the Odin AP tar)
Firmware formatOfficial 4-file Odin firmware (BL, AP, CP, CSC)
Bootloader unlockCRITICAL: One UI 8 on Z Fold 7/Flip 7 REMOVED the OEM Unlocking toggle globally. Bootloader unlock is NOT officially available on these devices as of launch. Monitor XDA Developers for community-discovered unlock methods. KernelSU-based approaches are being explored but remain experimental.
Warranty / security impactTrips the Samsung Knox warranty bit (0x1), permanently disabling Samsung Pay, Secure Folder and Samsung Health keystores.

Rooting method

  1. Step 1. Download the full Odin firmware package for your exact model and CSC region (Official 4-file Odin firmware (BL, AP, CP, CSC)).
  2. Step 2. Copy AP_*.tar.md5 to the phone and open the Magisk app. Tap Install → Select and Patch a File and choose the AP tar. Magisk patches boot.img inside it — no manual extraction is required.
  3. Step 3. Copy the resulting magisk_patched.tar back to your computer.
  4. Step 4. Open Odin and load magisk_patched.tar in the AP slot, then load the matching BL, CP and HOME_CSC files from the same firmware package.
  5. Step 5. Flash, then boot the device and open the Magisk app to confirm root.
Flash command
Odin3: AP = magisk_patched.tar | BL + CP + HOME_CSC from the same firmware

For the full workflow and prerequisites, see the installation guide and boot image patching guide.

If the device bootloops

Recovery

Download Mode (Vol Up + Vol Down while folded + USB cable) -> Odin -> Flash original AP/BL/CP/CSC package. For Z Flip 7 (Exynos 2500), use Exynos-specific CSC - do NOT mix with Snapdragon firmware.

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.

Independently written from public upstream documentation. Verify every command against the official Magisk documentation and your exact device firmware before flashing. Not affiliated with the Magisk project.