Question How to root OnePlus 9RT 5G?

Search This thread

archz2

Senior Member
Jan 25, 2013
353
62
New Delhi
OnePlus 9RT
I just got my new Oneplus 9RT 5G. I searched a lot but unable to find a method to root it via TWRP.

Can anyone please share a link to TWRP recovery so that I can flash it and root it via Magisk?


I tried to unlock the bootloader by going to the fastboot mode but keep getting 'failed' message.
1643125010075.png


I have enabled 'USB debugging' and 'allow OEM unlock' in the developer options.
 

penguinus

Senior Member
Nov 29, 2009
64
69
OnePlus 5
OnePlus 9RT
Okay. How to get the stock firmware? I checked the official website. It's not available.
Yes, it is not available on site. If you have chinese firmware (ColorOS), you can get full rom from OTA servers. Even more, for the most recent versions I can provide ready to use boot.img. But for indian Oxygen full roms not availabe yet. You can try to dump boot.img from your phone using dd.
 
  • Like
Reactions: archz2

penguinus

Senior Member
Nov 29, 2009
64
69
OnePlus 5
OnePlus 9RT
Well, looks like to dump boot.img you need root. Please try attached file (unzip it). Found it in TG, labeled as boot.img for indian Oxigen. Please note that you should NOT flash it to your device, so it should be safe enough. We will try to sideload it.

You already have installed fastboot to your PC, so I will skip this part.

To check boot.img
1. Place boot.img to your computer, to the same folder where you have fastboot installed
2. Reboot your phone to fastboot mode i.e with adb reboot bootloader
3. Do fastboot boot boot.img.
If phone will start normally, looks like boot is ok and you can use it to get rooted.

To install Magisk (get root)
1. Place boot image to phone.
2. Download Magisk and install it to the phone. Note that we use canary version of Magisk. Latest stable version doesn't work at least on chinese (ColorOS) version.
3. Start Magisk on a phone, press "Install" and choose "Select and Patch a File" (the only available option), select boot.img file.
4. Patched boot.img will be placed to Download directory named something like "magisk_patched*.img". Download this file back to PC, place to the same directory with fastboot.
5. Reboot your phone to fastboot mode i.e with adb reboot bootloader
6. Do fastboot boot magisk_patched*.img (change to correct name of file). Phone should start correctly.
7. Start Magisk again. Select "Install". This time all options should be available. Select "Direct Install (Recommended)".
8. At the end reboot and check if root is working.
 

Attachments

  • boot.img.zip
    50.8 MB · Views: 152

archz2

Senior Member
Jan 25, 2013
353
62
New Delhi
OnePlus 9RT
Well, looks like to dump boot.img you need root. Please try attached file (unzip it). Found it in TG, labeled as boot.img for indian Oxigen. Please note that you should NOT flash it to your device, so it should be safe enough. We will try to sideload it.

You already have installed fastboot to your PC, so I will skip this part.

To check boot.img
1. Place boot.img to your computer, to the same folder where you have fastboot installed
2. Reboot your phone to fastboot mode i.e with adb reboot bootloader
3. Do fastboot boot boot.img.
If phone will start normally, looks like boot is ok and you can use it to get rooted.

To install Magisk (get root)
1. Place boot image to phone.
2. Download Magisk and install it to the phone. Note that we use canary version of Magisk. Latest stable version doesn't work at least on chinese (ColorOS) version.
3. Start Magisk on a phone, press "Install" and choose "Select and Patch a File" (the only available option), select boot.img file.
4. Patched boot.img will be placed to Download directory named something like "magisk_patched*.img". Download this file back to PC, place to the same directory with fastboot.
5. Reboot your phone to fastboot mode i.e with adb reboot bootloader
6. Do fastboot boot magisk_patched*.img (change to correct name of file). Phone should start correctly.
7. Start Magisk again. Select "Install". This time all options should be available. Select "Direct Install (Recommended)".
8. At the end reboot and check if root is working.
Okay. Thanks a lot.

I checked the boot image, all the three step went absolutely fine.

To obtain Magisk, everything went well till step no. 5.

When I try to reboot with the patched image in the bootloader, the phone keeps booting in the bootloader itself. I also changed the name of the image from 'magisk_patched_bco6o' to 'bestimage', just to make sure that there aren't any special characters in the filename. Same. The phone kept booting in the fastboot mode using the image.

Now what should I do?

Edit.
I just updated the Magisk app directly from its UI. Now the phone booted fine using step 6. My device is rooted! Thanks a ton!
 
Last edited:

archz2

Senior Member
Jan 25, 2013
353
62
New Delhi
OnePlus 9RT
Okay. I'm connected to the internet and ensure that magisk has internet connectivity. I cannot see any packages to download and install. Is this normal in canary version or I have to do something about it?
 

Attachments

  • Screenshot_2022-01-26-11-09-36-96_d8049f3e75b8a389eb812bf32a88faf3.jpg
    Screenshot_2022-01-26-11-09-36-96_d8049f3e75b8a389eb812bf32a88faf3.jpg
    83.3 KB · Views: 148

penguinus

Senior Member
Nov 29, 2009
64
69
OnePlus 5
OnePlus 9RT
Okay. I'm connected to the internet and ensure that magisk has internet connectivity. I cannot see any packages to download and install. Is this normal in canary version or I have to do something about it?
Canary doesn't have internet repository. You should install modules manually. Please note that "Magisk Hide" is not available also and replaced by Zygisk function in settings. Basically it works similar to magisk hide.
 

archz2

Senior Member
Jan 25, 2013
353
62
New Delhi
OnePlus 9RT
Okay.
Canary doesn't have internet repository. You should install modules manually. Please note that "Magisk Hide" is not available also and replaced by Zygisk function in settings. Basically it works similar to magisk hide.
Okay can I install a normal magisk app now since my device is already rooted?

Having a direct internet repository in magisk is quite convenient.

Another question. I want to install Lsposed on this phone to install GravityBox module. Now in my previous phone, (oneplus 5t running stock oxygen OS, Android 10) , I always used to keep a edxposed uninstaller zip file which helped in cases when there would be a bootloop after installing a module. I used to flash that zip in the TWRP, get back things to normal, and then uninstall a particular xposed module.

Now I don't have any TWRP on this phone. I don't have any custom recovery installed on this phone!

What do you recommend for doing xposed/lsposed/edxposed based flashing and module installation?
 

penguinus

Senior Member
Nov 29, 2009
64
69
OnePlus 5
OnePlus 9RT
I can't say for sure it will not work. I just know stable version of Magisk DOESN'T work with 9RT chinese version (ColorOS). The chance to get it worked on OxigenOS is minimal as it looks for me. And what is happening with chinese phone with current magisk is bootloop. So I think it is better to not even try. At least while you don't have full ROM to recover.
Regarding absense of net repository in canary, there is a post from Magisk creator about it. Unfortunately, these functions will not back. :( I don't use many Magisk modules - just installed safetynet-fix and Systemizer manually.
Sorry, I don't have much experience with Magisk modules, the only recommendation for now is to not experiment too much while we don't have msm tool or at least full ROM.
 
Last edited:
  • Like
Reactions: archz2

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Well, looks like to dump boot.img you need root. Please try attached file (unzip it). Found it in TG, labeled as boot.img for indian Oxigen. Please note that you should NOT flash it to your device, so it should be safe enough. We will try to sideload it.

    You already have installed fastboot to your PC, so I will skip this part.

    To check boot.img
    1. Place boot.img to your computer, to the same folder where you have fastboot installed
    2. Reboot your phone to fastboot mode i.e with adb reboot bootloader
    3. Do fastboot boot boot.img.
    If phone will start normally, looks like boot is ok and you can use it to get rooted.

    To install Magisk (get root)
    1. Place boot image to phone.
    2. Download Magisk and install it to the phone. Note that we use canary version of Magisk. Latest stable version doesn't work at least on chinese (ColorOS) version.
    3. Start Magisk on a phone, press "Install" and choose "Select and Patch a File" (the only available option), select boot.img file.
    4. Patched boot.img will be placed to Download directory named something like "magisk_patched*.img". Download this file back to PC, place to the same directory with fastboot.
    5. Reboot your phone to fastboot mode i.e with adb reboot bootloader
    6. Do fastboot boot magisk_patched*.img (change to correct name of file). Phone should start correctly.
    7. Start Magisk again. Select "Install". This time all options should be available. Select "Direct Install (Recommended)".
    8. At the end reboot and check if root is working.
    2
    Hi @penguinus . I actually got worried about bootloop so I dropped the idea temporarily. Help me clear the following doubt.

    Since zygisk and Riru are incompatible with each other, if I enable Zygisk, reboot my phone, I might end up in a bootloop. Currently there is no way to get out of bootloop without data loss as no TWRP has been released to play safe.

    If I remove Riru and then reboot, then do the zygisk enabling, I will lose Lsposed framework which is essential for running GravityBox module.
    You have nothing to worry about, I switch between depending on what I need. Riui safetynet fix doesn't work so I need to switch to zygisk if I need to use it. Turning on zygisk will just disable riui and all riui dependent modules.

    Also, you need to install this ColorOSTool. It's a riui module and has some useful tweaks, including didable the auto launch limit!
    https://github.com/Xposed-Modules-Repo/com.oosl.colorostool
    Downloading from LSposed didn't work for me, but downloaded from the github did work.
    1
    Use fastboot flashing unlock instead of oem unlock.
    1
    No TWRP for now. You should get boot.img from stock firmware, then patch it using Magisk Manager, then load the phone using patched boot.img, an then install magisk to the system
    1
    Hey, i also bought the phone a week ago. If you have successfully rooted the phone can you personally help me too ?
    I really don't want to risk bricking my phone it costed a lot of my savings.
    Thankyou
    Read all the posts starting from post number 1 to number 9 in this thread.

    Let me know if you have any questions. I was also quite scared in the beginning but the process is quite linear if you follow all the instructions. 🙂