How To Guide Root OnePlus 9

Search This thread

ElianLier

Member
Apr 7, 2023
13
0
OnePlus 7T Pro
---------- full quote removed ----------

I am in the oop11 of msm, I download the most recent ota and to update where I do it

estoy en la oop11 de msm, descargo la ota mas reciente y para actualizar donde lo hago

Mod. edit: post translated. alecxs

---------- full quote removed ----------

I never throw the boot img, neither in the full nor in the incremental
 
Last edited by a moderator:

TimmyP

Senior Member
Mar 5, 2008
532
100
Remember to get your key you have to go back to the site you sent your numbers to, and check status for getting the token. They sent you no email, or any indication its ready. Just in case this is needed.
 

RogerGoodlove

Member
Feb 11, 2022
18
2
Could someone please share OP9 LE2113 F75 boot.img.. I'm having no luck with Payload Dumper or MSM since I changed laptop. Thankyou.
 

gullzway

Senior Member
Nov 17, 2007
391
71
Hey I just got this phone today from Tmobile. Last one they had around me.

Is rooting this still possible? OEM unlocking is greyed out in developer options.

on security update 5/1/21

baseband ends in 1.796.5.817.2

build number
11.2.4.4.LE54CB

in case any of that is relevant.

Sorry total noob to Oneplus.
Did you try this to enable OEM unlocking? I did this on my TMobile version when I got it last year, though I still haven't rooted it. I may be getting around to doing that now.

 

gullzway

Senior Member
Nov 17, 2007
391
71
Im long rooted now. Get a token!
Nice. Is a token similar to getting an Unlock code from Motorola?

I'll have to look that up, haven't used this phone since Sprint gave it to me last year because they also gave me a Pixel 6 Pro. My OnePlus 9 is still on Android 11.

Edit: just sent unlock code to OnePlus.
Was wanting to stay on Android 11, but my Asus Router wasn't working with Dual Wan using this phone's USB hotspot. Updated to Android 12 and it's working. Need to root now.
 
Last edited:

Millio345

New member
Nov 18, 2022
2
0
[Fixed, see edit]
I'm having some issues getting root back after accidentally installing OTA update without going through Magisk...
I'm on latest version (LE2113_11_F.75) with unlocked bootloader and root through Magisk was working fine before.

These are the steps I've followed:
  • I downloaded the official signed flashable zip for LE2113_11_F.75 from the stickied thread on this forum
  • I used payload_dumper to extract the boot.img and pushed the boot.img to my phone with adb push
  • I then patched the boot.img with magisk (version 26.1) and downloaded the patched image (magisk_patched-26100_xxx.img) through adb pull
  • I rebooted into fastboot and used "fastboot flash boot magisk_patched-26100_xxx.img" and then "fastboot reboot"
All steps above work perfectly without error, but I'm still not rooted, Magisk still looks the same (Installed: N/A, Zygisk: No, Ramdisk: Yes) and the "install" option in Magisk only has the "Select and patch a file" option, which I already used before.

Not sure what I'm doing wrong, thanks in advance!

EDIT: Fixed it. I had hidden the Magisk app before and I somehow had both the "Magisk" app and the (hidden) "Settings" app. Opening the settings app did show magisk and zygisk as installed and fixed the issues
 
Last edited:

zjyoti

Member
Jul 2, 2016
14
0
OnePlus 9
Can anyone help me find updated steps for rooting? My build number is currently LE2115_11_F.21 and running OOS13. I got confused reading all the posts about how to root dated back to 2021. Can any good soul help please?
 

shadabkiani

Senior Member
Mar 2, 2018
488
192
Pakistan
HTC 10
OnePlus 9
Can anyone help me find updated steps for rooting? My build number is currently LE2115_11_F.21 and running OOS13. I got confused reading all the posts about how to root dated back to 2021. Can any good soul help please?
The summary of the process is this. Your build number says that you are currently on F.21 firmware. In order to obtain root, you need "boot.img" from F.21 firmware so that you can patch this boot.img from Magisk app, then temporarily boot this newly "patched_boot.img" and then root permanently from Magisk app's Direct Install option.

Follow these steps. You need PC for the process. I assume you already have proper drivers for OnePlus installed on your PC.

First you need to obtain boot.img for F.21 firmware (or whatever firmware you are currently on). You can either ask someone to share the boot.img for F.21; or (even better) you can extract it yourself from your phone using MSM Tool. To extract it yourself, download MSM Tool from this link (choose the Global version since your firmware is Global). Meanwhile it's downloading, go to your phone, reboot to fastboot mode, check your current active slot by this command fastboot getvar current-slot and note/remember the output from the command (whether _a or _b). Turn off your phone and DO NOT connect to PC yet. Now once MSM is downloaded, run MSM Tool exe. Press F8 and select either boot_a or boot_b depending on your current slot as checked from fastboot before. In the password section, enter oneplus then go ahead and click Readback. It will say waiting for device. Now come back to your turned off phone, hold both vol- and vol+ buttons and connect phone to PC. The PC will recignize the device but phone screen will still be black. MSM tool will read the phone and extract the selected boot.img to C: drive, and phone will reboot.

Now copy that extracted boot.img from C: to your phone. Install Magisk app. Patch that boot.img. The app will create magisk_patched_boot.img in your phone's Download folder. Copy that newly patched boot.img to your PC. Reboot your phone to fastboot mode, and run this command to temporarily boot the patched boot.img:
fastboot boot <your_patched_boot.img>
Once you phone boots up, go to Magisk app, choose Install and select Direct Install. This will permanently root your current firmware.

Note: When there is a new OTA update, the system will show it's available but it will fail to install because of root. So when there is a new OTA, go to Magisk app, uninstall and restore images. Then proceed with OTA, and after successfull update, extract boot.img again and get root following the above steps.
 
  • Love
  • Like
Reactions: jmadiaga and zjyoti

zjyoti

Member
Jul 2, 2016
14
0
OnePlus 9
The summary of the process is this. Your build number says that you are currently on F.21 firmware. In order to obtain root, you need "boot.img" from F.21 firmware so that you can patch this boot.img from Magisk app, then temporarily boot this newly "patched_boot.img" and then root permanently from Magisk app's Direct Install option.

Follow these steps. You need PC for the process. I assume you already have proper drivers for OnePlus installed on your PC.

First you need to obtain boot.img for F.21 firmware (or whatever firmware you are currently on). You can either ask someone to share the boot.img for F.21; or (even better) you can extract it yourself from your phone using MSM Tool. To extract it yourself, download MSM Tool from this link (choose the Global version since your firmware is Global). Meanwhile it's downloading, go to your phone, reboot to fastboot mode, check your current active slot by this command fastboot getvar current-slot and note/remember the output from the command (whether _a or _b). Turn off your phone and DO NOT connect to PC yet. Now once MSM is downloaded, run MSM Tool exe. Press F8 and select either boot_a or boot_b depending on your current slot as checked from fastboot before. In the password section, enter oneplus then go ahead and click Readback. It will say waiting for device. Now come back to your turned off phone, hold both vol- and vol+ buttons and connect phone to PC. The PC will recignize the device but phone screen will still be black. MSM tool will read the phone and extract the selected boot.img to C: drive, and phone will reboot.

Now copy that extracted boot.img from C: to your phone. Install Magisk app. Patch that boot.img. The app will create magisk_patched_boot.img in your phone's Download folder. Copy that newly patched boot.img to your PC. Reboot your phone to fastboot mode, and run this command to temporarily boot the patched boot.img:
fastboot boot <your_patched_boot.img>
Once you phone boots up, go to Magisk app, choose Install and select Direct Install. This will permanently root your current firmware.

Note: When there is a new OTA update, the system will show it's available but it will fail to install because of root. So when there is a new OTA, go to Magisk app, uninstall and restore images. Then proceed with OTA, and after successfull update, extract boot.img again and get root following the above steps.
Thank you for such detailed guildeline! You are a lifesaver! :)
 

downhere

Senior Member
Nov 5, 2010
455
162
The summary of the process is this. Your build number says that you are currently on F.21 firmware. In order to obtain root, you need "boot.img" from F.21 firmware so that you can patch this boot.img from Magisk app, then temporarily boot this newly "patched_boot.img" and then root permanently from Magisk app's Direct Install option.

Follow these steps. You need PC for the process. I assume you already have proper drivers for OnePlus installed on your PC.

First you need to obtain boot.img for F.21 firmware (or whatever firmware you are currently on). You can either ask someone to share the boot.img for F.21; or (even better) you can extract it yourself from your phone using MSM Tool. To extract it yourself, download MSM Tool from this link (choose the Global version since your firmware is Global). Meanwhile it's downloading, go to your phone, reboot to fastboot mode, check your current active slot by this command fastboot getvar current-slot and note/remember the output from the command (whether _a or _b). Turn off your phone and DO NOT connect to PC yet. Now once MSM is downloaded, run MSM Tool exe. Press F8 and select either boot_a or boot_b depending on your current slot as checked from fastboot before. In the password section, enter oneplus then go ahead and click Readback. It will say waiting for device. Now come back to your turned off phone, hold both vol- and vol+ buttons and connect phone to PC. The PC will recignize the device but phone screen will still be black. MSM tool will read the phone and extract the selected boot.img to C: drive, and phone will reboot.

Now copy that extracted boot.img from C: to your phone. Install Magisk app. Patch that boot.img. The app will create magisk_patched_boot.img in your phone's Download folder. Copy that newly patched boot.img to your PC. Reboot your phone to fastboot mode, and run this command to temporarily boot the patched boot.img:
fastboot boot <your_patched_boot.img>
Once you phone boots up, go to Magisk app, choose Install and select Direct Install. This will permanently root your current firmware.

Note: When there is a new OTA update, the system will show it's available but it will fail to install because of root. So when there is a new OTA, go to Magisk app, uninstall and restore images. Then proceed with OTA, and after successfull update, extract boot.img again and get root following the above steps.
Cool! :)

But why not just "adb sideload magisk.zip" instead?
 

downhere

Senior Member
Nov 5, 2010
455
162
I don't know if it works without bugs with that method on OnePlus 9. Rooting with extracting/patching boot.img has been the recommended way, although sideloading might work good too.
I've never gone the boot.img way but sideload way instead. I haven't experienced any bugs. Although I'm not on stock ROM anymore.
 

shadabkiani

Senior Member
Mar 2, 2018
488
192
Pakistan
HTC 10
OnePlus 9
I've never gone the boot.img way but sideload way instead. I haven't experienced any bugs. Although I'm not on stock ROM anymore.
The drawback with rooting through recovery's adb sideload is that it doesn't back up the original stock boot.img, so in case you want to remove root and restore images, you can't do that from Magisk's Uninstall function. Also, OOS firmware's recovery doesn't allow adb sideload in the first place. It only works with custom ROM's recovery.

With the recommended method of patching, temporarily booting and then using Direct Install from Magisk app, you can easily unroot your phone and restore stock boot.img from Magisk.
 
Last edited:

TimmyP

Senior Member
Mar 5, 2008
532
100
You dont hear from them. You go back to the site and check status (you'll see the link) and they will have the key. I bet its there.

If not, I didn't know you had to check for 3 weeks, so it could be longer.
 

gullzway

Senior Member
Nov 17, 2007
391
71
You dont hear from them. You go back to the site and check status (you'll see the link) and they will have the key. I bet its there.

If not, I didn't know you had to check for 3 weeks, so it could be longer.
Thanks, I've checked. It says
"Status : Applied

Update time : 2023.04.30 19:21:33"

No Link.
 
Last edited:

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: