How To Guide (Guide) Rooting, payload dumper, magisk_patched guides NE2213

Search This thread

dladz

Senior Member
Aug 24, 2010
14,187
4,756
Liverpool
Huawei Watch 2
OnePlus 8
My boot image I extracted is from the current a_14 version, which I also previously installed.

I am using Magisk 25.1 and have patched the boot image from the installed version.

So it should work again if I manage to remove the Magisk module again and then boot the a_14 boot image.

Can I then boot the patched boot image again and get my root rights back?

And thank you for your fast help!
No worries man, but yes that's correct.
 

warhead1978

Senior Member
Oct 4, 2010
390
68
OnePlus 10 Pro
but yes that's correct.
Ok, but it doesn't work anymore, I reboot the phone with cable inside, when the boot animation moves, i send the command to delete the modules, then the phone was rebooting. I boot in fastmode and flash the extracted boot.img on a and b, then reboot.

Then I boot in fastmode again and boot the patched boot.img, but i get no root rights anymore.
I tried to flash it always to a and b but no differents.
What have I done there again I dumbass.

Is there an other possibility to check if the modules are even installed?
 

warhead1978

Senior Member
Oct 4, 2010
390
68
OnePlus 10 Pro
Get into the system. Repatch the boot image then boot it and install directly.
I get back to system, open Magisk repatch my boot.img and copy the file to PC, then restart in bootloader and booted the new patched img, no root mister, no option to install directly only to patch a file.

Edit:Should I try to restore the entire phone to factory settings, since I was just setting everything up?
 

warhead1978

Senior Member
Oct 4, 2010
390
68
OnePlus 10 Pro
So, I finally succeeded in getting root rights back.
First I did a factory reset and then I used the FastbootEnhance tool to flash the extracted payload.bin in fastbootd mode.
Then I transferred the necessary files back to the smartphone,
installed Magisk,
patched the extracted boot.img,
copied the patched boot.img to the PC,
rebooted into the bootloader and used the patched boot.img to boot the smartphone.
And now I had the rights back and could do a direct install with Magisk.
Yeah!

kind regards
 

dladz

Senior Member
Aug 24, 2010
14,187
4,756
Liverpool
Huawei Watch 2
OnePlus 8
So, I finally succeeded in getting root rights back.
First I did a factory reset and then I used the FastbootEnhance tool to flash the extracted payload.bin in fastbootd mode.
Then I transferred the necessary files back to the smartphone,
installed Magisk,
patched the extracted boot.img,
copied the patched boot.img to the PC,
rebooted into the bootloader and used the patched boot.img to boot the smartphone.
And now I had the rights back and could do a direct install with Magisk.
Yeah!

kind regards
Yep so as soon as you'd wiped. You'd basically given yourself a clean slate, I don't think the Magisk modules removal command succeeded, otherwise you should have been fine..

My guess it was the boot image for whatever reason wasn't being overwritten.

Either way, you're sorted but yep perhaps overkill.

Nice one for getting it sorted man 👍🏻
 

dladz

Senior Member
Aug 24, 2010
14,187
4,756
Liverpool
Huawei Watch 2
OnePlus 8
thanks for you post
تسربات في هذه المنطة المحتملة وجود بها تسربات المياه , إشكالية الحنفيات , لابد من القاء نظرة سريعة حوالين الحنفيات كل فترة لان يحدث تسربات سرية وخفية لا يمكن ان تلاحظها الا بعد عدة اشهر من ظهور التسرب ويحدث فجوة كبيرة في منزلك وتجعلك تلجا لشركات بعد فوات الأوان , نحن شركة مختصة ونحن اليوم نلقى اليكم مقالة سريعة عن وجود تسربات في منزلك وانتا لا تلاحظ وان كنت تعبت من الشركات وتسربات نحن نفهمكم كيفية التعامل مع الشركات وبعضها كشف تسربات المياه بالرياض
Sorry buddy. I've no idea what that says I'm afraid.
 

warhead1978

Senior Member
Oct 4, 2010
390
68
OnePlus 10 Pro
My guess it was the boot image for whatever reason wasn't being overwritten.

Either way, you're sorted but yep perhaps overkill.
I saw no other options except a complete rewrite of the partitions.
As I said I made a mistake by installing a Magisk module and agreed to write something in the boot sector.
Why deleting the modules was unsuccessful I can't say, but the smartphone rebooted immediately after pushing the enter button.

I ask now simply for the next time, is it possible with the Enhanced Fastboot tool to flash only the boot Partiotion with the stock image or can I also select individual partitions? Then I could saving the wipe next time.
 
  • Like
Reactions: dladz

dladz

Senior Member
Aug 24, 2010
14,187
4,756
Liverpool
Huawei Watch 2
OnePlus 8
yep sorry chaps, i've falled off a bit, i'm on 13 to be honest with you, i'll get it sorted tonight, it's not often i give up on a device but wth the 10 pro it's getting me down so haven't been bothered to update my threads with the most up to date details.

For that i do apologise as i'm normally on point and the first to provide a patched image.

I'll turn that around from here on in.

Many thanks for dropping in the images, i appreciate it.
 
  • Like
Reactions: trax69 and galaxys

fma388

Member
Aug 27, 2014
24
10
Samsung Galaxy S8
Huawei P30 Pro
yep sorry chaps, i've falled off a bit, i'm on 13 to be honest with you, i'll get it sorted tonight, it's not often i give up on a device but wth the 10 pro it's getting me down so haven't been bothered to update my threads with the most up to date details.

For that i do apologise as i'm normally on point and the first to provide a patched image.

I'll turn that around from here on in.

Many thanks for dropping in the images, i appreciate it.
No worry guy, with pleasure !

That's why I put the link for those who want to do it quickly.

It's true that the development of this phone is not going very well... I had gone to Oneplus for this, I'm a bit disappointed too...
 
  • Like
Reactions: dladz and galaxys

Jaco2k

Senior Member
Sep 11, 2010
224
90
Tampere
Since the patched Image was not up, I made my own - this is for A15 build and should NOT be flashed.
Simply use it to fastboot after updating and then use Magisk to direct patch as per OP instructions

Patched boot image
 
  • Like
Reactions: dladz

dladz

Senior Member
Aug 24, 2010
14,187
4,756
Liverpool
Huawei Watch 2
OnePlus 8
Since the patched Image was not up, I made my own - this is for A15 build and should NOT be flashed.
Simply use it to fastboot after updating and then use Magisk to direct patch as per OP instructions

Patched boot image
I appreciate that mate, I've not been home for a while so have been stuck on 13 until I can get it sorted.

Thanks for the link.

Pop the stock one up if you managed to save it.

PS: I'm assuming this was done with 25.1 ?
 

spevil07

Senior Member
Mar 16, 2012
1,139
597
OnePlus 10 Pro
I appreciate that mate, I've not been home for a while so have been stuck on 13 until I can get it sorted.

Thanks for the link.

Pop the stock one up if you managed to save it.

PS: I'm assuming this was done with 25.1 ?
Here you have both, stock and patched with 25.1
 

Attachments

  • boot.img
    192 MB · Views: 11
  • magisk_patched-25100_ybEGD.img
    192 MB · Views: 22
  • Like
Reactions: trax69 and dladz

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Yes but coildnt use them well?
    No you can't because theyre boot images for the EU version of the phone, you have the Chinese phone with the Chinese software, from what I can tell you need downgrade using the full zip of the region you want to convert to, you can do this with the local update APK.

    From what I gather that's all you have to do.

    There's several threads for it, just follow them mate.

    Again I don't have the Chinese phone so can't really help
    1
    Im sorry. I am not much info like members here
    I recomend dladz here.
    He can alot about this.
  • 20
    Hi all,

    Thought i'd share a guide on how to get these boot images yourself as well as all the files required, plus the patched boot.img if you just want to go ahead and boot/flash it without obtaining one yourself

    Please read the process before committing to proceeding, so you know what's required and what you should and shouldn't use!

    Stock and patched images are UK/ EU NE2213 but the guides are universal and could be used on multiple devices.

    :)

    NOTE:

    For these guides the versions used are:
    Stable, Canary or BETA depending on firmware, simply change the channel in Magisk settings then select install / update:


    NE2213_11_A.12
    Magisk Manager v24.3 (24300) Stable


    NE2213_11_A.13
    Magisk Manager v24.3 (24300) Stable

    NE2213_11_A.14
    Magisk Manager v25 (25000) Stable this version retains root after a restart, more stable version over previous iterations.


    1st

    Extracting a boot.img using Fastboot Enhance

    Pre-requisites


    A device with a working version of magisk manager installed, simply change the channel to the version outlined in the list above relevant to your firmware then select install / update:

    A Windows 10 computer / laptop
    A full update downloaded firmware zip for your model (recommend oxygen updater)
    Payload dumper program for Windows.
    The local System Update Installer : normal local system update will not allow a reboot during installation, the one I've linked will.



    Process

    On your computer

    1. Download and copy the fastboot enhance folder to your desktop or a location of your choosing.

    Download from here: https://github.com/libxzr/FastbootEnhance/releases

    2. Download the firmware of your choice and open it using Winrar or a similar zip program, extract the file called payload.bin a folder of your choosing.

    3. Run the program FastbootEnhance.exe, a window will appear, click Payload Dumper, then click browse and point to the payload.bin file, the contents will now be shown.

    4. One of the files will be called boot.img, this is the file we'll be patching, click extract then copy this to your phone, root of storage which is called /sdcard.

    On your phone

    5. Open up Magisk and click Install / Update, if you don't see update then change channel, so this by changing the channel in magisk settings, it'll then show the install/ update buttons.

    6. Select "Select and Patch a file" it'll open up a file browser, navigate to the boot.img you copied earlier and select it, allow it to complete (this will output a file called "magisk_patched" (which will be in the Downloads folder)

    You now have a patched boot.img ready to flash to either slot with fastboot or boot via fastboot, would recommend booting as this is risk free, if it's a bad image for whatever reason and you choose to flash then your phone may bootloop.

    NOTE** Some people have noticed that an already patched boot.img when flashed can fail and cause a boot loop when flashed,so if you have downloaded a magisk_patched img from somewhere else then you WILL need to re-patch it on your own device preferably using the afore mentioned magisk manager based on what firmware it's from.

    If you intend to follow the guide below with your own patched img then you shouldn't need to patch twice but it won't hurt if you do.

    ;)






    2nd

    Update from 12 stable to 12+ stable whilst retaining root


    Guide

    1. Download the relevant firmware for your device via oxygen updater

    2. Open Magisk and remove all the modules you have installed, then reboot

    **NOTE- At this point I tend to copy out the whole firmware to my computer, incase I need it in the future, the boot img and patched boot img are at the foot of this guide, I'll always upload the latest firmware as soon as it comes out for the UK/EU model

    3. Install the OnePlus local install apk listed below in downloads. Click the cog and select "Local Upgrade" the file should be listed on screen, if not then move the file to the root of your phones storage.

    4. Click install and allow it to go through the process

    **NOTE- DO NOT REBOOT AT THIS POINT YOU WILL LOSE THE ABILITY TO PATCH ON THE FLY, SIMPLY BACK OUT OF THE SCREEN WHICH SAYS "INSTALLATION COMPLETED. RESTART TO EXPERIENCE NEW FEATURES"

    5. Open up magisk and click install (you may see two install buttons, top one is magisk and the bottom is magisk manager, we need the top one)

    6. You'll be faced with a screen that has several options, you want to select "Install to Inactive slot (After OTA)" then select "LET'S GO" once complete click reboot.

    7. Once your phones booted back up your system / files should all remain as they were and you should have root access.

    You can now install all your modules again so long as they're compatible with the firmware you've just updated to.



    3rd

    Rooting using fastboot commands


    Method 1

    Booting the patched image

    1. Obtain a patched boot image for your device variant preferably using payload dumper or download one of mine from the foot of this guide or if you've just performed the above guide you should already have a functional one, copy this file to your fastboot folder on your computer

    **NOTE - The above suggested downloads are for the EU / UK variant- if you have another model / firmware please use that instead, If you did not obtain the boot.img from a firmware and patch it yourself, you will need to patch it again in magisk manager to avoid a bootloop, if you still get a bootloop it's best to obtain one yourself using the guide at the top of this post.

    2. Reboot your phone to fastboot
    and connect to your computer.

    3. Boot the magisk patched img

    fastboot boot magisk_patched (or name of your patched boot img)

    Your phone should now boot automatically, you should now be rooted but we need to make this permanent, if you were to reboot you would lose root.

    4. Open magisk manager and click install/update, if you are missing the install/ update buttons, change magisk version to beta in magisk settings and install the update, the buttons should then show.

    5. Select Direct install (recommended) then click ok.

    6. Allow magisk to permanently root your device then click reboot.

    You should now boot and remain rooted.



    Method 2

    Flashing to both slots


    1. Obtain a patched boot img for your device variant or download one of mine from the foot of this guide or if you've just performed the above guide you should already have a functional one, copy this file to your fastboot folder on your computer

    **NOTE - Again the above suggested downloads are for the EU/ UK variant- if you have another model / firmware please use that instead, if you did not obtain the boot.img from a firmware and patch it yourself, you will need to patch it again in magisk manager, to avoid a bootloop

    2. Reboot your phone to fastboot and connect to your computer.

    Command: adb reboot bootloader

    3. Open a command prompt on your computer and navigate to your ADB/fastboot folder.

    4. Type the following.

    fastboot flash boot_a magisk_patched

    Press enter.

    fastboot flash boot_b magisk_patched

    Press enter

    fastboot reboot

    Press enter

    6. Your phone should now boot, open magisk and verify you're rooted.





    Troubleshooting

    If flashing succeeds but you don't have root and you've followed all the instructions, you may have some magisk modules still active, try performing the following.

    1. Connect your phone to your computer.

    2. Reboot the phone, then during the boot animation enter this command via ADB.

    adb wait-for-device shell magisk --remove-modules

    3. Allow to boot, modules will be removed and root should then be active.




    If there is no magisk install / update buttons.

    1. Make sure you have granted permission to magisk in settings / apps / magisk / permissions

    2. Make sure that the update channel is on canary, then force close magisk and then re-open

    3. If it still doesn't work then update magisk using canary

    4. Last method to check would be to change to the beta channel in magisk settings, then install it.

    Or change the update channel, install the version on offer, then change back to canary, install and you should be good to go.




    Window's version

    Windows 7 will not work with fastboot, please use Windows 10

    USB

    Use USB 2.0 not 3.0 or 3.1

    ADB

    These are the files i use for ADB (1st in the below list) tested these on fresh installs of windows on several windows machines, all win 10

    Place them into the root of C so it reads C:\ADB much easier to navigate to that way.

    Bootloader unlock

    Boot to the bootloader with adb reboot bootloader

    type fastboot flashing unlock

    Agree to unlock - allow to boot.

    If you can't see the device using ADB

    Make sure USB Debugging is turned on

    Connect your cable to your phone and computer, when asked what you want your phone to do, click on transfer files, a driver will be installed.

    After this reconnect your phone and it'll prompt you with a disclaimer with a check box, check the box and click ok, ADB / Fastboot should now work.



    Files:

    Local System update APK, this must be used as the local OnePlus 10 Pro one will not allow a reboot during the installation, so you cannot install the Magisk boot image during an upgrade:


    ADB Files for Windows 10:

    Payload dumper program for Windows-
    https://mega.nz/folder/vU00FZDa#PIEfjl5w5wonyNAwHW3FBQ

    Oxygen OS NE2213_11_A.12 Stock boot image

    Oxygen OS NE2213_11_A.12 Patched boot image

    Oxygen OS NE2213_11_A.13 Stock boot image

    Oxygen OS NE2213_11_A.13 Patched boot image

    Oxygen OS NE2213_11_A.14 Stock boot image

    Oxygen OS NE2213_11_A.14 Patched boot image
    5
    OP UPDATED: Stock and patched boot images using magisk 25

    Oxygen OS NE2213_11_A.14 Stock boot image

    Oxygen OS NE2213_11_A.14 Patched boot image


    If they don't work (they will :) but if for whatever reason they don't) @spevil07 has been so kind to extract and patch and upload for you too, 2 posts up from here so drop the lad a thanks (y)

    Please use magisk 25 as it retains root and has a lot of under the hood fixes and tweaks for efficiency.

    Cheers (y)
    4
    OP UPDATED: Better late than never, both the boot image and patched boot images are up.

    Oxygen OS NE2213_11_A.13 Stock boot image

    Oxygen OS NE2213_11_A.13 Patched boot image

    Finally managed to get this horrific PC working where i am, turned out to be a cable that was failing on fastboot but not on adb? who knows, all i know is it took me over a day and 4 windows installations, bloody brutal.

    Anyway, i have everything i need now so the second another firmware drops it'll be here in a timely fashion, apologies for the wait.

    (y)
    3
    OP UPDATED:

    Added the local system upgrade APK as the built in one cannot be used, I do apologize if you've fallen foul of this ridiculous change.

    Please only install new updates using the OP system updater APK, listed at the bottom of the guide.

    Modified the guide to reflect changes.

    Here it is also:
    3
    Ok, you are very active here. are you moderat?
    Lol no mate, just like to be a part of a good community, seeing toxic, or unhelpful users is a bad thing to see. So if I can help change that for the better then I will.

    Plus the guides I make, my knowledge isn't anything special, but I like to simplify guides for users to keep this type of modding strong, my worst fear is android heading down the closed source road.

    Huawei have basically done that. Even after XDA partnered with them and really did help boost their sales (I read that somewhere) then they basically quit allowing users to unlock bootloaders, literally killing the modding scene for Huawei and honor devices..

    I think OnePlus is probably one of the last great open books amongst android devices, the pixel is probably in the same class in regards to modding, not sure on Sammy and my all time favourite HTC are a dead stick now, wouldn't touch Sony ever again, I think LG has gone the way of HTC just like many others.

    Plus I kind of make a lot of guides in work too, helps me learn and gives others a start point.

    👍🏻

    PS: not sure it would be a good idea to make me a mod 😂 I'd be like an angry child with a gun. 🔫 🤬