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.
- Bootloader unlockYes, one commandChina ColorOS 16 and T-Mobile units need approval
- Waiting periodNone (global)1 to 2 weeks for T-Mobile tokens
- Data wipeYes, when unlocking
- Image to patchinit_boot.imgboot.img on OnePlus 10 and older
- Updates with rootYes (A/B slots)
- DowngradingRisky on 13, 13T, 15Anti-rollback fuse since Jan 2026
Rooting a OnePlus: the whole job
- Step 1 · 5 minutesUnlock the bootloader
- Step 2 · 10 minutesExtract the image from payload.bin
- Step 3 · 2 minutesPatch the image in the Magisk app
- Step 4 · 2 minutesFlash the patched image
- Step 5 · 2 minutesFinish setup and check root
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.
-
OnePlus 15
infinitiAnti-rollback fuse: never flash older firmware.Launched withAndroid 16Patchinit_boot.img -
OnePlus 15RLaunched withAndroid 16Patchinit_boot.img (check)
-
OnePlus 13, 13T
dodgeAnti-rollback fuse: never flash older firmware.Launched withAndroid 15Patchinit_boot.img -
OnePlus 13R
giuliaLaunched withAndroid 15Patchinit_boot.img -
OnePlus 13sLaunched withAndroid 15Patchinit_boot.img (check)
-
OnePlus 12, 12R
waffle, astonLaunched withAndroid 14Patchinit_boot.img -
OnePlus Open
xueyingLaunched withAndroid 13Patchinit_boot.img -
OnePlus 11, 11R
salamiThe 11R has no model-specific source; confirminit_boot.imgis in its payload.Launched withAndroid 13Patchinit_boot.img -
OnePlus 10 Pro, 10TLaunched withAndroid 12Patchboot.img
-
OnePlus 9, 9 Pro, 9RT
lemonade, lemonadep, martiniOlder models may usefastboot oem unlockinstead offastboot flashing unlock.Launched withAndroid 11Patchboot.img -
OnePlus 8, 8T, 7, 7 Pro, 7TLaunched withAndroid 9 to 11Patchboot.img
-
OnePlus Nord 5
lexusLaunched withAndroid 15Patchinit_boot.img -
OnePlus Nord 4, Nord CE4
avalon, benzLaunched withAndroid 14Patchinit_boot.img -
OnePlus Nord 3, Nord CE3Launched withAndroid 13Patchinit_boot.img (check)
-
OnePlus Nord N30, Nord CE3 Lite
larryLaunched with Android 13 but has noinit_boot.Launched withAndroid 13Patchboot.img -
OnePlus Nord N200
dreLaunched withAndroid 11Patchboot.img
No match. Extract your payload: if it contains init_boot.img, patch that, otherwise boot.img. magiskboot extract picks the right one automatically.
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.
-
Unlock the bootloader
5 minutes- Open Settings → About device → Version and tap Build number seven times. In Developer options, turn on OEM unlocking and USB debugging.
- 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 unlockinstead.
Unlock$adb reboot bootloader $fastboot devices $fastboot flashing unlock -
Extract the image from payload.bin
10 minutesDownload 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 extractinit_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.binOr extract on the phone with Magisk's own tool, which picks
init_bootorbootautomatically:magiskboot extract payload.bin. The Magisk app itself can also patch straight from the full update zip orpayload.bin. -
Patch the image in the Magisk app
2 minutesCopy
init_boot.imgto 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 -
Flash the patched image
2 minutesReboot 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 -
Finish setup and check root
2 minutesOpen 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
- 1Restore ImagesMagisk → Uninstall. Don't reboot
- 2Install the updateDo not restart
- 3Install to Inactive SlotMagisk app → Install
- 4Reboot from MagiskNew build, still rooted
OnePlus phones have A/B slots, so Magisk's update method applies. Turn off automatic system updates first.
- In the Magisk app tap Uninstall → Restore Images. Do not reboot.
- Install the update from Settings, but do not restart yet.
- 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
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.
- Magisk installation guide (topjohnwu)
- Magisk tools: magiskboot extract (topjohnwu)
- Magisk OTA installation guide (topjohnwu)
- OnePlus anti-rollback measures are temporary, OnePlus says (9to5Google)
- OnePlus anti-rollback protection explained (Android Authority)
- OnePlus tightens ColorOS bootloader unlock policy (Notebookcheck)
- Unlock token for T-Mobile OnePlus devices (OnePlus)
- OnePlus 12 install guide: unlocking and partitions (LineageOS)
- OnePlus 13 specifications (OnePlus)
- payload-dumper-go (ssut)
- Generic boot partition and init_boot (Android Open Source Project)
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