How to flash and root OnePlus 3T on Linux
There are literally thousends of flashing- and rooting-tutorials. But these are not always the same, or respectively has different ways to flash.
Currently I am using Oneplus 3T and I love that device. I noticed there're not that much custom roms out there then I thought. Because of I flash roms very regulary to try out different systems I wanted to note my steps down on Gist.GitHub. Also I want to share this 'journey' with you.
The special condition is I am using linux. Most how-tos are for windows. *cough ..., well.
The fallowing is a copy from my Gist. Note that this is forked and edited. You can see the original one at the buttom at 'Ressources'.
OK, I would say - lets get into it.
How to flash and root OnePlus 3T on Linux
Requirements
Disclaimer: I've already done those kind of install on different phones and I'm familiar with the steps. So be sure to read the resources to get an understanding of what happens.
- [ ] battery are
>60%
; - [ ] know what you are doing?
- [ ] remember that version used worked for me.
Flashing Recovery to TWRP
Flashing require to do a factory reset. Backup your data.
Prepare Phone and Computer
enable
Developer Options
in
Settings
->About Phone
->Build Number
(at the bottom)by tap on it for 5-7 times to enable Developer Options
enable
USB Debugging
in
Settings
->Developer Options
->USB Debugging.
enable
OEM Unlocking
(in the same list).Download 'Android-Platform-Tools' from Developer.Android.com
Move into the folder 'Android-Platform-Tools
Install Recovery
Reboot to bootloader either with
adb reboot bootloader
or through power button ;Unlock the bootloader:
sudo fastboot oem unlock
Download the latest TWRP image to flash ;
Flash the recovery with
TWRP
:sudo fastboot flash recovery "$image_to_flash"
Reboot to recovery to wipe cache ;
Reboot to recovery to mount the device ;
Rooting with Magisk
The rooting procedure given here is not a data-loss process but it won’t hurt to have a backup of your smartphone’s personal data.
Download the fallowing Files:
- Download and transfer both the Magisk zip and Magisk Manager apk files from the download link above to your device’s storage.
- Boot your device into TWRP recovery.
- Tap on Install and select the Magisk zip file that you transferred to your device in Step 1.
- After selecting the .zip file, do Swipe to Confirm Flash on the bottom of screen to begin the flashing process.
- Once Magisk is flashed, you’ll get Reboot System option, select it.
- Once your device reboots, open a file manager app » go to the folder where transferred the Magisk Manager apk file in Step 1 above, and install it.
- Open the Magisk Manager app and check for your device’s root status.
Troubleshooting
- No write access to storage in TWRP? Wipe data/cache (≠ format data)
- Rom not booting? Reinstall recovery and ROM…
Resources
- How to Root the OnePlus 3T
- How To Flash TWRP Recovery And Root OnePlus 3T - freeandroidroot ;
- How to root opt using Linux - forums.oneplus.net ;
- OnePlus 3T: How to Unlock Bootloader | Flash TWRP | Root - devs-lab.com ;
@edouard-lopez
- How to flash and root OnePlus 3T on Linux.@topjohnwu
- Magisk GitHub Repository@topjohnwu
- Magisk Manager GitHub Repository
So, thats it. Basically very easy, isn't it? :) Ok,
thanks and have a nice day.