[GUIDE] How to root OnePlus Nord

Search This thread

msaiducar

Member
Dec 22, 2013
11
3
İstanbul
Can anybody confirm that this guide works for OxygenOS 12 (AC2003_11_F.11)?

I updated my phone via OTA to AC2003_11_F.11 build and lost my root.
I downloaded the build from this post, and extracted boot.img via payload_dumper, patched it via magisk (24.3), flashed it via fastboot, but the phone didn't boot (keeps entering the fastboot mode).
 

bluegrass55

Senior Member
Sep 29, 2011
631
90
London
A better rooting guide:

We unlock bootloader and back up imp files first.

take backup of all your data, contacts, settings, sync everything.
ensure you have prequisites, (TWRP, Platform tools)
Install official drivers from Device > MTP
Obtain Platform tools from https://developer.android.com/studio/releases/platform-tools
enable dev settings in phone,
enable oem unlock, usb debug and advance boot from dev settings
open cmd to where you have extracted platform tools(Shift+Right click in the directory > open powershell or cmd, from powershell, type cmd and color 4 or whatever your pref.)
type adb devices, your phone will ask for fingerprint, tick always trust and allow.
type adb devices again, you should see your device's serial number.
reboot to fastboot by volup+poweroff combo and select fastboot. (you can also do adb boot but I prefer this)
Connect cable, open device manager(Run > devmgmt.msc)
If you see android device, or if device is not identified, then right click on that unknown android device and update drivers, windows 10 update provides the same thing, just that the source is more trusted.
if that does not work, or if you have automatic driver update disabled, go to windows update > optional update > drivers > install the android adb interface driver.
no reboot is necessary.

type fastboot devices
you should see serial number.
type fastboot oem unlock
confirm in mobile, it will reset.
I prefer doing manual reset again here, it's just my pref, not necessary, so power off device, voldown+powerbutton hold, release power button when screen turns on, keep holding voldown until you see fastboot. and boot to recovery wipe everything, cache data system userdata.
reboot to device, skip in setup, enable dev settings, and enable usb debug + advanced boot
connect to pc, confirm fingerprint + always allow, reboot to fastboot

rename the twrp file that you downloaded and place in same platform tools folder to twrp.img

type fastboot boot twrp.img

then run following commands one by one. you can copy paste in powershell, note, one of the boot_a or boot_b command may fail, not to worry.
adb shell
dd if=/dev/block/bootdevice/by-name/boot_a of=/tmp/boot_a.img
dd if=/dev/block/bootdevice/by-name/boot_b of=/tmp/boot_b.img
dd if=/dev/block/bootdevice/by-name/persist of=/tmp/persist.img
dd if=/dev/block/sdf2 of=/tmp/modemst1.bin
dd if=/dev/block/sdf3 of=/tmp/modemst2.bin
exit
adb pull /tmp/boot_a.img boot_a.img
adb pull /tmp/boot_b.img boot_b.img
adb pull /tmp/persist.img persist.img
adb pull /tmp/modemst1.bin modemst1.bin
adb pull /tmp/modemst2.bin modemst2.bin

you will have all files in platform tools folder
you would have obtained either boot a or boot b, just rename to boot.img
back up all 4 files. DO IT, VERY IMP!

So now you have backed up everything without using any payload dumper, no unnecessary python installs.

reboot to device

Now, if you want to root:
obtain official magisk manager stable apk from: https://github.com/topjohnwu/Magisk
copy the magisk apt and boot.img to your root of internal storage
Install magisk
run, tap on install next to magisk > tap on select and patch a file > select your boot.img, > let's go
it will show success, and save new boot file in downloads folder.
copy that file to your pc > platform tools folder( you must have already backed up the stock boot.img, so you can delete the existing one) and rename the new one to boot.img
reboot to fastboot.
fastboot flash boot boot.img
Press the power button on device, it will reboot.

Now, you have root on your stock rom.

Do not update OOS, without reverting to stock, because we may not know if tomorrow oneplus brings some security features to brick your devices.
You can update the magisk manager app, but Do not update magisk without following boot.img patch a file process with your stock boot.img, do not repatch the magisk_boot.img

You need to follow respected Rom's or Kernel's instruction for flashing of same.
I'm trying to root this device for someone and failing.
I've followed both the OP and your version to the letter but always end up with a either a black screen or continues boot logo.
I'm using Magisk 25.1 and firmware is 11.0.17.17.EB13BA. With your method I'm patching the actual boot image of the installed firmware, so there shouldn't be an issue.
Am I using the wrong Magisk version? My own device is a 5T which I've rooted multiple times ( with ROM changes) without any issues.
 

Godlydevils

Senior Member
Jan 19, 2015
193
19
I'm trying to root this device for someone and failing.
I've followed both the OP and your version to the letter but always end up with a either a black screen or continues boot logo.
I'm using Magisk 25.1 and firmware is 11.0.17.17.EB13BA. With your method I'm patching the actual boot image of the installed firmware, so there shouldn't be an issue.
Am I using the wrong Magisk version? My own device is a 5T which I've rooted multiple times ( with ROM changes) without any issues.
Hi,

Most likely you're patching incorrect boot img to incorrect partition.

You need to check your current active boot partition, either from twrp or in bootloader type
fastboot getvar all
And look for something like (at the end)
(bootloader) current-slot: a
If it is a you only deal with patching a from magisk and flash a from fastboot, do not touch b
Also the current firmware is:
11.1.10.10
I wonder why are you stuck on that.

Alternatively you can try MSM to reset to 10 series firmware, https://forum.xda-developers.com/t/...l-to-restore-your-device-to-oxygenos.4148415/

Then start the phone, connect to internet, don't sign in, skip config, upgrade to current OTA, then proceed with unlocking bootloader and ensure you work only on current active boot_x partition
 

bluegrass55

Senior Member
Sep 29, 2011
631
90
London
Hi,

Most likely you're patching incorrect boot img to incorrect partition.

You need to check your current active boot partition, either from twrp or in bootloader type
fastboot getvar all
And look for something like (at the end)
(bootloader) current-slot: a
If it is a you only deal with patching a from magisk and flash a from fastboot, do not touch b
Also the current firmware is:
11.1.10.10
I wonder why are you stuck on that.

Alternatively you can try MSM to reset to 10 series firmware, https://forum.xda-developers.com/t/...l-to-restore-your-device-to-oxygenos.4148415/

Then start the phone, connect to internet, don't sign in, skip config, upgrade to current OTA, then proceed with unlocking bootloader and ensure you work only on current active boot_x partition
Thanks for the info. I tried your suggested steps without success. Ended up using this method suggested by another forum member and it worked.
 
Mar 18, 2023
6
0
Hey All,
I managed to install TWRP to boot_a partition, boot TWRP, extract my firmware off the phone as a backup called boot_b.img and patch boot_b.img with Magisk. I am too scared to flash the patched boot_b.img over boot_b partition so I am trying to flash the patched boot_b.img over the boot_a partition which currently has TWRP. However, when I try to boot boot_a partition where TWRP was, I get a boot loop. What am I doing wrong?

android 12
Build: GN2200_11_C.11 Kernel:5.4.147-qgki-ga9e7460afd8c

Thanks in Advance!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Devices that started to be received today have Oxygen OS 10.5 out of the box.
    No flashable zip for that software release is publicly available, meaning its stock boot.img cannot be extracted.

    You then need to update to a newer build first. You can do so from my OxygenOS builds repo thread.

    Once done, enable developers options and enable OEM unlock.
    Reboot to fastboot (enable USB debugging in dev options and use adb reboot bootloader)
    Type fastboot oem unlock and accept to unlock bootloader (warning: as a safety measure Android will wipe your userdata)
    Go through OxygenOS setup
    Install Magisk Manager from https://github.com/topjohnwu/Magisk/releases/download/manager-v7.5.1/MagiskManager-v7.5.1.apk
    Move stock boot.img to your phone internal storage (please open spoiler)

    For your convenience, 10.5.2 stock boot.img for EU and India have been extracted
    EU download: https://drive.google.com/file/d/18aPqErEMbRqmN4BpdvHE4OKgizDcEbou/view?usp=sharing
    India download: https://drive.google.com/file/d/1ZIEYWH2PYkKyojq_S_i_onBstejHKDTJ/view?usp=sharing

    For future builds, you can use payload dumper (Windows) , (Linux ) to extract stock boot.img


    Click on Install
    Choose "Select and patch a file"
    Select your stock boot.img
    Wait until Magisk patches your boot.img, and once patched it can be found in the Downloads folder
    Copy that patched boot.img (which should be named magisk_patched.img) to your computer
    Boot into fastboot again
    Type fastboot getvar current-slot into your terminal window and press Enter.
    If the output is a , type fastboot flash boot_a magisk_patched.img into your terminal window and press Enter.
    If the output is b , type fastboot flash boot_b magisk_patched.img into your terminal window and press Enter.
    Reboot to OxygenOS

    Open Magisk Manager and your device should now be rooted.

    TIPS:
    - Ensure you got latest platform tools installed from https://developer.android.com/studio/releases/platform-tools
    - Backup your /persist once rooted (dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img) and save it somewhere on your cloud/computer, this might save you from a broken fingerprint sensor and an RMA in the future if it turns out this device has same issue as 8-series when it comes to crossflash regional builds of OOS.

    Credits:
    @topjohnwu for making Magisk
    /u/Jisifus for testing on his device and for screenshots
    5
    Rooting worked and I have a Nord 10.5.3 rooted and working very well.


    Steps:

    1. Enable Developers Options and Enable OEM Unlock.
    2. Reboot to fastboot (enable USB debugging in dev options and use adb reboot bootloader)
    3. Type fastboot oem unlock and accept to unlock bootloader (warning: as a safety measure Android will wipe your userdata)
    4. Go through OxygenOS setup
    5. Enable Developers Options
    6. Install Magisk Manager from https://github.com/topjohnwu/Magisk/...ger-v7.5.1.apk
    7. Move stock boot.img to your phone internal storage
    8. In Magisk Manager - Click on Install
    9. Choose "Select and patch a file"
    10. Select your stock boot.img
    11. Wait until Magisk patches your boot.img, and once patched it can be found in the Downloads folder
    12. Copy that patched boot.img (which should be named magisk_patched.img) to your computer
    13. Boot into fastboot again
    14. Type fastboot boot magisk_patched.img
    15. If all is fine,
    16. Boot into fastboot again
    17. Type fastboot getvar current-slot into your terminal window and press Enter.
    18. If the output is a , type fastboot flash boot_a magisk_patched.img into your terminal window and press Enter.
    If the output is b , type fastboot flash boot_b magisk_patched.img into your terminal window and press Enter.
    19. Reboot to OxygenOS
    20. Enable Developers Options
    4
    Just want to share my experience. My phone uploaded itself to android 11.1.1.2 so I lost root.
    I just followed op steps to regain root :

    1. Bootloader was already unlocked
    2. Downloaded 11.1.1.2 here
    3. Downloaded payload dumper to extract boot.img
    4. Copy boot.img to phone. Patch it with magisk app
    5. It gives me a new patched boot.img
    6. Copy it to pc
    7. Boot phone to fastboot
    8. Type the command fastboot flash boot magisk_patched.img
    9. Reboot phone
    3
    ...and after successful boot.img replacement and your device is rooted.
    At next OTA update, update, but do not reboot. Go to Magisk Manager ("Magisk is up to date"), choose Install and Install to Inactive Slot (After OTA), reboot.
    Doing this for every OTA ensures that you'll stay rooted.
    3
    hello what is the detailed method for updating, I can't find the procedure
    thank you

    OnePlus 3 @ Tapatalk

    If you are on 10.5.2 and rooted with Magisk:
    - Go to Settings and download 10.5.3 OTA
    - Let it install
    - After it has finished installing, DO NOT REBOOT!!
    - Go to Magisk, select upper Magisk 'Install' (Not Manager), click 'Install' again and then choose 'Install to Inactive Slot (After OTA)'
    - After patching, reboot

    This way phone kept root after OTA.