How To Guide Root OnePlus 9

Search This thread

lindahl85

Senior Member
Feb 9, 2011
1,121
155
Vetlanda
What post should I go with on my OP9 CN version? Waiting for the mail tomorrow and then root :) It comes with Global rom.
 

die_braut

Senior Member
Jun 7, 2009
194
32
Central Germany
OnePlus 9
I hate to be that guy, (I searched and could not find a complete guide, yet):

Can someone write down step-by-step what to do, to upgrade from rooted EU OP9 (no TWRP) OxygenOS 11 to rooted OxygenOS 12 without losing data or formatting?

If I missed the place where its already explained, please point me to it.

Thanks in advance!
 
  • Like
Reactions: kzolt and MoHed

Z-Blade

Senior Member
Jan 29, 2012
753
343
Perth
Very simple.

Download the update.
Install it BUT don't reboot.
Go to magisk. Click install to inactive SLOT.

Bam reboot
I just got the OTA notification for the new 12.C47 update, I just want to double check. The steps above can be done via OTA? As in install it via OTA, do not reboot and go into Magisk and install to inactive slot? I just got my OP 9 a week ago so still learning the ways to Root. It was much simpler on my old Oneplus 5.
 

AxelM

Senior Member
Jul 10, 2007
143
14
OnePlus 9
@Z-Blade : I found this in th Oneplus 9 pro forum:

OnePlus9 Pro Forum from @kullurumanoj

Incremental OTA with root:
1. Open magisk manager
2. Click Uninstall Magisk, then select Restore Images (Do not do a complete uninstall) and wait for it to finish
3. Do NOT reboot
4. Navigate to settings, and check for updates
5. Download and install the update as you would normally (It will download the incremental update, not the full 2GB+ file, saving you a lot of bandwidth)
6. Once done, open up magisk WITHOUT REBOOTING
7. Tap the install button, and select the 4th option (Install to inactive slot), once done, your device will reboot and you will be on the new OTA, with root, preserving your magisk modules if you have any.

Full Zip with root:
1. First disable magisk modules
2. Restart
3. Download update and let it install
4. Then go to magisk
5. Install to inactive slot in magisk
6. Reboot

But I don't know how good it works.

My question woud be:
Does this way also applies for the le2110 (chinese variant op9)? Or are there other constrains?
 
  • Like
Reactions: Z-Blade

Z-Blade

Senior Member
Jan 29, 2012
753
343
Perth
@Z-Blade : I found this in th Oneplus 9 pro forum:

OnePlus9 Pro Forum from @kullurumanoj

Incremental OTA with root:
1. Open magisk manager
2. Click Uninstall Magisk, then select Restore Images (Do not do a complete uninstall) and wait for it to finish
3. Do NOT reboot
4. Navigate to settings, and check for updates
5. Download and install the update as you would normally (It will download the incremental update, not the full 2GB+ file, saving you a lot of bandwidth)
6. Once done, open up magisk WITHOUT REBOOTING
7. Tap the install button, and select the 4th option (Install to inactive slot), once done, your device will reboot and you will be on the new OTA, with root, preserving your magisk modules if you have any.

Full Zip with root:
1. First disable magisk modules
2. Restart
3. Download update and let it install
4. Then go to magisk
5. Install to inactive slot in magisk
6. Reboot

But I don't know how good it works.

My question woud be:
Does this way also applies for the le2110 (chinese variant op9)? Or are there other constrains?
Thanks for this. I tried this and also the method I posted above, both of them don't work for me. The one you posted, it looks like my method of getting root did not backup the boot.img file, so it couldn't restore the image. Simply trying to update via OTA with a patched boot.img does not work, it causes an error half way.

I think what I need to do is restore the original boot.img via adb, do the update via OTA and then flash the patched boot.img. I will let people know how I go.
 

AxelM

Senior Member
Jul 10, 2007
143
14
OnePlus 9
Okay, sorry for you! But in fact a read your comment and come to the conclusion to create a boot.img from the actual image, to prevent this error.
Hope your way works, pls let us know!
 

Z-Blade

Senior Member
Jan 29, 2012
753
343
Perth
So what I ended up doing is this:

1. Install Oxygen Updater app from the Play Store
2. Download the Full OTA.
3. Download and install the OP Local Update apk.
4. Use the OP Local Update app to flash the Full OTA (you will lose root and custom recovery).

Optional - Retaining Root
DO NOT REBOOT if you want to keep Root

5. Open Magisk and tap 'Install'.
6. Select ' Install to Inactive Slot (After OTA)'.
7. Tap ' LET'S GO', let it run and then reboot.

After the system boot back up, check to make sure you have retained Root.
 
Last edited:
  • Like
Reactions: phoneturf and AxelM

AxelM

Senior Member
Jul 10, 2007
143
14
OnePlus 9
So what I ended up doing is this:

1. Install Oxygen Updater app from the Play Store
2. Download the Full OTA.
3. Extract Payload and use Payload dumper to grab boot.img (optional if you want root back)
4. Download and install the OP Local Update Apk.
5. Use the OP Local Update app to flash the Full OTA (you will lose root and custom recovery).
6. Use Magisk to patch boot.img and flash it to get root back (optional).
Thank you for the information. Did step 5 reset all the user data?
You probably don't have a LE2110? so I have to figure out that hard whether it works there too :)
 

Z-Blade

Senior Member
Jan 29, 2012
753
343
Perth
Thank you for the information. Did step 5 reset all the user data?
You probably don't have a LE2110? so I have to figure out that hard whether it works there too :)
You don't lose any data and no data is reset.

I have also found out a way to retain Root after flashing the Full OTA. I have edited and updated my post above. This is much simpler and easier. Later on I will create a guide as I think it will be helpful for those on Android 12 who wants to update and retain root access.
 
  • Like
Reactions: AxelM

AxelM

Senior Member
Jul 10, 2007
143
14
OnePlus 9
You don't lose any data and no data is reset.

I have also found out a way to retain Root after flashing the Full OTA. I have edited and updated my post above. This is much simpler and easier. Later on I will create a guide as I think it will be helpful for those on Android 12 who wants to update and retain root access.
Do I have to be on Android 12 already to install the app?
I am still on E.13 (11.2.10.10), I have downlaoded c.47 from xda and put it into root folder on my phone. After that I wanted to install the app. But I am not able to install it...(I have also installed the oxygen updater, just in case, but no change at all).
What would be the next steps?
 

Z-Blade

Senior Member
Jan 29, 2012
753
343
Perth
Do I have to be on Android 12 already to install the app?
I am still on E.13 (11.2.10.10), I have downlaoded c.47 from xda and put it into root folder on my phone. After that I wanted to install the app. But I am not able to install it...(I have also installed the oxygen updater, just in case, but no change at all).
What would be the next steps?
Those steps is for when you are already on Android 12 and wanting to update. I am not 100% sure it will work as I have not tested it but I assume it will work since it's a full OTA package.
 

mooadeer

Member
Mar 9, 2015
13
3
Samsung Galaxy S6
OnePlus 9
Hello, just a little question cuz I'm new to onePlus this is my first onePlus phone do this methos still applicable after updating the device because I bought it from someone with the latest update installed ,
thanks a lot
 

rophiroth

Senior Member
Dec 11, 2010
519
34
Should I search for a boot.img of my build number LE2111_11_c.60 and patch that with the magisk app before been root, and all my data will be wiped? Is there someone who have this version patched or original boot or at least where to find the full package?

I found this, but the india version of the file is LE2111_11.C.23 and not c.60


Thanks
 
Last edited:

rophiroth

Senior Member
Dec 11, 2010
519
34
I can't find a full OTA of my cyurrently version LE2111_11_C60 where did oneplus hide them? haha
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    This is for Europe (11.2.2.2.LE25DA). If you are on Global, EU version works, but up to you. It appears for last year, unless you are from India, OnePlus doesn't care. It might be a while before a Full OTA update for Global is released, you'll notice updates come without it for Global or on their Global support site, the firmware is outdated.
    - On T-Mobile have full 5G. I don't know about AT&T and Verizon. Should be same.

    If you are on Global and you just received your phone. Do all the updates from the incremental through device. If you want root, you can flash with the EU patched boot.img and everything will work as normal
    **** but once you do this, you will need to wait for Global full OTA to update next time, unless you managed to have a backup copy of the unpatched boot.img

    Do the usual to unlock your OnePlus 9: oem unlock, usb debugging from developer. Boot into bootloader and use adb command /fastboot flashing unlock

    This will wipe your phone and reboot. Setup your phone

    Install Magisk from his official github: https://github.com/topjohnwu/Magisk/releases/tag/v22.0
    - Topjohn provides full instructions on how to do this yourself as well.

    Reboot into bootloader

    Flash boot the magisk modified boot.img. /fastboost flash boot boot.img

    Go into Magisk app and install via direct install and all done.

    Return to stock
    - Restore boot.img from Magisk
    - Uninstall Magisk
    - Flash the stock boot.img
    - Relock the bootloader, will wipe and return to factory reset.

    Stock 11.2.33 Boot.img
    Magisk Patched 11.2.33 boot.img

    Patched Boot.img for Europe (11.2.2.2.LE25DA)
    Stock Boot.img for Europe (11.2.2.2.LE25DA)

    Future Full OTA Updates
    - Update as usual
    - Go into Magisk and choose direct install and then install to inactive slot after OTA
    - This will retain root

    How to do it yourself:

    Download full OTA, usually Oxygen Updater App, XDA has links or from https://www.oneplus.com/support/softwareupgrade

    Download Payload Dumper

    Extract and place payload.bin in input folder
    output.jpg


    Run the payload_dumper.exe

    In the output folder will be boot.img, move that onto your phone, folder of your choice

    Go to Magisk app, click install
    Choose Select and Patch a File
    Choose the file and it will patch it, Magisk will say where the file is located.
    That is your patched boot.img file. Use that to flash / root your phone.

    Remember only have do this once, you don't have to do this again with subsequent updates.
    4
    11.2.4.4LE25AA is out!

    Here's what I did to get the partial OTA
    --always back up your critical data--
    0. Download Magisk-patched boot.img and SDK tools
    1. Uninstall Magisk (restore backup)
    2. Reboot
    3. Settings>System>Check for update> Download and install>Reboot
    4. Verify installation (Settings >About phone)
    5. Reboot to bootloader
    6. Hookup phone to desktop, navigate to the directory with patched boot.img
    7. "Fastboot devices" to ensure connection
    8. "Fastboot boot boot11244magisk.img"
    9. Once the OP9 started rebooting, I pulled out the USB and let it finish booting up
    10. Launch Magisk, tap Install, and then select Direct Installation. Reboot!

    Here's the Magisk-patched 11244AA boot.img:
    4
    I uploaded 11.2.6.6DA images here
    3
    This method worked for me, though I'm now running the same issue as Slikkster2k, since I don't have an unpatched boot.img, I can't uninstall magisk to update via OTA.

    I would suggest, for those wanting to be able to update in the future (until we get a custom recovery), that instead of /fastboot flash boot boot.img, use /fastboot boot boot.img and then let Magisk finish the install. When Magisk patches the boot image, it will take a backup of the stock one to be used for uninstallation.
    3
    I'm on 11.2.7.7.LE25BA Europe version and I just made an img for use with this guide if you want to save yourselves the trouble of making one: