OxygenOS & ColorOS Ecosystem

How to Root OnePlus with Magisk & Fastboot

Complete rooting walkthrough for OnePlus smartphones (OnePlus 12, 12R, 11, 10 Pro, 9 Pro, 8T, 7 Pro, and Nord Series) on OxygenOS and ColorOS. Learn how to extract stock images from payload.bin, use the safe fastboot boot temporary testing method, and retain root during official OTA system updates.

OnePlus Technical Rooting Profile

  • Supported Models: OnePlus 12 / 12R, OnePlus 11, OnePlus 10 Pro / 10T, OnePlus 9 / 9 Pro, OnePlus 8 / 8T / 8 Pro, OnePlus 7 / 7 Pro, OnePlus Nord Series.
  • Flashing Tool: Standard Android Fastboot CLI.
  • Target Partition: init_boot.img (OnePlus 11 / 12) or boot.img (OnePlus 10 and earlier).
  • Hardware Security Impact: Zero Hardware Fuse Penalty. Unlocking does not permanently trip hardware fuses and does not void hardware warranty in North America and European regions.

Extracting Stock Boot Images from OxygenOS payload.bin

OnePlus packages full system updates inside an uncompressed Google OTA payload archive named payload.bin. You can extract your stock boot image using open-source Python tools:

payload.bin Extraction Commands
# 1. Download official full OTA zip for your OnePlus build # 2. Extract payload.bin from the zip # 3. Extract target partition using payload-dumper-go: $payload-dumper-go -p init_boot payload.bin # Or for OnePlus 10 and older: $payload-dumper-go -p boot payload.bin

The fastboot boot Temporary Testing Advantage

Unlike Samsung devices where you must flash partitions permanently, most OnePlus bootloaders support booting a kernel directly from PC memory:

Temporary Fastboot Boot Workflow
# Temporarily boot patched Magisk image in memory without flashing disk: $fastboot boot magisk_patched.img # If phone boots successfully into rooted Android: 1. Open the Magisk App. 2. Tap "Install" on Magisk card -> Choose "Direct Install (Recommended)". 3. Tap "Reboot" -> Magisk will permanently flash the active partition safely! # If anything goes wrong, a simple power reboot returns the phone to 100% stock!

Step-by-Step Installation Walkthrough: OnePlus Fastboot

Step 1: Unlock Bootloader

  1. Open Settings -> About Device -> Version and tap Build Number 7 times.
  2. Go to Settings -> Additional Settings -> Developer Options and toggle on OEM Unlocking and USB Debugging.
  3. Reboot to Fastboot Mode: adb reboot bootloader.
  4. Run: fastboot flashing unlock and confirm on screen using Volume Down and Power. (Wipes device data!)

Step 2: Patch Image with Magisk App

ADB Commands
# 1. Install Magisk APK $adb install -r Magisk-v30.7.apk # 2. Push extracted boot or init_boot image to Download folder $adb push init_boot.img /sdcard/Download/ # 3. In Magisk App -> Install -> Select and Patch a File -> Choose init_boot.img $adb pull /sdcard/Download/magisk_patched_*.img magisk_patched.img

Step 3: Flash Patched Image

Fastboot Terminal Commands
# For OnePlus 11, 12 Series: $fastboot flash init_boot magisk_patched.img # For OnePlus 10 Pro and older (OnePlus 9/8/7/Nord): $fastboot flash boot magisk_patched.img $fastboot reboot

How to Install OxygenOS OTA Updates Without Losing Root

  1. Open Magisk App -> Tap Uninstall Magisk -> Select Restore Images (DO NOT REBOOT).
  2. Install the official OxygenOS system update via Settings or Local Update.
  3. When installation completes, DO NOT tap the System Restart button.
  4. Return to the Magisk App, tap Install, and choose Install to Inactive Slot (After OTA).
  5. Tap Reboot in the Magisk App.

OnePlus Troubleshooting: Fixing Qualcomm CrashDump Mode

If your OnePlus smartphone displays "Qualcomm CrashDump Mode" due to an incompatible kernel or bad module:

  1. Hold down Power + Volume Up for 15 seconds to force power off.
  2. Immediately hold Power + Volume Down to enter Fastboot Mode.
  3. Flash your original stock boot.img or init_boot.img:
    fastboot flash init_boot stock_init_boot.img
  4. Run fastboot reboot to restore your phone to a working state.
Source & Verification Standard

Verified against official upstream release Magisk v30.7 on OnePlus OxygenOS & ColorOS (Android 13–16). Primary reference: topjohnwu/Magisk on GitHub.