yashsingh1/xdaforums huggingface dataset:
[OnePlus 5T  Guides, News, & Discussion] Pawer8:
I just got my 5T but made the mistake to update to pie.

I want to root it and at the same time go back to oreo.

Since the recovery, I understand, is different for oreo and pie what order should I follow? At what point should I flash oreo?

The main reason for the root is being able to use substratum and remap the navbar buttons. Which being on screen I don't see why it can be done natively. So if anyone knows how to do that without root that may solve the issue as well.

Thanks
[OnePlus 5T  Guides, News, & Discussion] mmm273:
Hi, how to make it complete stock (to sold device to another person) ? I have magisk and TWRP installed.

Should I just lock BL in fastboot and than flash latest official oxygen OS ?
[OnePlus 5T  Guides, News, & Discussion] strongst:
You need to flash the stock rom(after wiping system and data partition) again from your current twrp without flashing magisk, twrp or anything else after the rom flash. Then format internal storage(to erase internal storage). Then boot the os and see if it's sucessfully booted up and enable oem unlock etc to make a fastboot connection

Then you connect to ist USB and use fastboot to "fastboot oem lock" your device. Then boot again and disable oem unlock etc.
[OnePlus 5T  Guides, News, & Discussion] mmm273:
oh. And cant i just OEM LOCK before and then flash stock zip ?
[OnePlus 5T  Guides, News, & Discussion] strongst:
No, that is not possible.
[OnePlus 5T  Guides, News, & Discussion] mmm273:
ok thanks, did it, worked like charm.
[OnePlus 5T  Guides, News, & Discussion] nrrajin:
Guys.. Need help!!!

I tried to install OSS 9.0.9 on my oneplus 5t. I had TWRP installed already and my phone is rooted.

I wiped everything except internal memory in Twrp.

When tried to install the OSS I got an error unable to install(Zip error) . When I checked here XDA, its suggested to update the TWRP. I flashed latest version of Twrp. Now I can't boot into recovery. And I tried to communicate with adb, but not successful. I couldn't communicate with my 5T.what to do next guys. Please help me out...

Thanks
[OnePlus 5T  Guides, News, & Discussion] strongst:
What does the Led showing? Can you boot to fastboot or how did you try to communicate with your phone?
[OnePlus 5T  Guides, News, & Discussion] nrrajin:
I tried to connect with PC using adb. My phone boots into fastboot mode with no issues. But with cmd in adb, it's not communicating with the phone. Now I have no Os, no twrp and I couldn't able to communicate through adb
[OnePlus 5T  Guides, News, & Discussion] strongst:
Check your adb drivers, cable firewall. If fastboot is working, the phone is not dead :good:
[OnePlus 5T  Guides, News, & Discussion] 21-Savage:
Since I'm on latest pie, is there any additional steps or is still the same procedure?
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
I sold my 3t and bought a 5t today. I unlocked bootloader and flashed twrp.img . After that I held down the power button and vol down button at the same time to get out of fastboot and into twrp but this only restarted my phone and put me back into fastboot mode. What am I doing wrong
[OnePlus 5T  Guides, News, & Discussion] strongst:
Maybe wrong combination or hold time. Did you try the fastboot command also?
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
What is the fastboot command
[OnePlus 5T  Guides, News, & Discussion] strongst:
Read ahead the instructions:

Once the flash has completed, Don't use the "Fastboot Reboot" Command Instead Unplug Your phone then Manually boot it into recovery by pressing the Vol Button for a couple of times till you see recovery in red at the top and then hit the power button to reboot

​

Alternatively you can also use the command:

fastboot boot recovery.img

PS: DO NOT BOOT IN OS JUST YET & CONTINUE TO THE ROOTING POST[/B]
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
What is the difference in the twrp codeworks and the official twrp?
[OnePlus 5T  Guides, News, & Discussion] strongst:
Codeworkx is more up to date
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
Do you recommend codeworks for a OnePlus 5t? If I install that instead of the official twrp I have installed will it erase my data and internel storage?
[OnePlus 5T  Guides, News, & Discussion] strongst:
You can switch between twrp and it will not erase your internal storage.

What might be happen is that the other twrp cannot read your encrypted storage so you might remove the lockscreen pin/pattern and set a new one after reboot to system.
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
Well right now I flashed the no verity zip and my twrp ask for a password when I have a screen pin set but all I have to do is hit cancle and I go right into twrp and my files are not encrypted so that's good right? But I will still take my pin off before I flash the codeworks twrp. The one I just downloaded says codeworkx force decrypt but there is another one that just says codeworks dumpling
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
I tried to flash the codeworks over my official twrp but when I boot into recovery it's still the same twrp. Do I flash codeworks the same way?
[OnePlus 5T  Guides, News, & Discussion] strongst:
Do you flashed magisk after twrp or not? You need to give more details/steps what you did.
[OnePlus 5T  Guides, News, & Discussion] bwagner.ash88@gmail.com:
No I am already rooted and running a custom ROM. I am just trying to change my twrp to codeworks instead of the official twrp version
[OnePlus 5T  Guides, News, & Discussion] stingerbs:
Worked perfectly on my 5T on OOS 9.0.10. Thanks a lot
[OnePlus 5T  Guides, News, & Discussion] sunder rawat:
Banking apps security after root

Can we use safely banking apps after rooting mobile?
[OnePlus 5T  Guides, News, & Discussion] strongst:
Depends on the app. You have to try.
[OnePlus 5T  Guides, News, & Discussion] kuroishinigami:
Recently i just got notified about 12.2019 security update and my opt5t already rooted, does anyone could tell me what shoud i do step by step :confused:
[OnePlus 5T  Guides, News, & Discussion] strongst:
Yes, follow dirty flash instructions from the first post https://xdaforums.com/oneplus-5t/how-to/official-oxygenos-4-7-2-7-1-1-ota-t3709265 :good:
[OnePlus 5T  Guides, News, & Discussion] renzs:
Hi. According to topjohnwu, with the upcoming march security update, safetynet will fail even with custom kernel.

https://twitter.com/topjohnwu/status/1237656703929180160

My question is, if I relock bootloader, will my data be erased? I know unlocking bootloader erases data.

tia. rgds

edit - I unlocked bootloader on day 1 thinking to move to custom rom in the future but never did

edit 2 - I gave it a try after backing up. Dirty flashed stock rom to remove custom kernel and custom recovery. Reboot system. Reboot to bootloader. Fastboot oem lock. Confirmed onscreen & system auto reboot and all data was wiped. So that's it. Both unlocking and locking will wipe your data and internal storage clean. Hope this helps someone
[OnePlus 5T  Guides, News, & Discussion] Sam Nakamura:
You'll have to be 100% back to stock before attempting to look bootloader, this is very important to avoid bigger issues or permanent damage - no custom recovery, no mods at all!

There're guides, follow them and ask there if something is unclear!

If you did unlocking on fastboot level you'll have to undo it there too, if you where talking only about the "allow OEM unlocking" switch in developers options just go ahead and reverse it...

If you need to do the fastboot thing this is probably a good starting point where subsequent questions can be asked:

https://xdaforums.com/oneplus-5t/how-to/guide-restore-to-complete-stock-relock-t3712739
[OnePlus 5T  Guides, News, & Discussion] PhotoPaul:
I've upgraded to Android 10 (beta) and lost both Recovery & root. Is it safe to flash Recovery and then root following the same process on Android 10?
[OnePlus 5T  Guides, News, & Discussion] shadowstep:
Yes.
[OnePlus 5T  Guides, News, & Discussion] frozzen14:
Android 10

Hi..can i use this method to root op5t running android 10?

Thanks in advance?
[OnePlus 5T  Guides, News, & Discussion] PhotoPaul:
Yes, I'm not sure if all recoveries are compatible . I tried to use Blu_spark TWRP (that I had used back when my OP5T was on Android 9) and my phone couldn't boot (I was getting a black screen blue led on), so I ended up using the OrangeFox TWRP and everything worked as expected.
[OnePlus 5T  Guides, News, & Discussion] mystery11:
hey! can someone please help me with this

i am running on android 10

and want to know that can i use the same process to root my OP5t
[OnePlus 5T  Guides, News, & Discussion] Machine318:
I maintained my root coming from A9 so I don't see why you could not follow the same process to root 10.
[OnePlus 5T  Guides, News, & Discussion] chinkster:
what happens if i make a nandroid backup with just the BOOT and the SYSTEM checked? I unchecked the DATA because it was huge like 33000mb and would have took me probably like 30 minutes
[OnePlus 5T  Guides, News, & Discussion] strongst:
You can't restore the data partition ;)

But I guess you also checked the whole internal storage, otherwise it's not possible to have 33GB apps only cause the partition is not large enough.
[OnePlus 5T  Guides, News, & Discussion] BracesForImpact:
Wonder what I might have done wrong. I got recovery to flash, but I couldn't see the contents of the phone where I put the Magisk file, maybe it was still encrypted? I rebooted into recovery again and it was the stock recovery. Something I missed, or do I just have the wrong recovery? I'm trying to root directly from Android 10 on last oem stock.
[OnePlus 5T  Guides, News, & Discussion] BracesForImpact:
I figured it out, just didn't INPUT to decrypt on TWRP.
[OnePlus 5T  Guides, News, & Discussion] wille95:
U need format data bro

---------- Post added at 05:42 AM ---------- Previous post was at 05:41 AM ----------

Oh nice then :)
[OnePlus 5T  Guides, News, & Discussion] hajiabadi:
hey bro whats theme or CR you used in these screen ?
[OnePlus 5T  Guides, News, & Discussion] Spannaa:
It's three years ago but it's Valerie substratum theme.
[OnePlus 5T  Guides, News, & Discussion] SavMak:
Hey all,

Need some help as this is my first time trying to root my OnePlus 5T. I ended up unable to store any kind of files on my device if I am not in TWRP Recovery Mode. Whilst in TWRP i can store any files and also see my storage files from Windows. If i boot normally in the device, Windows say This folder is empty. Also, I can not take photos and store them, download anything or install any apps :(

I followed these steps:

- Enabled OEM Unlocking / USB Debugging

- Unlock Bootloader with adb 'fastboot oem unlock'

- Enabled OEM Unlocking / USB Debugging

- flash TWRP recovery with adb 'fastboot flash recovery twrp-3.3.1-1-cheeseburger-dumpling-mauronofrio.img'

- format data in TWRP recovery, reboot

- flash Magisk from TWRP Install

- install Root Checker to enable Root Access

- in Magisk Manager I install latest version of Magisk Manager 8.0.3

- enabled Magisk Hide and reboot

- downloaded smali patcher

- extract and run with admin from C drive, waited till idle

- clicked adb patch

Here is where I noticed I cannot copy the resulted .zip in my phone due to the issue. even if i copied it in twrp i cannot install smali module from magisk.

Please any help is appreciated, I can not seem to find anyone else with this issue.
[OnePlus 5T  Guides, News, & Discussion] milpro_7:
Hello ... Can someone help with file links i could use to root my OP 5T... i am unsure of which Magisk & TWRP files to use.... I am currently on Android 10 running OxygenOS 10.0.1
[OnePlus 5T  Guides, News, & Discussion] nicorvienne:
here you go:

TWRP 3.4.0-x blu_spark v9.116

Releases · engstk/android_device_oneplus_cheeseburger

For building TWRP for OnePlus 5 ONLY. Contribute to engstk/android_device_oneplus_cheeseburger development by creating an account on GitHub.

github.com

Magisk 20.4

Release Magisk v20.4 · topjohnwu/Magisk

Miscellaneous This release is mainly focused on stability and bug squashing. Please be aware that MagiskHide is no longer enabled by default. Since Google has enabled hardware-based key attestation...

github.com
[OnePlus 5T  Guides, News, & Discussion] chinkster:
what am i doing wrong?
[OnePlus 5T  Guides, News, & Discussion] TonskuDaigle:
If using ADB, make sure you're in TWRP (power button+volume down) for example (literally just had to do this myself when installing a new rom less than an hour ago) and go to advanced and then ADB sideload. If you're using fastboot, make sure reboot to bootloader mode (power button+volume up). And use the original power cable, I've never managed to do any of this with a random USB-C cable.
[OnePlus 5T  Guides, News, & Discussion] chinkster:
i'm still just trying to flash TWRP. i'll try the original cable see if that works
[OnePlus 5T  Guides, News, & Discussion] blas4me:
Try rebooting
[OnePlus 5T  Guides, News, & Discussion] chinkster:
i've rebooted. installed oneplus drivers. tried original oneplus usb cable, its connects ADB and i see the device but when i put the phone in fastboot mode and try to do the fastboot devices command, nothing shows up
[OnePlus 5T  Guides, News, & Discussion] blas4me:
Fastboot doesn't show your device anymore. Type fastboot reboot-bootloader, see what happens. I had the same issue.
[OnePlus 5T  Guides, News, & Discussion] foxiholic:
use this method bro.. it works for me

https://xdaforums.com/t/guide-fix-device-not-showing-up-in-fastboot-mode-windows-10.4194491/
[OnePlus 5T  Guides, News, & Discussion] blas4me:
Did you ever get fix your issue
[OnePlus 5T  Guides, News, & Discussion] chinkster:
i gave up trying . but i will try again tonight thanks
[OnePlus 5T  Guides, News, & Discussion] chinkster:
holy crap i just followed foxiholic post above and i was able to get adb to detect fastboot
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
Hello, I just bought a second hand oneplus 5T and unlocked the bootloader successfully.

I'm using adb from linux and I just can't boot into TWRP. I tried several versions :

- twrp-3.2.3-x_blu_spark_v9.91_treble-op5_op5t.img

- twrp-3.4.0-x_blu_spark_v9.116_treble-op5_op5t.img

- official : twrp-3.5.0_9-0-dumpling.img

- official : twrp-3.5.1_9-0-dumpling.img

- official : twrp-3.5.2_9-0-cheeseburger_dumpling

And even :

- lineage-18.1-20210727-microG-dumpling-recovery.img

When flashing the recovery it says :

$ fastboot flash recovery twrp-3.2.3-x_blu_spark_v9.91_treble-op5_op5t.img
Sending 'recovery' (28940 KB) OKAY [ 0.828s]
Writing 'recovery' OKAY [ 0.010s]

And when booting into recovery.img

$ fastboot boot recovery.img
Sending 'boot.img' (37408 KB) OKAY [ 1.110s]
Booting OKAY [ 10.097s]
Finished. Total time: 11.304s

Then I get the message that the bootloader in unlocked and it is not safe. And then a black screen, and nothing happens, besides the white led is on.

I have the exact same thing with any recovery and with the manual method to reboot to recovery (using the menu in bootloader).

Can somebody help,? I looked around on the net, many people have the same problem but I didn't find any solution yet.

Thank you so much !

PS : it has android 8.1 (ONEPLUS A5010_43_181105, says it is up to date) and the kernel is 4.4.78-perf+ (and also says,OnePlys@Ubuntu-115#1 is this normal ?)
[OnePlus 5T  Guides, News, & Discussion] UnwindingThree8:
You need to manually flash to android 10. You can get the latest official rom here

Downloads for : OnePlus OnePlus 5T | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
Ok I'm trying to do that but during the time I tried to downgrade the OS and it is in a bootloop now ...
[OnePlus 5T  Guides, News, & Discussion] UnwindingThree8:
Also check out the oneplus forum. It has some decent guides
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
Thank you. I'll try to see if I didn't brick it... If not I'll come back to you or to the oneplus forums. thank you !
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
yeah it is not bricked !!! :D trying to flash the last oxygen OS
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
Ok I'm on android 10 now, Thank you so much for the help. It's late, Ill try to install TWRP tomorrow. Thank you again @UnwindingThree8
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
That made the trick ! Thank you so much :D
[OnePlus 5T  Guides, News, & Discussion] gilberthari:
Hi,

Could you please advise which version of twrp and magisx you installed? did you get root access? Im in india using op5t oos 10
[OnePlus 5T  Guides, News, & Discussion] ksdrummer:
I installed LineageForMicroG with lineage bootloader : https://download.lineage.microg.org/dumpling/

I didn't install nor twrp nor magisk (my phone is not rooted)
[OnePlus 5T  Guides, News, & Discussion] xy172:
I have gotten TWRP to work, but the magisk download link just leads to the forum page and I tried following the guide from their github and got stuck in a boot loop. should i just try reflashing the boot.img? (for the magisk guide i got the boot.img from the downloadable zip on the oneplus website is this the problem?)
[OnePlus 5T  Guides, News, & Discussion] xy172:
I had to update TWRP so i could restore from a backup, before was erroring. After fixing the bootloop issue by restoring I remade the boot.img again and it worked this time.
[OnePlus 5T  Guides, News, & Discussion] typer77:
Thanks for the post in showing how to root OnePlus 5T. My intention to root my phone is I like to get my data back. I forgot to backup before factory reset. I check some datarecovery software but all requires a root on the phone. But if I root it, won't all data be wiped? thank you.
[OnePlus 5T  Guides, News, & Discussion] C-Cedilla:
Exactly what I'm wondering and for exactly the same reason. I'll just have to try and see.
[OnePlus 5T  Guides, News, & Discussion] Mepsipax:
Hey, I wanna ask the proper way to update my Magisk root. I want to update Magisk because banking apps stopped working, even though I have them in the work profile. So I'm hoping newest magisk might help.

I already updated bluspark twrp to v3.4.0.

My current Magisk is v21.1. I got a couple questions here for updating.

I just have to download the newest Magisk apk, yes? Does it make a difference whether I use Magisk Manager to install it or flash zip via twrp?

For flashing, do I just change file ending from apk to zip?

Can I just flash over my current Magisk version or do I need to uninstall it first using its uninstaller?

Do I need to patch vbmeta?

Thanks for your time, guys!
[OnePlus 5T  Guides, News, & Discussion] Nimueh:
Just update Magisk app from within the app, then it will let you update Magisk itself and "should" have your vbmeta stuff checked already if you need it. I've never touched those selections, simply tapped on ok and then direct install and everything worked just fine.

Then again I've never had such a huge gap in Magisk versions since I always update as soon as a stable one is available.
[OnePlus 5T  Guides, News, & Discussion] Mepsipax:
Hey, I looked a bit more into the differences between apk vs zip flashing Magisk.

So, apparently from the magisk installation guide, flashing via zip is no longer supported and any issues that might occur won't be fixed. That sounds kinda scary. I wonder why they don't support it anymore.

Anyway, so since that's no longer supported, I should do it the other way, right?

Well, apparently this now requires a boot.img copy. It didn't need that in previous versions. I don't know where to get the boot.img, but I found some guides for it. When doing it this way however, I wonder whether it's a problem to extract my already rooted boot.img from my device. Should I use an unrooted one?

Seems there's some uncertainty either way, but flashing the zip honestly seems easier. I wonder how dangerous it might be to still do it this way even though it's not officially supported.

Any help?
[OnePlus 5T  Guides, News, & Discussion] Machine318:
So I find pulling a boot.img is pretty simple with TWRP, once you boot into it, a few ADB commands will extract it easy. Once extracted Magisk can patch it. Afterwards just use it to fastboot (with root) your phone. Magisk can now direct install root. Reboot and profit
[OnePlus 5T  Guides, News, & Discussion] Nimueh:
Any modern TWRP can simply flash the Magisk .apk - if yours can't then simply rename it to .zip and flash it, nothing bad will happen ;)

Oh you might need to do a "Direct install" from within Magisk after flashing it, some roms are a bit iffy and need that too.
[OnePlus 5T  Guides, News, & Discussion] Mepsipax:
I flashed via twrp now and it seems to be working. I can "su" in terminal emulator. However magisk Manager does not seem to recognise my root. It says "N/A" for installed, The Superuser tab is disabled. How would I fix this?

Edit: also just installed SafetyNet Test and failed the Test, so something must be very wrong. What to do now?
[OnePlus 5T  Guides, News, & Discussion] Nimueh:
Did you do a "Direct install" in Magisk after flashing it, like I said in my previous comment?

In Magisk, tap on Install, then select Direct Install - that usually works.
[OnePlus 5T  Guides, News, & Discussion] Mepsipax:
No, i was hoping I could avoid extracting the boot.img since I don't know properly how to do that. But I guess I'll have to try.

Would you explain which commands to run in twrp in order to extract the boot.img?
[OnePlus 5T  Guides, News, & Discussion] Nimueh:
Who said anything about extracting anything lol? Like I said: "In Magisk, tap on Install, then select Direct Install - that usually works."

Open the Magisk app, top option to "Install Magisk", tap on that and in the screen after it select Direct Install. If you get any other options to do with vbmeta etc then just leave them alone - on my 5T at least those were always selected correctly.

And regarding the boot.img - if you're on a custom rom then just open that zip with Winrar or whatever unpacker you use, and you'll see the boot.img right there in the main screen. No idea on stock though, I know on my 8P you'd need payload dumper to extract it..
[OnePlus 5T  Guides, News, & Discussion] Machine318:
While TWRP is loaded, run the ADB commands as follows

dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img

The boot image is now copied to your user data.
[OnePlus 5T  Guides, News, & Discussion] Mepsipax:
Yeah unfortunately that's not an option for me. I only get "select and patch a file" as my only option for install methods. When I select that, it wants .img or .tar files. Which I guess should be the boot.img?
[OnePlus 5T  Guides, News, & Discussion] Nimueh:
That's weird, any time I flashed Magisk in TWRP and it didn't show as rooted (or didn't show up in the app drawer at all) it was fixed after doing a direct install.

I'm sorry, I can't help you any further - but hopefully someone else will. Try the above command @Machine318 posted and then patch that boot.img maybe?

Good luck 🤞
[OnePlus 5T  Guides, News, & Discussion] Machine318:
When I get home I'll post my batch files that I use to pull images and fastboot them. I'm on vacation right now.
[OnePlus 5T  Guides, News, & Discussion] Mepsipax:
Hey, good news. I got it working now and it was as simple as uninstalling and reinstalling Magisk via twrp again. I guess uninstalling removed some leftover stuff that I had from my previous magisk installation and it must've interfered somehow.

So with hiding magisk and installing the safety-net-fix, I'm able to pass SafetyNet and fool my banking app.

But I'm still not able to fool my car app. It can still detect root somehow. This is VW's "WeConnect" app. Is there any way I might get some information on how they're detecting my root? Googling wasn't very successful I'm afraid.