# Rooting OnePlus 2 1. This guide is based on [very detailed but dated guide on oneplus forums](https://forums.oneplus.net/threads/24-06-2016-oneplus-2-how-to-unlock-bootloader-flash-twrp-root-nandroid-efs-backup-and-more.345478/). Here is [secondary guide](https://forum.xda-developers.com/oneplus-2/general/guides-how-to-guides-beginners-t3146568) and a [tutorial video from oneplus guys](https://www.youtube.com/watch?v=KZaajUEybNM) 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. 2. Downloads: 1. [15 Second ADB 1.4.3](https://forum.xda-developers.com/showthread.php?t=2588979) (Recommended) 2. [TWRP for OPO2](https://dl.twrp.me/oneplus2/), used latest [3.1.1](https://dl.twrp.me/oneplus2/twrp-3.1.1-0-oneplus2.img.html) (2017-05-18) recommended minimal 3.0.2-1 (2016-06-14) 3. [SuperSU v2.74-2-beta](https://androidfilehost.com/?fid=24591000424939898) (recommended) don't use latest because [this](https://www.reddit.com/r/oneplus/comments/56p53s/what_are_the_alternatives_to_chainfire_supersu/d8l9he3/), use max. version [2.76](https://s3-us-west-2.amazonaws.com/supersu/download/zip/UPDATE-SuperSU-v2.76-20160630161323.zip) (ZIP not APK) 1. Optional but **highly recommended**: Replace SuperSU with Magisk. More active development, offers more. 4. [Open Google Apps](http://opengapps.org/) (ARM64, 8.0) - If you want "ok google" detection you need at least NANO, recommended MINI. 5. Your desired ROM goes here. I'm using [LineageOS-15.0OP2 third beta build](https://forum.xda-developers.com/oneplus-2/development/rom-lineageos-15-0-t3668056) from 11/2017. Check for [updates or other ROMs](https://forum.xda-developers.com/oneplus-2/development). 3. pc: Installed ADB (Y/Y/Y) 4. phone: Enable USB debugging, Enable OEM Unlocking, Enable Advanced Reboot 5. phone: Fastboot entered from bootloder NOT from VOLUP+POWER 6. pc: Open c:\adb "shift+rightclick" open powershell here 7. cmd: fastboot devices (if there is short serial number, you are good to go) 8. cmd: fastboot oem unlock 9. cmd: fastboot reboot 10. phone: Skip through first time phone setup, then enable everything that is in step 4) 11. phone: Power off, boot into fastboot (VOLUP+POWER) 12. pc: Rename twrp-3.1.1-0-oneplus2 to twrp.img, copy that file to c:\adb 13. cmd: fastboot flash recovery twrp.img 14. phone: Power off, VOLDOWN+POWER to enter TWRP 15. twrp: Reboot > System (don't install twrp app) 16. phone: Is everything working? Good. Now repeat 14) 17. twrp: Backup > Select all partitions > Perform Backup (../twres/languages/en-US.xml error is **not** an issue) 18. win: Copy the backup from the phone (path: \ONE A2003\Internal Storage\TWRP\BACKUPS\95c7fa27) 19. pc: Archive it with 7zip to OPO2_STOCK_NANDROID_BACKUP__201711.7z (From 2800 to 933Mb on highest compression) 20. Don't wipe the phone yet, copy Magisk-v14.0.zip from your PC to TWRP folder on phone 21. twrp (VOLDOWN+POWER): Install > Open TWRP folder, select Magisk-v14.0.zip and swipe to install. Reboot to system. 22. system: Install [Terminal Emulator for Android](https://play.google.com/store/apps/details?id=jackpal.androidterm) (Jack Palevich) and open the app. 23. system: We are going to backup **modemst1.bin** and **modemst2.bin** (why? Find Making and EFS backup on [this page](https://forums.oneplus.net/threads/24-06-2016-oneplus-2-how-to-unlock-bootloader-flash-twrp-root-nandroid-efs-backup-and-more.345478/#post-12644728).) ``` su dd if=/dev/block/mmcblk0p17 of=/sdcard/modemst1.bin bs=512 dd if=/dev/block/mmcblk0p18 of=/sdcard/modemst2.bin bs=512 ``` 24. At this point you have rooted phone and all backups. Congrats! 25. Save OPO2_STOCK_NANDROID_BACKUP__201711.7z and 2 modemst files somewhere safe (on PC). 26. pc: Now we are going to install custom ROM. Copy these files from PC to TWRP folder in phone storage: 1. lineage-15.0-20171018-BETA-4.0-oneplus2.zip 2. Magisk-v14.0.zip (or if want SuperSU, copy UPDATE-SuperSU-v2.76-20160630161323.zip) 3. open_gapps-arm64-8.0-nano-20171021.zip 27. twrp: Wipe > Advanced Wipe > Select Dalvik + System + Data + Cache > Swipe to Wipe 28. 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. 29. As someone from Czech Republic, I need to turn on converting of special characters to simple ones (řýů=ryu... etc). 1. app: Messages > Settings > Advanced > Use Simple Characters 30. I need to remind Google Calendar, that weeks start at Monday. Settings > General > Start of the week. 31. Download my local area in Google Maps, so it wont eat up data when I am travelling. 32. As a Google fanboy, I wanted to have the pixel launcher, so I use [Launcher3](https://forum.xda-developers.com/android/apps-games/launcher3-pixel-launcher-features-t3620972) as I find it best. If you find better one, let me know. 33. Sounds and buttons: 1. Go to Settings > System > Buttons if you want to change somehow obsolete menu button to Recent apps switcher. 2. Go to Settings > System > Alert Slider > Swap buttons - I am used to this from previous phones. 3. Go to Settings > System > Sound > Advanced > Vibrate on tap if you want to get rid of button vibrations. 4. Go to Settings > System > Sound > Phone ringtone > Use phobos for subtle, yet audible ringtone. 5. Go to Settings > System > Sound > Notofication sound > Use selenium if you want very subtle notification. 6. Go to Settings > System > Sound > Alarm > Really what works for you, as you might guessed i like subtle. Argon/Neon. 34. 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.