How To Guide Root OnePlus 9

Search This thread

rophiroth

Senior Member
Dec 11, 2010
510
34
Hi guys I have a problem, while performing an operation on magisk I inadvertently completely uninstalled root images and now I don't know how to restore root.
Bootloader unlocked and debug us...how do I do it??
You must find a patched boot image of your same OS and model version, then reboot to fastboot and perform the fastboot boot "img" comand, then patch with magisk app
 

mumuli

Senior Member
Aug 21, 2012
110
40
Kinda weird problem. Op 9 EU version, when i unlock bootloader on android 13, always Widevine go L3, if lock then its L1. Anyone know how to keep L1 when open bootloader and root? If i use MSM tool and go android 11 / 12, then it works fine. But android 13 did this. My Op 9pro dont make this, and it is always L1, oem unlock and root
 

PackRatDragon

Member
Dec 13, 2012
15
1
Hubbard, Oregon
So I just got my one plus. Did all the updates. When I boot into bootloader neither fastboot, or adb sees the device. Only when I have booted the phone up adb recognize that a device is attached. Everything in developer options looks right. Running os 12
 

TimmyP

Senior Member
Mar 5, 2008
482
91
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.
 

Z-Blade

Senior Member
Jan 29, 2012
709
300
Perth
So I just got my one plus. Did all the updates. When I boot into bootloader neither fastboot, or adb sees the device. Only when I have booted the phone up adb recognize that a device is attached. Everything in developer options looks right. Running os 12
Have you got the phone drivers installed on your PC? Sounds like this is missing. If you search Google for it, you should be able to find it.
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.
I don't have a TMobile variant but from the conversations in this forum, unlocking and rooting is possible. Search the forum on how to do this or post a question in the question section.
 

TimmyP

Senior Member
Mar 5, 2008
482
91
Anyone got any updates on rooting methods? Im waiting on a token but it seems others were able to root without it.

/fastboot flashing unlock asks for token
 

iniro

Senior Member
Jan 29, 2009
535
163
Hello. Im new with OP9. Is possible to root with stock A13? Can someone upload this file?
Magisk Boot Patched F74 LE2113.
Thx in advance.
Im trying to extract boot img from payload, but no boot img found on F74 EU.
payload_dumper throws an error:
uefisecapp
Traceback (most recent call last):
File "payload_dumper.py", line 89, in <module>
AssertionError: unsupported op
[17044] Failed to execute script payload_dumper

DELETE
I has an old payload_dumper version.
 
Last edited:

YEABOIIIII

Member
Jun 23, 2022
17
2
OnePlus 9
Samsung Galaxy Watch
Kinda weird problem. Op 9 EU version, when i unlock bootloader on android 13, always Widevine go L3, if lock then its L1. Anyone know how to keep L1 when open bootloader and root? If i use MSM tool and go android 11 / 12, then it works fine. But android 13 did this. My Op 9pro dont make this, and it is always L1, oem unlock and root
I have the same problem, have u found a solution?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    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.
    2
    Then I suggest you are better off without root. If you root, your phone will fail Google's SafetyNet Attestation, and therefore, you won't be able to install certain apps, like Netflix and most of banking and financial apps. Of course, there are ways to get around that too, but that would be another story...
    I appreciate the advice. I was actually able to get it figured out last night. Got the phone completely rooted, removed the bloatware, and installed a new launcher.
    1
    Had to contact OnePlus support. It's been a month since I applied for an unlock code. They asked for all the same info I already supplied, and finally sent the .bin after another week.

    Unlocked bootloader, patched boot img, and installed Magisk successfully!

    On Android 12, was keeping my phone off because it was saying it was going to update to Android 13 in a day.

    Does having an unlocked bootloader with Magisk installed still block OTA updates?
    Yes, as long as there is root, OTA will fail.

    You can also disable Automatic System Updates from Developer Options.
  • 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: