Restore Bricked OnePlus 6T on Linux
AntiDroid last edited by AntiDroid
I have been messing around with my 6T trying out Postmarket OS w/Posh and Ubuntu Touch after having /e/ OS on the phone and ended up bricking one slot on the phone as a result of how /e/ OS uses the A/B slots. Since I am a daily Linux user for a long time I do not have access to a Windows machine to use the factory restore tool available on XDA (I think it is called MsMdownloadTool). I tried a Linux tool that is supposed to work the same but it was just extra problems.
In the end I found how to flash the stock Oxygen OS via Fastboot and made a bash script to automate the process on Linux. My script uses all the .img files from the fastboot 9.0.17 oxygen release found here.. My script is based off the windows scripts included in the download. Note: The included version of TWRP did not work for me and I had to use the one below.
TWRP Fajita version from here.
EDIT: See below
AntiDroid last edited by
I have remade these scripts making everything interactive and allowing you to select which slots you want to flash for both the system and recovery.
The entire thing is now on github. The release section now has all the scripts and the binary img files for Oxygen OS9 so you no longer need to create the scripts and find the files.
You just need to run
and it will guide you through reflashing the phone back to OOS9. For OOS10 just use the factory update feature.
To reflash one slot without losing data on the other slot skip wiping data and skip flashing 'persist'.
@antidroid This is the process I have been following. I have used your script several times. It works flawlessly! Spot on for me.
Thank you so much for your work.