yashsingh1/xdaforums huggingface dataset:
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
The only way as of right now to have a functional TWRP on the 7t is to use a custom rom like YAAP or Derpfest, EvoX etc. Nothing with a base of OOS whether it be oos10 or oos11 beta can have twrp because there is a flaw in decrypting /data
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] bynarie:
The worst thing you could do is have a locked bootloader(in my opinion) because your boot.img needs to be modified for root, and locked bootloader wouldnt boot a modified boot.img would it? Plus, if/when you brick your phone, itd be a ***** to fix with locked bootloader.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Nvm cant delete
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] An0nLegion:
I flashed a patched bootloader onto my OP7t to run Magisk. After flashing the patched boot.img , I have superuser with Magisk but wifi won't work. When I reset my device wifi will work again but I get kicked out of superuser and Magisk is useless, so I have to flash the patched boot.img again. And again the same thing happens, no wifi, and then after reset I get back wifi but get kicked out of superuser. I don't know whats gong on, my bootloader is unlocked and Im using latest international OOS
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
Don't flash the image.

Boot it, then in magisk manager do a direct install.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] _sky.captain_:
On OOS10, you can absolutely use @mauronofrio 's TWRP to root your OP7t. As a prerequisite, download the current .img file for TWRP (not the installable version). Currently this file is named twrp-3.4.0-2-hotdog-unified-mauronofrio.img.

After that, here is a really high-level outline of what you need to do:

Export your current bootdevice file.

Let Magisk Manager patch the bootdevice file.

Flash the patched bootdevice file back to your phone.

Here are the same steps with a little more detail:

Export your current bootdevice file​

Install Magisk Manager.

Reboot into fastboot mode.

Issue this command: fastboot boot twrp-3.4.0-2-hotdog-unified-mauronofrio.img. This will launch TWRP without installing it.

After TWRP launches, you don't need to use it directly. Instead, connect to your phone with adb shell and then run whoami to reassure yourself that you are root. :)

From inside the adb session, run this command: dd if=/dev/block/bootdevice/by-name/boot of=/tmp/boot.img. This will create a physical copy of your boot device.

Type exit to end your adb session.

Back at your OS shell, type adb pull /tmp/boot.img. This will export your bootdevice file to your OS.

Let Magisk Manager patch the bootdevice file​

Restart your phone normally and launch Magisk Manager.

Choose to install Magisk and then choose the option that says you want to patch a file.

Select the boot.imgfile you just exported from your phone to your OS. Tell the app to patch it.

Sorry for the somewhat vague instructions - I don't have the interface in front of me so I can't tell you the exact wording of the prompts.

Magisk will do magick things and patch the file. Also, it will give it a somewhat crazy name like magisk_patched_abcdef.img. For this discussion, let's assume that's the actual filename.

Flash the patched bootdevice file back to your phone​

Once Magisk has patched your bootdevice file, reboot to fastboot mode again.

From fastboot, run flash boot magisk_patched_abcdef.img to install your patched bootdevice.

Reboot your phone normally and Magisk Manager should show you that Magisk is now installed, and apps that need root access should work.

Of course, you can do both slots if you want to. There are other guides on XDA about how to do this if you want more specific info, or you can ask here as I'm sure others have done this besides just me. Even though it's a lot of words, it's a really reliable way to root your 7t with Magisk.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
I have a custom non-OOS based ROM, and TWRP still isn't fully functional for me, either.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Which rom?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] thohac:
Thanks for that tidbit.

I increased the size of the image with resize2fs, unsharing blocsk, deleted some bloatware then resized back to the untouched image-size. flashed the partition and rebooted. (I did this on my Linux box, don't know if its possible from the device itself, probably not)

Worked perfectly in stock op7T android 11 beta 1. (For anyone attempting this make sure you have edited boot.img to disable dm-verity from dto and fstab in the ramdisk)
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Excellent article!

Another way to root with twrp is by using the ALL IN ONE tool found here:

https://xdaforums.com/t/tool-op7t-t...ck-twrp-factory-image-stock-recovery.4103515/

Simply boot into bootloader and click "Recovery Flasher and Device Rooter"

Next select TWRP 3.4 from drop down menu.

Make sure "Only boot it" and "Root after Boot" are checked.

Select Magisk Version from drop down menu. I think the latest on the tool is Magisk 20.4.

Finally click "Flash and Root".

The tool will boot TWRP and push Magisk 20.4 onto /root of your phone.

Swipe right in TWRP and click "Install". Next you will want to go up one level and scroll all the way down till you see Magisk 20.4 zip. Click on it and swipe right to install.

You will probably get errors but this is normal. After it finishes reboot to system and open Magisk Manager and follow the onscreen instructions and your done. You should now be rooted using TWRP.

It sounds like a lot of steps but its really not. The whole process takes about 2 minutes.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] bynarie:
What exactly is it that twrp relies upon from a rom to run correctly? is it the system partition or what? as someone previously mentioned, twrp is not compatible with any OOS base. But is compatible with yaap and/or derp.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Im not sure exactly what it is but it has something to do with how the keystore was implemented in oos. And its not the /system its /data partition decryption or lack thereof. Im sure someone else can chime in and give a much better technical explanation.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] bynarie:
Thats helpful for sure. Thank you!
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
YAAP
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Hmm thats the rom Im running and twtp is fully functional. Even backup and restore. I am using chinese twrp by the way. I havent tried the non chinese one.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] lil_kujo:
Wouldn't be easier just to extract the bin have a copy of the boot.img on your pc send it to your phone by file transfer and than just do steps from magisk patching the img. and down? Cause your still using the pc anyways? Cause it can be done with out having twrp to extract the boot assuming he has a zip file, which is kind of recommend to have in pc just in case you need to reflash things.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
Or just push magisk zip to /tmp and flash it. Easiest way on OOS 10
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
thats exactly what the ALL IN ONE tool does except it does the work for you. Click a couple buttons and a couple swipes and its rooted. Its a neat tool developed by mauronofrio. I like it so much i donated to the project. Even has an adb file manager.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
Yeah, but do you also have a fingerprint or PIN screen lock on it? My issue is that TWRP asks for a password and nothing works.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Try the chinese twrp. I have pattern unlock and i simply enter my pattern in twrp and it decrypts my data partition

I sent you the link in private messages earlier
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] _sky.captain_:
Hi, @lil_kujo . I'm sure you can do it that way, although I prefer this way (I'll say why in a moment). The comment I was replying to was just about whether you could use TWRP to root with OOS 10, so I was showing that you can, but I didn't get into any other options, like the one you mentioned.

I said that even though your idea should work, I still prefer this approach. This because I don't want to recommend a process that depends on 1) the user having a ZIP file; 2) the ZIP file being the correct ZIP file, matching their ROM exactly; 3) the boot device file in the ZIP file matching their current phone's boot device file exactly, no matter what has been done with their phone; and 4) that a payload.bin extractor will extract the boot device correctly (I'm biased here, since the one time I used a payload.bin utility to extract the separate files, they were not usable). The one place where I would favor starting with a OOS ZIP file would be if you can't boot to TWRP or any other recovery. But in that case, and this is just my personal preference, I'd probably apply the entire ROM, not just the boot sector.

Using the method I outline, you are not dependent on any of those assumptions, since you know you have an exact copy of the exact boot device file that is in use on your phone, no matter what has been done to your phone. Because of this, the method is very self-contained and the reliability of the method is very high.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] _sky.captain_:
Oh, and another reason I prefer this method is just a preference - I actually prefer to boot from TWRP without flashing it. Color me careful. :)
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] lil_kujo:
Yeah I have never had issues with payload dumper and I have a collection of boot images and roms , I guess it falls down to how organize a user is with it's files etc. It takes me very little time to just reboot to bootloader and load the already patched boot img I have, but I guess i flash a ROM three or four times a day 😅 (for testing purposes) and have a very well organize file system on pc. Like you said personal preference. Peace!
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
I've been using that one, but there's no option to enter a pattern, and my PIN doesn't work.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 1aladdin1:
is there any hope we get fully functional recovery (encryption issue fixed; mount partitions possible) when Oneplus releases final OxygenOS11 ?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Doesnt look like it now but i guess anything is possible.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
Decryption? Probably not.

Everything else works perfectly fine on OOS11. Flashing, sideload, backup etc. (TWRP 3.5)
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
How are you backing up via twrp when /data cannot be mounted or for that matter even seen?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
External drive or OTG. So it should for ROMS that decrypts data as well.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 1aladdin1:
3.5 - typo or really newer version than linked in OP?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] mobilityguy:
Where are you downloading TWRP 3.4.0-2 from? All I can find is 3.3.1-5 on droidfilehost.

NOTE: Never mind this question, found the link on page 1 of this thread. Duh. Leaving this in to save other people the trouble of asking.

That still leaves my second question:

I still haven't seen anyone say that this method will definitely work with encryption on a 7T running OOS10. Just bought an 7T on Swappa and haven't received it yet, just trying to get everything ready. If I want working root and TWRP, should I sell the 7T on and buy a 7Pro or 7 instead?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
You can accomplish almost everything you would want in a rooted phone with OR without this TWRP version, minus the ablity to backup and restore. There is a Chinese port of TWRP that works on the 7T floating around and you can apparently backup or restore your data via OTG connection using that, too. I haven't tested it myself but others have stated it works.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] mobilityguy:
Thanks for that. Does anyone have a link to the Chinese version? Is it also developed by mauronofrio?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
Well mauronofrio is not Chinese so no. That twrp is closed sourced and violates licenses so it's not allowed to be shared here. You'd have a better chance asking around in telegram.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
Check your PMs.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] _sky.captain_:
This method will definitely work with encryption on a 7T running OOS10. I used it several times.

Now, was I just lucky? :)

The key thing is that you don't need to decrypt user data files in order to root the OS. In fact, you are just pulling the boot device, patching it in OOS10 using Magisk Manager, and then flashing that patched device. More seniorerer people can correct me if I'm wrong, but I don't think this has any dependency on decryption at all.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
Correct. You are right about the procedure, however the term is "boot image," not to be confused with the phone (device) itself. And instead of flashing that patched image right away, the safer bet is to boot it first with a fastboot command, then direct install Magisk via the manager app.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Wimmme:
That's what I did and it worked perfectly!
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] elunesgrace:
I've gone through the suggestions here, but unfortunately I'm at a bit of a loss on how to get my OP 7T rooted. I cannot get TWRP to mount storage.

Things I've tried:

- Running TWRP 3.4.0-2 in both boot and recovery mode

- removing all pins/passwords

- Using the All-in-One tool

- Trying to run ADB Shell

Nothing works. I'm on OOS 10.0.16.HD65AA

Any suggestions?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
It's literally written in the first post data decryption is not working... Look at the guides section, plenty of guides there.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] elunesgrace:
" Decryption is working (except for Oxygen OS); " so basically it won't decrypt for Oxygen OS got it.

Thank you for suggesting the guides section, I didn't realize there was a subforum there (I tended to click the guides button at the top of the page).

I found a magisk patched img, I will try using that.

By the way I read somewhere about not flashing afterwards or something? I didn't understand what that meant.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
Yeah, flashing boot image directly. I recommend executing "fastboot boot boot.img", then open magisk manager and do a direct install.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] santa leone:
Go to android file host here: Matt0301

Now you can download the Chinese TWRP for 7T
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
Pretty sure the Chinese TWRP has the same limitations as mauro's, so not sure why you guys are still talking about it..
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] santa leone:
The program is no better than Maurono's. But believe you do that only after you have tested it yourself :)
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] a g bell:
No it's not,it's better has more stuff working of course no data Decryption .If mauro updated his source there would be no place for it though.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
"more stuff working"

So you're saying it IS better, then?

The Chinese one at least can DO everything TWRP is meant to do, minus some caveats, but there are ways around it. The one posted here doesn't even have that going for it.

But yes, if Mauro does update the source, those features might actually work as intended on his build.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] a g bell:
7

Apart from the data mounting issues more things are working yes. I find it strange nobody else has built it with new source, but A11 source isn't out yet so wait and see🧐
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
Well, there ARE ways around that, but then again, I've not had any luck in that regard, either. /shrug
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] ChrisFeiveel:
will you update to twrp 3.5 for the 7t / 7tpro?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] HueyT:
Chinese version can backup all but data which is much better than English version
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
I mean.... that's what I've been saying, lol
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] HueyT:
True, so why r we promoting this crippled version of twrp and not the other?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] a g bell:
Because the Chinese version is closed source which isn't good and doesn't help anyone. Is also not allowed on XDA.The reason we have this version here is because it was made by one of the Devs of the official twrp. But clearly he has no interest in updating it. What l can't understand is why nobody will share an updated version of this twrp. If l could build it l would but still not possible for me at the moment.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
Because it's sketchy as f*ck (and illegal) that they don't release their source.

It's not about no interest. It's about no free time at the moment.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] rob420p:
What about starting a fund that can sometimes spur interest
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] HueyT:
Whatever, I'm using the Chinese version to backup my stock before trying custom roms
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
I think you may have misread what @osm0sis said...
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] santa leone:
@ HueyT

Chinese TWRP : 3.4.2b-0623

Backup complete: FAILED

Unable to mount /data/media/0/TWRP/.twrps_wzsx150

.......
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] a g bell:
Yep understand that completely 😁

Only say that because l see updates for twrp being put out on other devices also wasn't going to reply thought l deleted this oh well thanks XDA😬

Yep data is definitely still broken 😂

It won't backup your data so don't tick it
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] 14christ:
Backup/restore works fine for me. Im using StatiXOS.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] HueyT:
OOS data encryption problem only. Custom rom OK
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Trejbal:
Hi all,

I dont know, if it is not stupid idea, but:

While there is no official OP7TPro TWRP, maybe could be possible to backup WHOLE OP7TPro internal disk drive to external SSD/HDD drive. Of course, this is not help for everyone and for everything, but it may be useful for e.g. trying custom ROMs and then revert back to state before installing. Intended procedure does work on Linux, but I am not experienced in android differrences. Maybe someone more experienced could tell, if this is usable. So:

1. OP7TPro is running (system)

2. connected to PC and adb server is running.

3. on PC (in terminal): adb reboot fastboot.

4. on OP7TPro then tap on English, Advanced, Reboot to fastboot. OP7TPro is in fastboot.

5. on PC: fastboot boot twrp.img (TWRP from this thead). OP7TPro reboots and TWRP is running on OP7TPro.

6. Disconnect OP7TPro from pc. Connect usb hub (best with power delivery) to OP7TPro. Connect ext4 formated ssd/hdd (must be ext4, FAT32 has file size limitations) with sufficient free capacity (at least 256 GBytes) to hub. Connect keyboard to hub, if you want.

7. on OP7TPro (TWRP running) tap Mount, select USB Storage. Your ssd/hdd disk is mounted. Tap home icon.

8. on OP7TPro (TWRP running) tap Advanced, Terminal.

9. on OP7TPro (TWRP running in terminal): dd if=/dev/block/sda of=/usbstorage/backup.img (it takes very long time to proceed).

10. whole OP7TPro is RAW copied to ssd/hdd drive.

11. on OP7TPro tap home icon. Then tap Mount and uncheck Usb storage (this is recommended for properly disconnect ssd/hdd from hub in next step).

12. disconnect ssd/hdd from hub. disconnect hub from OP7TPro.

This procedure would backup ALL from OP7TPro (boot, ALL partitions, does not matter if they are encrypted or not, in short ANY piece of data of OP7TPro).

For restoring get to fastboot again (like in previous steps 1. - 8.. You are now in TWRP, ssd/hdd with backup is mounted and terminal is running on OP7TPro.

1. on OP7TPro (TWRP running in terminal): dd if=/usbstorage/backup.img of=/dev/block/sda (it takes very long time again to proceed).

2. whole OP7TPro is restored to original state now.

3. on OP7TPro tap home icon. Then tap Mount and uncheck Usb storage (this is recommended for properly disconnect ssd/hdd from hub in next step).

4. disconnect ssd/hdd from hub. disconnect hub from OP7TPro.

In Linux systems I use this procedure, if I have to backup encrypted drives or drives, that must be backed up sector by sector.

Could anyone android (specially OP7TPro) experienced look at that procedure and tell me, if ti is possible to use it or not? I am afraid to test it myself, cause I have only one phone and I use it every day for work and if anything would go wrong, I would be in serious trouble.

So again - I HAVE NOT TESTED IT MYSELF, PLEASE BE CAREFUL, IF YOU TEST IT. I AM NOT RESPONSIBLE ON ANY DISASTER, THAT THIS PROCEDURE MAY COUSE.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] johnsema:
I also, bricked my device, 7T,,and stuck on fast boot! Now my device is at , oneplus repair center in poland!

They can fix it!
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] pxrave:
any affords here in providing latest twrp sources? i tryd to build but not working....good i can save the device with fastboot :)i hope op safados push source in android 11 to let us not alone. but anyway this was my last op device.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] rob420p:
I've said the samething done with op
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] Lossyx:
EDIT: removed
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] GuyInDogSuit:
Posts were deleted? Why? Supposedly off-topic, but I don't see how...
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] pxrave:
Hey folks, i found some source out here....no credits to me :)

https://github.com/Systemad/android_device_oneplus_hotdog/releases/download/11/twrp-3.5.0_10-0-hotdog.img

latest twrp but the same working like here just updated... good for custom roms android 11

TWRP 3.5 targeting Android 11 / OOS for OnePlus 7T/Pro series (Hotdogb / Hotdog).

Everything should work except decryption.

Note: Decryption does NOT work in OOS11 or Custom Android 11 ROMs. Apart from that, this build still needs some minor adjustment for ADB, fastboot and general things.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] HueyT:
Wrong device. We're "hotdogb" not hotdog. Should work but beware
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] dphil56:
running perfectly on 7T and A11 OOS beta 2 magisk 21.4
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] jaggy989:
decryption is working with pattern/pin or without it?

can you post some screenshots?
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] dphil56:
Note: Decryption does NOT work in OOS11 or Custom Android 11 ROMs. Apart from that, this build still needs some minor adjustment for ADB, fastboot and general things.
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] ChrisFeiveel:
on 7t and 7t pro with A11(beta 2) Another partition has been added to the super partition, namely the system_ext
[OnePlus 7T ROMs, Kernels, Recoveries, & Other Deve] g33k1:
I thought op7t was hotdogb does this actually work. Thanks