This guide is based on very detailed but dated guide on oneplus forums. Here is secondary guide and a tutorial video from oneplus guys if you are ever in doubt. As per usual, there is a chance you will destroy your phone in a process - if you do, it is your own responsibility. But you can message me on reddit if there is something unclear here.
Downloads:
pc: Installed ADB (Y/Y/Y)
phone: Enable USB debugging, Enable OEM Unlocking, Enable Advanced Reboot
phone: Fastboot entered from bootloder NOT from VOLUP+POWER
pc: Open c:\adb "shift+rightclick" open powershell here
cmd: fastboot devices (if there is short serial number, you are good to go)
cmd: fastboot oem unlock
cmd: fastboot reboot
phone: Skip through first time phone setup, then enable everything that is in step 4)
phone: Power off, boot into fastboot (VOLUP+POWER)
pc: Rename twrp-3.1.1-0-oneplus2 to twrp.img, copy that file to c:\adb
cmd: fastboot flash recovery twrp.img
phone: Power off, VOLDOWN+POWER to enter TWRP
twrp: Reboot > System (don't install twrp app)
phone: Is everything working? Good. Now repeat 14)
twrp: Backup > Select all partitions > Perform Backup (../twres/languages/en-US.xml error is not an issue)
win: Copy the backup from the phone (path: \ONE A2003\Internal Storage\TWRP\BACKUPS\95c7fa27)
pc: Archive it with 7zip to OPO2_STOCK_NANDROID_BACKUP__201711.7z (From 2800 to 933Mb on highest compression)
Don't wipe the phone yet, copy Magisk-v14.0.zip from your PC to TWRP folder on phone
twrp (VOLDOWN+POWER): Install > Open TWRP folder, select Magisk-v14.0.zip and swipe to install. Reboot to system.
system: Install Terminal Emulator for Android (Jack Palevich) and open the app.
system: We are going to backup modemst1.bin and modemst2.bin (why? Find Making and EFS backup on this page.)
At this point you have rooted phone and all backups. Congrats!
Save OPO2_STOCK_NANDROID_BACKUP__201711.7z and 2 modemst files somewhere safe (on PC).
pc: Now we are going to install custom ROM. Copy these files from PC to TWRP folder in phone storage:
twrp: Wipe > Advanced Wipe > Select Dalvik + System + Data + Cache > Swipe to Wipe
twrp: Install > Open TWRP folder > Select Lineage ZIP, click add more ZIPs, select Magisk, add more ZIPs, add gapps. Swipe to FLASH. Watch your phone ascent to heaven. Also watch for errors, the whole installation might take few minutes, depends on version of gaaps you chose. Click reboot. The first boot is going to take time, don't freak out. At this point you are all done. If something was not clear and you want to improve this guide for other users, I'm lebaux using gmail, if you catch my drift. You can also message me on reddit. Bellow are some of the settings that are bit hard to locate (buttons) and some personal tweaks keeping it as vanilla as possible.
As someone from Czech Republic, I need to turn on converting of special characters to simple ones (řýů=ryu… etc).
I need to remind Google Calendar, that weeks start at Monday. Settings > General > Start of the week.
Download my local area in Google Maps, so it wont eat up data when I am travelling.
As a Google fanboy, I wanted to have the pixel launcher, so I use Launcher3 as I find it best. If you find better one, let me know.
Sounds and buttons:
You are all done, your OPO2 is running fast as fuck and life is nice again. If something was not clear and you want to improve this guide for other users, I'm lebaux using gmail, if you catch my drift. You can also message me on reddit.