OnePlus

How to root a OnePlus phone with Magisk

Global OnePlus phones unlock with a standard fastboot command and no waiting period. The extra work is getting the image: OnePlus ships firmware as a payload.bin inside its update zip, so you extract init_boot.img or boot.img first. Read the anti-rollback warning before you flash anything on a OnePlus 13 or 15.

Last updated 11 sourcesHow we check pages

OnePlus 13, 13T and 15: never flash older firmware

In January 2026, ColorOS and OxygenOS 16 updates for the OnePlus 13, 13T and 15 added a hardware anti-rollback fuse. Users report that flashing an older build afterwards hard-bricks the phone, and that even OnePlus's emergency flashing tools fail. OnePlus said it had temporarily paused downgrades and would restore them in a later update; we found no report that it has. Rooting itself is unaffected: only patch and flash images from the build you are running now.

Status checked .

Rooting a OnePlus: the whole job

  1. Step 1 · 5 minutesUnlock the bootloader
  2. Step 2 · 10 minutesExtract the image from payload.bin
  3. Step 3 · 2 minutesPatch the image in the Magisk app
  4. Step 4 · 2 minutesFlash the patched image
  5. Step 5 · 2 minutesFinish setup and check root
Each stage links to its full instructions below, where you can tick steps off as you go.

Find your model

Phones that launched with Android 13 or later usually use init_boot.img, but not always: the Nord N30 launched with Android 13 and still uses boot.img. Rows marked check have no model-specific source yet, so confirm the image is in your payload. We read the official firmware of Xiaomi, Pixel and Nothing phones ourselves, but OnePlus publishes no download links for its full updates, so we couldn't do the same here. To check yours, run magiskboot extract payload.bin on your update: it picks init_boot when the phone has one.

16 of 16
  • OnePlus 15infinitiAnti-rollback fuse: never flash older firmware.
    Launched withAndroid 16
    Patchinit_boot.img
  • OnePlus 15R
    Launched withAndroid 16
    Patchinit_boot.img (check)
  • OnePlus 13, 13TdodgeAnti-rollback fuse: never flash older firmware.
    Launched withAndroid 15
    Patchinit_boot.img
  • OnePlus 13Rgiulia
    Launched withAndroid 15
    Patchinit_boot.img
  • OnePlus 13s
    Launched withAndroid 15
    Patchinit_boot.img (check)
  • OnePlus 12, 12Rwaffle, aston
    Launched withAndroid 14
    Patchinit_boot.img
  • OnePlus Openxueying
    Launched withAndroid 13
    Patchinit_boot.img
  • OnePlus 11, 11RsalamiThe 11R has no model-specific source; confirm init_boot.img is in its payload.
    Launched withAndroid 13
    Patchinit_boot.img
  • OnePlus 10 Pro, 10T
    Launched withAndroid 12
    Patchboot.img
  • OnePlus 9, 9 Pro, 9RTlemonade, lemonadep, martiniOlder models may use fastboot oem unlock instead of fastboot flashing unlock.
    Launched withAndroid 11
    Patchboot.img
  • OnePlus 8, 8T, 7, 7 Pro, 7T
    Launched withAndroid 9 to 11
    Patchboot.img
  • OnePlus Nord 5lexus
    Launched withAndroid 15
    Patchinit_boot.img
  • OnePlus Nord 4, Nord CE4avalon, benz
    Launched withAndroid 14
    Patchinit_boot.img
  • OnePlus Nord 3, Nord CE3
    Launched withAndroid 13
    Patchinit_boot.img (check)
  • OnePlus Nord N30, Nord CE3 LitelarryLaunched with Android 13 but has no init_boot.
    Launched withAndroid 13
    Patchboot.img
  • OnePlus Nord N200dre
    Launched withAndroid 11
    Patchboot.img

Launch versions are from OnePlus's own specification pages. The image column is from the LineageOS install guide for each device, which lists the partition you flash, or the Android rule for phones that launched before Android 13.

Before you start

You will need

  • A OnePlus that can be unlocked. Global and India units unlock freely. T-Mobile units need OnePlus's unlock token, and China ColorOS 16 phones need an approved application.
  • A computer with Google's SDK Platform-Tools and, unless you extract on the phone, payload-dumper-go.
  • The full update zip for your exact build (Settings → About device shows the version). It contains payload.bin.
  • A backup. Unlocking erases the phone.
  • The Magisk app from the official GitHub release.

What you give up

  • Strong Play Integrity. An unlocked bootloader fails the device verdict on Android 13 and later, so some banking and payment apps stop working. See Play Integrity and root.
  • Possibly warranty cover for damage. OnePlus's unlock page says unlocking normally does not change the warranty, but damage caused by modifications may be charged.
  • Safe downgrades on the 13, 13T and 15 once you are on a build with the anti-rollback fuse.

Root your OnePlus step by step

Each step has a Done box so you can keep your place. Your progress is saved in this browser only.

  1. Unlock the bootloader

    5 minutes
    1. Open Settings → About device → Version and tap Build number seven times. In Developer options, turn on OEM unlocking and USB debugging.
    2. Reboot to the bootloader (or power off and hold Volume Up + Volume Down + Power) and unlock. Confirm on the phone. This erases all data. Older models such as the 9RT and N200 use fastboot oem unlock instead.
    Unlock
    $adb reboot bootloader $fastboot devices $fastboot flashing unlock
  2. Extract the image from payload.bin

    10 minutes

    Download the full update zip for the build you are running. OnePlus has no public firmware page; the community app Oxygen Updater fetches full packages from OnePlus's servers (it is not an official OnePlus app). Open the zip, take out payload.bin, and extract init_boot.img. A full package is needed: an incremental update does not contain the whole image.

    Extract on a computer
    $payload-dumper-go -p init_boot payload.bin

    Or extract on the phone with Magisk's own tool, which picks init_boot or boot automatically: magiskboot extract payload.bin. The Magisk app itself can also patch straight from the full update zip or payload.bin.

  3. Patch the image in the Magisk app

    2 minutes

    Copy init_boot.img to the phone. In the Magisk app tap Install → Select and Patch a File and pick it. Copy the patched file back with adb.

    Copy the patched image to the computer
    $adb pull /sdcard/Download/magisk_patched-XXXXX_YYYYY.img
  4. Flash the patched image

    2 minutes

    Reboot to the bootloader and flash the patched file to init_boot.

    Flash
    $adb reboot bootloader $fastboot flash init_boot magisk_patched-XXXXX_YYYYY.img $fastboot reboot
  5. Finish setup and check root

    2 minutes

    Open the Magisk app and accept any additional setup. A version number on the Magisk card, for example 31.1 (31100), means root works. Don't go by the App card: its Installed line shows the app's own version even when Magisk isn't running. To make future updates easy, Magisk can now back up the stock image: tap Install → Direct Install once (see Keeping root after updates).

Keeping root after updates

System update, keeping root

  1. 1Restore ImagesMagisk → Uninstall. Don't reboot
  2. 2Install the updateDo not restart
  3. 3Install to Inactive SlotMagisk app → Install
  4. 4Reboot from MagiskNew build, still rooted
Magisk's documented method for A/B phones. Magisk's documentation only vouches for it on Pixels; if it fails, flash the new build's patched image instead.

OnePlus phones have A/B slots, so Magisk's update method applies. Turn off automatic system updates first.

  1. In the Magisk app tap Uninstall → Restore Images. Do not reboot.
  2. Install the update from Settings, but do not restart yet.
  3. In Magisk tap Install → Install to Inactive Slot (After OTA), then reboot.

If Restore Images fails because Magisk has no backup (common when the patched image was flashed from a computer), flash the stock init_boot.img, boot, and use Direct Install in Magisk once; it then keeps a backup. Magisk's documentation only vouches for this method on Pixels. Full steps: keeping root after an update.

If the phone does not boot

Recovery

Reboot to the bootloader (hold Volume Up + Volume Down + Power from off) and flash the untouched image you extracted from the same payload: fastboot flash init_boot init_boot.img. Never flash an image from an older build on a OnePlus 13, 13T or 15. If a module caused the loop, boot into Magisk's Safe Mode or run adb shell magisk --remove-modules (see fixing a Magisk bootloop).

Errors and fixes

The messages people most often hit on this brand, and what they mean.

The Magisk app shows Not Installed (v31.1) or Installed: N/A (v30.7)

Root did not load, usually because boot.img was patched on a phone that uses init_boot.img, or the image came from a different build. Extract init_boot.img from the payload of the exact build you run and patch that.

“Flashing is not allowed” or a partition error when flashing init_boot

Make sure you are in the bootloader (adb reboot bootloader), not fastbootd, and that Platform-Tools is up to date. Community guides also suggest trying from fastbootd (adb reboot fastboot) if the bootloader refuses.

Restore Images says there is no stock backup

Magisk only keeps a backup when it installs itself. Flash the stock image, boot, then use Install → Direct Install in the Magisk app once.

OEM unlocking is missing or the unlock is refused

T-Mobile OnePlus phones need an unlock token from OnePlus's form, which takes one to two weeks. China ColorOS 16 phones need an approved application. Verizon-sold units are generally reported as not unlockable.

The phone is stuck in the bootloader after flashing older firmware

On a OnePlus 13, 13T or 15 with the anti-rollback fuse, this is the reported hard brick, and users say OnePlus's emergency flashing tools fail too. Contact OnePlus after-sales: OnePlus told customers who need a downgrade to do so.

Questions people ask

Does unlocking a OnePlus void the warranty?

OnePlus's unlock page says the warranty is normally unaffected by unlocking, but damage caused by modifications may be charged, and it asks you to acknowledge that risk.

Do I patch boot.img or init_boot.img?

init_boot.img on the OnePlus 11 and newer, the Open and the Nord 4, CE4 and Nord 5. boot.img on the OnePlus 10 and older and on the Nord N30 and CE3 Lite. Pick your model above and the commands change.

Can I downgrade a rooted OnePlus 13 or 15?

Not safely. Builds since January 2026 burn an anti-rollback fuse, and flashing an older build has bricked phones. OnePlus said downgrades would return in a later update.

Can I root a China ColorOS OnePlus?

Only after OnePlus approves an unlock application. Since July 2026 that needs a 60-day-old account with real-name and face checks, seven days logged in on the phone, and a free slot in a monthly quota, with at most four devices per year.

Will a OnePlus update remove root?

Not if you restore images first and use Install to Inactive Slot before rebooting.

Why do banking apps still detect root?

Magisk no longer hides root by itself, and an unlocked bootloader fails Play Integrity's device check. See Play Integrity and root.

Sources

This page is written from the sources below. If anything here disagrees with them, the upstream source is correct.

Found a mistake or something out of date? Tell us and we will check it against the source and fix the page. Confirmed corrections are listed in the corrections log.

Report a problem with this page