• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Updated/All Versions & Models!] Root OnePlus 7T Pro

Search This thread

HolyChickenGuy

Senior Member
Jul 30, 2017
144
89
www.instagram.com
OnePlus 7T Pro
How to root any version of the OnePlus 7T Pro!

1. Make sure your bootloader is unlocked!

2. Once you're unlocked enter the following ADB commands to extract your current boot image (Your phone needs to be on)

adb shell dd if=/dev/block/bootdevice/by-name/boot_a of=/boot_a.img

adb pull /boot_a.img pathinyourpc

3. Download & install Magisk Manager on your phone

4. Put the boot_a.img file on your phone

5. Open the magisk manager app and click the "Advanced Settings" button, then enable "Prserve AVB 2.0/dm-verity & Preserve force encryption", then select the top "Install" button and select "Patch to boot image" and select the boot_a.img

6. Now magisk will create a magisk patched boot image file, put that on your computer

7. Now enter the following ADB command

adb reboot fastboot

fastboot --set-active=a

fastboot boot pathtomagiskpatched.img

8. Now you'll boot into the system, reopen the magisk app and click the top install button again and select "Direct install", then reboot

Congratulations you've now successfully rooted your phone!
 
Last edited:

Lossyx

Senior Member
Jan 14, 2014
1,527
778
OnePlus 7T Pro
EDIT: This guide is wrong.

Check these references for the proper guide to root. OP refuses to acknowledge it's wrong even when I pointed it out to him with proof.

https://forum.xda-developers.com/showpost.php?p=81023631&postcount=144
^^^
Mainly this one.

https://forum.xda-developers.com/showpost.php?p=81105485&postcount=171

https://forum.xda-developers.com/showpost.php?p=81106827&postcount=173

-----

Now I have something so do for the weekend, thanks :)

Just a question, have you tried Viper4Android (if your use it)?: Use 2.7.1.6 stable version.
 
Last edited:

Dukynuky

Member
Oct 18, 2019
5
0
hi,


tryed it out.. When i boot your patched image.. there is no install button in magisk. It tolds me that i am already on the newest version.

Second.. WLAN isnt working any more. Cant enable wlan. When i reboot with stock img. everything is fine.
 

HolyChickenGuy

Senior Member
Jul 30, 2017
144
89
www.instagram.com
OnePlus 7T Pro
hi,


tryed it out.. When i boot your patched image.. there is no install button in magisk. It tolds me that i am already on the newest version.

Second.. WLAN isnt working any more. Cant enable wlan. When i reboot with stock img. everything is fine.

Yes it says its installed thats correct but you need to install it again in the magisk app so it stays after restarting the phone. I don't know about WLAN tho
 

Dukynuky

Member
Oct 18, 2019
5
0
Can you turn on Wifi ?
When i turn it on. It is disabled at the end.
There are similar problems in the 7t forums. Seems a problem with the used magisk version for the boot image.. did you use the canary magisk files ?

and yes.. I know why i need to install. But the linked version of magisk says only.. uninstall..


Edit: i have a european version of the oneplus 7t pro .. and can you provide the original boot image.
 
Last edited:

Lossyx

Senior Member
Jan 14, 2014
1,527
778
OnePlus 7T Pro
I can confirm I have successfully rooted using this method, and WIFI is working fine. Thank you very much, OP and everyone involved, no wits time to set up my device :D
 
  • Like
Reactions: someshdave

Lossyx

Senior Member
Jan 14, 2014
1,527
778
OnePlus 7T Pro
I tried magisk and now it loops to fastboot, does anyone know to recover from this? Does the msm tool for OP7T Pro?

edit: flashed the original boot img and boots fine, whever i try to boot magisk patched it bootlops because faulty drivers
to clear up, i tried installing viper4android driver directly from the app, so i guess theres residue left
 
Last edited:

droidvark

Senior Member
Jul 22, 2013
69
17
Works like a charm!

Minor thing you may want to clarify (I know you know, but to prevent confusion for readers), you give a warning that this will wipe all data, but that is not exactly true. Unlocking the bootloader wipes all data, but that step is not part of your instructions. Just following your steps on an already unlocked phone does not wipe the phone.

Thanks to everyone who made this possible so soon!
 
  • Like
Reactions: Ben Milanzi

Dukynuky

Member
Oct 18, 2019
5
0
Can you turn on Wifi ?
When i turn it on. It is disabled at the end.
There are similar problems in the 7t forums. Seems a problem with the used magisk version for the boot image.. did you use the canary magisk files ?

and yes.. I know why i need to install. But the linked version of magisk says only.. uninstall..


Edit: i have a european version of the oneplus 7t pro .. and can you provide the original boot image.

got ist working.. layer 8 error.. didnt had the ota update installed.
Updated oxygen os.. then wifi is working. also used canary magisk files.. works perfekt.. thanks :)
 

HolyChickenGuy

Senior Member
Jul 30, 2017
144
89
www.instagram.com
OnePlus 7T Pro
Can you turn on Wifi ?
When i turn it on. It is disabled at the end.
There are similar problems in the 7t forums. Seems a problem with the used magisk version for the boot image.. did you use the canary magisk files ?

and yes.. I know why i need to install. But the linked version of magisk says only.. uninstall..


Edit: i have a european version of the oneplus 7t pro .. and can you provide the original boot image.

my wifi works perfectly fine, I have the EU version too.

I attached screenshots of what to do with the installed, please select the direct install option and then reboot!
 
Last edited:

HolyChickenGuy

Senior Member
Jul 30, 2017
144
89
www.instagram.com
OnePlus 7T Pro
Works like a charm!

Minor thing you may want to clarify (I know you know, but to prevent confusion for readers), you give a warning that this will wipe all data, but that is not exactly true. Unlocking the bootloader wipes all data, but that step is not part of your instructions. Just following your steps on an already unlocked phone does not wipe the phone.

Thanks to everyone who made this possible so soon!

I have a warning above the instructions already, I think you might have missed it
 

HolyChickenGuy

Senior Member
Jul 30, 2017
144
89
www.instagram.com
OnePlus 7T Pro
I tried magisk and now it loops to fastboot, does anyone know to recover from this? Does the msm tool for OP7T Pro?

edit: flashed the original boot img and boots fine, whever i try to boot magisk patched it bootlops because faulty drivers
to clear up, i tried installing viper4android driver directly from the app, so i guess theres residue left

I also bootlooped as well, I tried to install liveboot and i guess that didnt work lol

anyways, I fixed my bootloop by booting the unpatched boot img and then doing a factory reset in the settings, after that you can just boot to the magisk boot img again!
 

droidvark

Senior Member
Jul 22, 2013
69
17
I have a warning above the instructions already, I think you might have missed it

I'm not sure where the misunderstanding is coming from, I know that you give that warning. What I mean is that strictly speaking following your steps does not wipe the phone, unlocking the bootloader wipes the phone. But you don't have that step in your instructions. See what I mean? :).

When I read your steps, I was like "wipes my phone how?" Maybe booting your image would wipe my phone or something? I'm glad it didn't :).

I just thought for clarity's sake it would be good to make that clear in the steps that's all!
 

HolyChickenGuy

Senior Member
Jul 30, 2017
144
89
www.instagram.com
OnePlus 7T Pro
I'm not sure where the misunderstanding is coming from, I know that you give that warning. What I mean is that strictly speaking following your steps does not wipe the phone, unlocking the bootloader wipes the phone. But you don't have that step in your instructions. See what I mean? :).



When I read your steps, I was like "wipes my phone how?" Maybe booting your image would wipe my phone or something? I'm glad it didn't :).



I just thought for clarity's sake it would be good to make that clear in the steps that's all!
Oh sorry, yeah I rewrote it to make it clearer. Unlocking the bootloader will wipe your data

Sent from my HD1913 using Tapatalk
 
  • Like
Reactions: droidvark

Lossyx

Senior Member
Jan 14, 2014
1,527
778
OnePlus 7T Pro
I also bootlooped as well, I tried to install liveboot and i guess that didnt work lol

anyways, I fixed my bootloop by booting the unpatched boot img and then doing a factory reset in the settings, after that you can just boot to the magisk boot img again!

Damn, you are my hero. Did a factory reset and followed the OP again, now everything is fine and I'm rooted. Thank you again.

edit: also, for safety precaution, disable automatic updates in Developer options
https://topjohnwu.github.io/Magisk/tutorials.html#ota-installation
 
Last edited:

daveuk87

Senior Member
Dec 6, 2009
150
60
Great, I'll check back in on this tomorrow and see how everyone is getting on before I try. Had a skim through here this morning before mine arrived and didn't see anything so set up as is.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 32
    How to root any version of the OnePlus 7T Pro!

    1. Make sure your bootloader is unlocked!

    2. Once you're unlocked enter the following ADB commands to extract your current boot image (Your phone needs to be on)

    adb shell dd if=/dev/block/bootdevice/by-name/boot_a of=/boot_a.img

    adb pull /boot_a.img pathinyourpc

    3. Download & install Magisk Manager on your phone

    4. Put the boot_a.img file on your phone

    5. Open the magisk manager app and click the "Advanced Settings" button, then enable "Prserve AVB 2.0/dm-verity & Preserve force encryption", then select the top "Install" button and select "Patch to boot image" and select the boot_a.img

    6. Now magisk will create a magisk patched boot image file, put that on your computer

    7. Now enter the following ADB command

    adb reboot fastboot

    fastboot --set-active=a

    fastboot boot pathtomagiskpatched.img

    8. Now you'll boot into the system, reopen the magisk app and click the top install button again and select "Direct install", then reboot

    Congratulations you've now successfully rooted your phone!
    13
    Here are the files for 10.0.4 update-
    Magisk patched boot img
    Original boot img

    All procedures are the same. Press Thanks if this helped you!
    11
    Edit: This works well for 10.0.7 (tested). I had a bootloop on 10.0.8 and uses MSM Download Tool to restore 10.0.7.

    To help people that did not understand how to do everything (like me the first time 👼), here how I done it :).

    Prerequisites:

    While the phone is on, reboot to fastboot using the advanced reboot menu or the following adb command:
    Code:
    adb reboot-bootloader

    Now the phone is on fastboot, temporarly boot on twrp (only boot, not flash):
    Code:
    fastboot boot ./twrp.img

    This will reboot the phone to TWRP after few seconds.
    TWRP is not working (no decryption) BUT it allows to use adb commands (on the computer).

    To get the boot image from the phone:
    Code:
    adb shell dd if=/dev/block/bootdevice/by-name/boot_a of=/boot_a.img
    adb pull /boot_a.img "C:\Users\YOUR SESSION NAME\Desktop"

    Now click on TWRP: reboot > system. The system will reboot to Android.

    Note: boot_a.img size is around 98 Mb for 10.0.7. If you have something below like 20 Mb, then you do not have a full boot image! You have to restart the procedure.

    Next follow steps 3 to 8 (download magisk, then patch the boot image, then flash it to the phone).
    Note: The magisk patched boot.img will be on download folder (android side, not PC)

    How to root any version of the OnePlus 7T Pro!

    1. Make sure your bootloader is unlocked!
    2. Once you're unlocked enter the following ADB commands to extract your current boot image (Your phone needs to be on)

    3. Download & install Magisk Manager on your phone

    4. Put the boot_a.img file on your phone

    5. Open the magisk manager app and click the "Advanced Settings" button, then enable "Prserve AVB 2.0/dm-verity & Preserve force encryption", then select the top "Install" button and select "Patch to boot image" and select the boot_a.img

    6. Now magisk will create a magisk patched boot image file, put that on your computer

    7. Now enter the following ADB command
    Code:
    adb reboot fastboot
    
    fastboot --set-active=a
    
    fastboot boot pathtomagiskpatched.img

    8. Now you'll boot into the system, reopen the magisk app and click the top install button again and select "Direct install", then reboot

    Congratulations you've now successfully rooted your phone!
    5
    I had to re-root my phone. And I noticed there were some issues with OPs thread so here are the steps I took in order to get a successful root on the 10.0.7.

    1. Unlock your phone.
    2. Download twrp-3.3.1-5-hotdog-unified-mauronofrio.img from here: https://forum.xda-developers.com/7t-pro-mclaren/how-to/how-to-guide-root-oneplus-7t-pro-t4021325 (step 5)
    3. Put your phone in fastboot-mode and type: fastboot boot twrp-3.3.1-5-hotdog-unified-mauronofrio.img
    4. Go inside TWRP (Swipe right)
    5. Run these commands while your phone showing TWRP recovery normally and connected to your pc.
    adb shell dd if=/dev/block/bootdevice/by-name/boot_a of=/boot_a.img
    adb pull /boot_a.img c:\android\
    Note: You'll now get a boot_a.img on your pc at c:\android\boot_a.img
    6. Download & install Magisk Manager on your phone
    7. Copy the c:\android\boot_a.img over to your phone
    8. Open the magisk manager app and click the "Advanced Settings" button, then check these:
    > Prserve AVB 2.0/dm-verity
    > Preserve force encryption"
    Then select the top "Install" button -> Tap "Install" -> Tap: "Select and patch a file" and select the boot_a.img from earlier.
    9. on your phone you'll see where the magisk creates a new patched boot image. Transfer this file over to your pc. You'll likely need to reconnect the cable in order to refresh folder data to locate the new file.
    10. Put your phone in fastboot-mode
    11. Run these commands:
    fastboot --set-active=b
    fastboot boot magisk_patched.img
    12. Phone will now boot with no wifi working. That's normal. Open Magisk and tap top "Install"-button again. Now click Direct Install. Then Reboot.
    Note: If for some reason Magisk hangs during step 12 above you'll need to restart from step 11 again. Dont rush it when you start Magisk. Leave the phone alone for a minute after booting up and you should succeed.

    That's it. Worked for me.