yashsingh1/xdaforums huggingface dataset:
[OnePlus Nord 2 5G] Zombnombs:
If you're in the state where your phone won't boot at all, and the bootloader is totally locked; Download the live dvd iso of mtkclient from https://drive.google.com/file/d/1OoGWFSZTqWqwfU35W6UAUwc20CJrK95t/view?usp=sharing and flash it onto a pendrive aka USB stick using Rufus https://rufus.ie/en/

Once you have that, you can use the pendrive/usb stick to boot into a linux operating system which has all the tools you need ready to go. (reboot a computer with the usb stick plugged in, and make sure your computer's boot priority order prioritises booting from USB sticks before your normal SSD/HDD). You should now be running a linux OS on your computer. The password is to log into the OS is "user" as you can find in the documentation at https://github.com/bkerler/mtkclient.

Then I personally used a 2nd USB stick, copied the boot.img and recovery.img from the google drive link in the OP of this thread, and grabbed the vbmeta.img from https://mega.nz/folder/rQhhHQpA#nNHvPlmzBXwPjmaFpuDa2Q, which is the stock A12 vbmeta image. The vbmeta from this thread's google link did not work for me, as it is not stock.

So you should now have 3 files: vbmeta.img, recovery.img, and boot.img. I used a 2nd usb stick for these, as the first USB stick with the linux operating system was being used as a boot drive, but you can use the method the others described as well to get files where you need them.

Any way you do it, get those 3 .img files into the /opt/mtkclient directory (there's a Home shortcut on the left side of the desktop, go to system files, opt, mtkclient and copy the 3 .img files here)

After that, just simply open the mtkclient shortcut on the desktop, and run the commands

"python mtk w boot boot.img"

"python mtk w recovery recovery.img"

"python mtk w vbmeta vbmeta.img"

These commands only work if your files are named exactly "boot.img", "vbmeta.img" and "recovery.img", feel free to rename them if they don't match.

Also be careful as if you're using an american keyboard, the z's and y's of the linux keyboard and swapped. (EU keyboard variant)

After running each command, plug in your phone, and simply hold down all 3 buttons: vol down, vol up, and power. I didn't find it necessary to unplug the phone or do anything fancy; Just hold all 3 buttons and your phone will eventually go into the necessary BROM mode, it might enter recovery, or fastboot mode first, but it will always end up in BROM mode if you just hold the 3 buttons which lets the mtkclient flash your needed partitions.

Make sure you also read the instructions in the OP of this thread, the instructions of how to flash seccfg in the locked bootloader should give you all the information you need that I glossed over.

After you flash all 3 partitions, I personally found that if the phone didn't boot, I just had to flash the stock vbmeta again, even though I'd already flashed it. No idea why.

Afterwards you should have a phone that boots to welcome screen. From there you can do whatever you want.
[OnePlus Nord 2 5G] kkdamion:
Thank you very much. really nice mate, yesterday is was trying to run a virtual linux system under windows with virtual box.but that didnt worked out like i hoped. but these steps you telling me are golden, its going to save me(and others) some time. als good idea to put the files on a separate usb.
[OnePlus Nord 2 5G] kkdamion:
i got a bootanimation now but its not booting fully and not looping.

flashed mtk boot, recovery, vbmeta and seccfg but still locked state,

and can i use the mtkclient to flash stock A.07 again. because fastboot is still giving locked state
[OnePlus Nord 2 5G] Zombnombs:
Ah, the boot.img is definitely unique to each version. The ones provided in this OP of this thread are for phone version .A12

Not sure if the recovery or vbmeta is unique to different version, but the boot.img most definitely is. There are stock roms provided by xda community members for each version of the OS, such as here

https://xdaforums.com/t/stock-boot-...oxygen-11-3-dn2103_11_a-07-09-10-eea.4332273/

Grab that stock boot image for A7 and flash that, then try flashing your same vbmeta again afterwards. If you're still bootlooping then you most likely need to find a recovery and/or vbmeta image for A07 as well.

If you read my post above, I also ran into a state where only the oneplus symbol was appearing, but it never progressed into teh 2 white dots rotating around hte red dot animation. Thats what i referred to as my "short bootloop". This animation was fixed by flashing vbmeta again. So that's most likely a symptom, based onmy experience, that you have the wrong vbmeta flashed. If you flashed the vbmeta from the mega link in my reply above (thats the one that worked for me on A12), then it most likely means you need a vbmeta image for A07.

Edit:

The locked state doesn't matter when you have mtkclient; Locked bootloader means the phone won't let you flash partitions normally, but the mtkclient uses a method to bypass that. The idea here is to flash partitions to get the phone to boot normally, and once you can boot the phone up normally, you can unlock the bootloader again by going to the settings app of the functional phone, clicking the version number 7 times > Developer options > allow oem unlocking and enable USB debugging. From there you can repeat steps to root the phone again like you would with a stock phone that you just unboxed.

@martinwildi also had the same issues in their post as well, and seems to have recovered so we know this method works for A07 too, but as martinwildi mentioned, you need the right versions of the image files.
[OnePlus Nord 2 5G] pankspoo:
Some one making threads within threads😆
[OnePlus Nord 2 5G] SeBright:
Thank you both ! Using a combination of those methods worked for me after my phone was completely bricked.

I had to flash preloader (using the attached file that I flashed with

python mtk w preloader preloader_lu1.bin --parttype=lu1

), boot, recovery and super from the GDrive save and then the vbmeta from the Mega OTA.

And another thank you to @Raygen who was most helpful and to whom I owe my phone.
[OnePlus Nord 2 5G] pankspoo:
What happened to your device
[OnePlus Nord 2 5G] NetSoerfer:
I think in the .bat for unlocked phones, the actual fastboot flash command is missing...

echo Restore started!
echo Restore started! >> PBlog.txt
echo.
::restore
for %%F in (PartitionsBackup\*.img) do (
echo flashing %%~nF...
echo flashing %%~nF... >> PBlog.txt
:: controllo errori, fastboot
if errorlevel 1 (
echo Error with fastboot command
echo Error with fastboot command >> PBlog.txt
set error=1
echo.
) else (
echo %%~nF restored.
echo %%~nF restored. >> PBlog.txt
echo.
)
)
cls
echo Restore completed!
echo Restore completed! >> PBlog.txt

Which would explain that it takes only two or three seconds to go through the restore process and then the .bat reports success...
[OnePlus Nord 2 5G] Raygen:
That's.. unusual. Thanks for reporting. There should definitely be a fastboot command in there.

You can find the working script also in his dedicated post for now: https://xdaforums.com/t/tool-no-root-partitionsbackupper-nandroid-alternative.4366055/

I'll reupload the .zip without the script included and just a link to the dedicated post, to avoid future versions mixup issues.
[OnePlus Nord 2 5G] NetSoerfer:
After running v1.4 with the files from the OP, I'm still getting into a boot loop - with an android boot screen instead of the OnePlus loading screen, oddly.

I fixed that flashing vbmeta.img again - now it's disappearing in about five seconds.

...... nope, still getting a boot loop with the android boot screen. Any ideas?
[OnePlus Nord 2 5G] Raygen:
Could you share your PBlog.txt file?

Your short reboots looks similar to the ones @Zombnombs encountered

You could try to flash the vbmeta patched image instead of the stock one, with the command fastboot flash vbmeta --disable-verity --disable-verification PartitionsBackup\vbmeta_patched.img
[OnePlus Nord 2 5G] NetSoerfer:
sure:

Spoiler content hidden.

Not sure - it takes several minutes of android boot animation until it loops. I think @Zombnombs had the loop occur after seconds, right?

I'll do that. I'll let you know how it goes, thanks for your help :)

...it didn't work. Still boot looping even after flashing vbmeta_patched.img :(
[OnePlus Nord 2 5G] NetSoerfer:
Spoiler content hidden.

The above mostly happened in the fastboot mode with the weird tiny text - the one you get into when pressing Power+VolDown. Mostly because I think I occasionally went into the other fastboot mode (using fastboot reboot fastboot, the one with the English/Asian language choices, is that OOB Recovery?) because I didn't know there were differences between the two.

After realising that I couldn't flash system even after super anymore, I went back to fastboot reboot recovery.

In that one, I noticed that I can flash system just fine, however, running the PartitionsBackupper_v1.4.bat failed to update super this time. See the new PBlog.txt:

Spoiler content hidden.

Still, that worked, I just got greeted by a Hello! screen. Fingerprint enrols fine, Bluetooth finds devices, I'm guessing because I was lucky enough not to mess with the partition that breaks those.

So I guess the takeaway is: Don't try to flash partitions in the tiny text fastboot mode (even if it seems to work, identifying the devices with fastboot devices and flashing some partitions without error), but always go to the English/Asian language choice screen first using fastboot reboot fastboot, where some partitions behave differently.
[OnePlus Nord 2 5G] GaryFisher88:
hi Guys,

can someone provide a stock EU a.13 boot, recovery and vmbeta to make unbick porcedure with locked bootloader?
[OnePlus Nord 2 5G] Raygen:
Glad that worked!

I've noticed the logs are not really useful with these level of details.. So I've updated a new version of the script with better logs for future cases.

And about the difference between flashing in bootloader mode (with the tiny white text) vs fastboot mode (inside the recovery), I've noticed the partitions that cause the issue and also included this fix in the updated version of the script.

I'm still on A.12 sorry, that's why the post is not updated. I'm completely out of free time in this period.

You could try to fully flash the A.12 and then update back to A.13 though.
[OnePlus Nord 2 5G] Raygen:
Something similar happened to me like a week ago. I was rebooting the phone just 'cause, and it never booted back on. Got stuck in a bootloop, just like that.

I tried everything I could think of, but at the end I was forced to backup everything and wipe the phone with the stock recovery, and start fresh. (That's also where I took the occasion to update to A.15...)

I still have no idea what happened really. But it happened again a couple of times while trying to flash Magisk back after the wipe. So, it could be because of Magisk.

I'm running Magisk Canary rn without issues so far, we'll see if it's more stable.
[OnePlus Nord 2 5G] 8vasa8:
I think EU version have some problem with magisk. I got similar problems too.
[OnePlus Nord 2 5G] Elaba:
I have also tried alot of things, so far it only got worse. The bootloader is locked again, and also have the stock recovery on it. But now when i want to boot i get the error message " boot/recovery is destroyed ". I guess this will be an RMA. I'm unable to reach the internal storage, not able to push files onto it. Already tried this other youtube method, but it fails because the bootloader doesn't want to unlock anymore.
[OnePlus Nord 2 5G] Raygen:
There's a procedure for a locked bootloader situation available on the first post of this thread. Take a chance with that before RMA
[OnePlus Nord 2 5G] Elaba:
Going to try this option, but the link in step 2 doesn't work anymore. Not sure where i can find this " seccfg.img " File?

Seems the day after this link got fixed. Thx
[OnePlus Nord 2 5G] Elaba:
Hello, I have tried the option to unlock the bootloader via the MTKclient , and all went well without errors, but so far no change (exept i have the stock recovery back). Partitionsbackupper gives alot of issues with fastboot and doesn't finish. So i guess the bootloader is still locked. (The bootscreen doesn't show the tiny words about the unlocked bootloader)

A few questions:

When i load the stock recovery , i have an option to do an Online Update, via wifi, (unfortunatly it doesn't find any wifi connection points (altough i can verify there are accespoints around)

Is there a way to load the Stock firmware on the phone, because it seems there is no firmware on the phone and doesn't get further than the boot screen.
[OnePlus Nord 2 5G] Raygen:
All files are always attached at the end of the post anyway

Yeah the "online update" option never worked, just ignore that. I guess you need to setup a dedicated AP for that

You could try to flash each partition (or at least the main ones, like "super") trought MTKclient yes, with the command python mtk w <partitionname> <partitionname>.img and repeating the steps 10 and 11 of the guide for each one.
[OnePlus Nord 2 5G] Elaba:
I might try that, but its a bit of a hassle, as i can only flash 1 ".Img", after that the mtkclient gives me an error, see the attached picture (it doesn't search for devices) . My solution was to completely reboot the PC with the Ubuntu usb, for every of the 4 image files all over from scratch. I have no ifea how to solve that error. (i also tried closing the mtkclient and restart it, or logg off and log back on in the user account.)
[OnePlus Nord 2 5G] Raygen:
Did you tried to also turn off the phone and reboot it again in BROM mode for every image?
[OnePlus Nord 2 5G] Elaba:
Yes, tried many things . I started manually flashing each .img file from the firmware, 1 by 1. and between every file i had to reboot my pc completely to get the mtkclient working for 1 file at the time. I started with the biggest files and worked my way down to like 6 or 7 files. Everytime i rebooted the PC, i also tried booting the phone. But unfortunatly stayed in bootloop.

As this is very timeconsuming i started searching more info about the error i have on the mtkclient window . And found some code wich makes it possible to flash more .img files at the same time. So then i flashed all the firmware files at once, there were a few files wich failed to flash, i noted them down:

my_engineering.img

my_company.img

my_carrier.img

my_manifest.img

product.img

my_product.img

my_region.img

vendor.img

Currently the phone boots again, but there are issus with the security pasword, wich isn't saved

I own the Pac-Man edition and unfortunatly i can't find the Pac-man edition firmware , perhaps you have a link where i can find the android 11 European pac-man edition update.

FYI: I placed all .img files i extracted from the firmware .zip , into the mtklient folder and entered the next command in the mtkclient window: python mtk wl out.

Now i'm going to try to root again ;)

Edit:

Rooting worked better this time, but during setting up my phone, i noticed i can't save a security pasword in the phone settings, to enable facial recognition and fingerprint..., now searching for the Official Pac-Man edition Full Rom to flash over everything DN2103
[OnePlus Nord 2 5G] Elaba:
Another day of research went by, so far i haven't managed to fix the issue with the security phrase, to get fingerprint and facial unlock. I've tried to restore to one of the first TWRP backups i made a month ago, and even later ones, but all gave me bootloops. Been searching trough various treads on this forum and your name " Raygen " pops up here and there. I have quite alot of backup files from a month ago when i did the first root attempt, i have a backup from partitionsbackupper v1.3 and a twrp backup from my original rom. Not sure if i can use files from those backups to rebuild back to stock. I can't remember what my stock rom number was, but the box says its produced mid october and i remember i had 1 update when i bought it, and there was another one 2 weeks ago wich i avoided. Looks like this phone doesn't like to be rooted. Also i can't find any of the Pac-Man Rom's, and neighter the stock Nord 2 Incremental updates.
[OnePlus Nord 2 5G] Raygen:
Nice job on reviving the phone and finding that handy command too! I've noted it in the instructions.

About the security settings not working, since the phone lives again now, have you tried restoring it again to stock with the "unlocked bootloader" procedure this time? Maybe that handful of partitions that didn't flashed with mtkclient can be the cause.

Also, since you have some old backups on hand, try to manually flash back the

seccfg, nvcfg, nvdata, nvram, persist, proinfo, protect1,

and

protect2

partitions. These are usually the ones who cause camera, IMEI, and security issues like yours, if get corrupted.

About the Pac-man edition files, cannot help sorry. They're unavailable even on OxygenUpdater. I can only suggest you to ask around and find someone with your same model, from whom extract the update files and partitions needed.
[OnePlus Nord 2 5G] scarythib:
i've made a backup of my pac-man edition EU version on A16 with your tool.
[OnePlus Nord 2 5G] Elaba:
Yes, i did a restore to the first TWRP backup i made when it got freshly rooted in november. Actually the failed root session, cause after that 1st backup it was in a bootloop. Also tried all the other ones wich all bootlooped. Yesterday when i got it working again, i also made a backup, wich i then restored to after trying the other restore points. That last backup with the regular nord 2 rom, also didn't restore perfectly, many visual bugs. So there's alot of wrong with these backups and such.

The files you mension are not .img files, so how do i flash those? In twrp i saw a restore page where i can manually select different partition directories, but not sure wich file goes where, and what to do if they are not .img files.

So currently my phone is in a bootloop state, but is unlocked and has twrp.
[OnePlus Nord 2 5G] scarythib:
You should better go to stock. Flash stock recovery in fastboot. Boot to recovery. Format data.

Then you can update your phone. If you have issue with camera or fingerprint and you have a nandroid backup check this post from pankspoo : https://xdaforums.com/t/how-to-solve-boot-img-corrupt-and-camera-finger-print-fc.4366975/
[OnePlus Nord 2 5G] scarythib:
Here is my backup made with Raygen's partitionsbackupper tool :

A.16 EU Stock OnePlus Nord 2 5G Pac-Man Edition

You can surely restore with Raygen tool.

Then send your twrp backup file to your phone >flash recovery twrp > Boot to recovery > restore > and only check persist and persist image from your nandroid backup if you have issue with camera and fingerprint
[OnePlus Nord 2 5G] Raygen:
To restore a TWRP backup you need to copy the backup back on the phone memory, in the TWRP folder, and then choose that backup from the Restore option in TWRP
[OnePlus Nord 2 5G] Elaba:
Yes i know that, But i was looking at the files inside that backup folder. To pick a few out if needed and flash those files seperatly. I will have another try next week. Thanks for the help so far.
[OnePlus Nord 2 5G] Elaba:
Is this a fresh backup? (no personal settings) thx
[OnePlus Nord 2 5G] scarythib:
Raygen said that his tool doesn't keep personal data. Be sure you have your nandroid backup on your computer and keep it in a safe place cause persist and persist image are linked to your phone.
[OnePlus Nord 2 5G] DeMiane:
Hello! Came to you from the Russian forum. Faced a problem. After rooting and unlocking the bootloader, everything was fine. TWRP is worth it. I installed LukeyPatcher, rebooted, the phone hangs in the bootlop, what should I do in order not to aggravate the situation? It enters the recovery. The latest firmware was updated on the drain before all actions. Thank you!

p.s. sorry for the english.
[OnePlus Nord 2 5G] Raygen:
Yup, my tool doesn't backup the data partition, but DOES backup every other partition. Including

seccfg, nvcfg, nvdata, nvram, persist, proinfo, protect1,

and

protect2

. @Elaba be sure to delete these partition from @scarythib's backup before flashing. Should be good then

That usually happens with Magisk stable (atm I'm on

Magisk canary

), or by not

formatting data

with the stock recovery after flashing the stock firmware.

If you still got everything backed up, try formatting data and then go with magisk canary. See if that works better
[OnePlus Nord 2 5G] DeMiane:
There is no backup. while there is an idea to remove magisk and reflash the boot .. can tell me where the boot is?
[OnePlus Nord 2 5G] Raygen:
I don't understand the question sorry, do you mean the patched boot image with Magisk canary?
[OnePlus Nord 2 5G] AdamBarath:
Thank you very much, great work out there! :)
[OnePlus Nord 2 5G] DeMiane:
The bootloader is unlocked, the root is received, after installing LukeyPatcher received a bootlap ... TWRP is worth
[OnePlus Nord 2 5G] Elaba:
So i've tried the instructions said previously, Wipe data beforehand, Used that Partisionsbakupper file form scarythib , and added boot, recovery , seccfg and vbmeta from my backup, but the files i quoted seem to be missing in my old Partisionsbackupper file (made with your tool v1.3) , Currently still in Bootloop (and again locked bootloader) , Also when i flashed scarythib his backup, i got an error for System and ODM partistions wich are missing, and it skipped those files.
[OnePlus Nord 2 5G] Elaba:
So, Many Thanks to XDA member scarythib who helped me out the past 3 days , step by step, how to get my Paperweight Pac-Man edition Nord 2 back on his feet. It was quite a ride, this phone definitly doesn't like to be rooted.
[OnePlus Nord 2 5G] lachatol:
I managed to break the phone, everything works, I have an EU A16, but I'm afraid to do root again.
[OnePlus Nord 2 5G] ZloyTopik:
Tell me what I'm doing wrong
[OnePlus Nord 2 5G] ilya_m_i:
Hello everyone. Please help. My phone turned into a brick because of my crooked hands. I tried to root, but something went wrong. As a result, as far as I remember (it was 2 months ago), I decided to return everything to the factory settings. Did not work out. Now, when I try to flash it, I get an error:

when I enter "fastboot flashing unlock" writes an error

FAILED (remote: '

Unlock operation is not allowed

and on phone: unlock filed

Next when trying "adb reboot bootloader":

:\Users\Ilya>adb reboot bootloader

error: no devices/emulators found

C:\Users\Ilya>adb reboot bootloader

error: no devices/emulators found

I understand that the bootloader is blocked. Can't unlock. I ask for help in this matter.
[OnePlus Nord 2 5G] Kingslayer9988:
Hey people i need your help i have the euro version of the One Plus Nord 2 5g. I was on systemfirmeware A15 and did a magisk canary update. since then my phone won't boot anymore. I know tried to flash stock A15-EU files from mega. And it still dosen't boot.

Can anyone help I can install twrp. Did data format in twrp and stock recovery nothing help. I even relocked to Bootloader and still didn't help.

I use this for restore:

File folder on MEGA

mega.nz

I attached te restore log.

@Raygen Are you aware of an issue like this ?

Let me know if you need to know more.

I now found out my device reports as DN2101 - is it possible i flashed an indian image or something? i live in west-europe.

and why can't i flash it back?

UPDATED PB.log
[OnePlus Nord 2 5G] Kingslayer9988:
i have the same error