How to Root OnePlus 2 & Install TWRP Recovery
In this article
Rooting your OnePlus 2 gives you full administrative control over the Android system, letting you remove bloatware, install powerful apps like Titanium Backup, and flash custom ROMs. Installing TWRP (Team Win Recovery Project) is the essential first step—it's a custom recovery that lets you create full backups and flash the rooting package (typically Magisk). This guide walks you through the entire process safely. Before you start: this will wipe your device, void your warranty, and carries a small risk of bricking. Back up all important data to your computer or cloud. You'll also need to enable Developer Options and OEM unlocking in Android settings.
What You'll Need
- OnePlus 2 (any variant, but verify your model number in Settings > About phone)
- A Windows, Mac, or Linux computer
- USB data cable (the original cable is best)
- Unlocked bootloader (required for TWRP; the process is described below)
- Download the following files:
- Official TWRP image for OnePlus 2 (twrp-3.x.x-x-oneplus2.img) from the official TWRP website
- Latest Magisk ZIP (Magisk-vXX.X.zip) from the official Magisk GitHub releases
- ADB and Fastboot tools (platform-tools) from the Android developer site
- Enable USB debugging and OEM unlocking in Developer Options (Settings > About phone > tap 'Build number' 7 times to unlock Developer Options)
Step-by-Step
- Back up your device. Use the built-in backup in Settings > System > Backup, and also copy any photos, videos, and documents to your computer manually. A full TWRP backup isn't possible yet, so this is your only safety net.
- Install ADB and Fastboot. Extract the platform-tools ZIP to a folder on your computer (e.g., C:\adb). Open a command prompt or terminal in that folder (Shift+right-click > 'Open command window here' on Windows, or use 'cd' on Mac/Linux).
- Unlock the bootloader. This wipes your device completely. With the phone powered off, hold Volume Up + Power to boot into fastboot mode (you'll see a 'Fastboot' screen). Connect the phone to your computer. In the command window, type
fastboot devicesto confirm your phone is detected (you may need to install USB drivers on Windows). Then typefastboot oem unlock. On the phone, use the volume keys to highlight 'Unlock bootloader' and press Power to confirm. The phone will reboot and wipe data. Set up the phone again, and re-enable USB debugging and OEM unlocking (since the reset disabled them). - Boot into fastboot again. Power off the phone, then hold Volume Up + Power to enter fastboot mode. Connect to your computer.
- Flash TWRP temporarily. In the command window, type:
fastboot boot twrp-3.x.x-x-oneplus2.img(replace with the actual filename). This boots TWRP without permanently installing it—a safety measure. The phone will reboot into TWRP recovery. - Install TWRP permanently. Once TWRP is booted, tap 'Advanced' > 'ADB Sideload'. On your computer, type:
adb sideload twrp-3.x.x-x-oneplus2.img. This pushes the image to the phone and installs it. After it finishes, tap 'Reboot' > 'Recovery' to boot into the now-installed TWRP. - Optional: Create a full backup. In TWRP, tap 'Backup', select all partitions (System, Data, Boot, etc.), and swipe to back up. This is your safety net for the rooting step. Store the backup on an external SD card or transfer it to your computer later.
- Copy Magisk to the phone. While in TWRP, tap 'Mount' and make sure 'System' and 'Data' are checked. Then, on your computer, type:
adb push Magisk-vXX.X.zip /sdcard/. This copies the Magisk ZIP to the phone's internal storage. - Flash Magisk. In TWRP, tap 'Install', navigate to the Magisk ZIP file, select it, and swipe to confirm the flash. Wait for it to finish.
- Reboot and verify. Tap 'Reboot' > 'System'. The phone will reboot (first boot may take longer). Once booted, install the Magisk Manager app (now called just 'Magisk') from the Play Store, or it may already be installed. Open it—you should see 'Magisk is installed' and a green checkmark indicating root is active.
Common Mistakes
- Forgetting to unlock the bootloader first. TWRP will fail to install or boot if the bootloader is still locked. Always do step 3 first.
- Using the wrong TWRP image. The OnePlus 2 has two variants (A2001, A2003, etc.), but the TWRP image is universal for all OnePlus 2 models. However, using a TWRP for a different phone (like OnePlus 3) will brick it. Double-check the filename.
- Not enabling USB debugging. ADB commands won't work if USB debugging is off. Verify it in Developer Options.
- Interrupting the flash. Do not unplug the USB cable or close the command window during any fastboot or adb operation. Wait for the command to complete.
- Booting to system before flashing Magisk. If you reboot to Android after installing TWRP but before flashing Magisk, the phone may bootloop or lose root. Always flash Magisk in the same TWRP session.
Tips
- Use a short, high-quality USB cable and a direct USB port on your computer (avoid hubs) to prevent connection drops.
- Keep the TWRP image and Magisk ZIP in the same folder as your ADB tools for easy typing.
- After rooting, you can use Magisk to hide root from banking apps if needed (via Magisk Hide or DenyList).
- If you ever need to unroot, simply boot into TWRP, flash the 'uninstall' Magisk ZIP (available on the Magisk GitHub), or restore your TWRP backup.
- Write down your passwords and Google account details before unlocking the bootloader, as the wipe will remove them.
Troubleshooting
- 'fastboot devices' shows nothing. Install the OnePlus USB drivers (available from OnePlus's support site) and try a different USB port. On Windows, check Device Manager for a yellow triangle.
- Bootloader unlock command fails. Ensure you're in fastboot mode (not recovery). The command is
fastboot oem unlockfor OnePlus 2—if it says 'unknown command', tryfastboot flashing unlockinstead. - TWRP boots but touchscreen doesn't respond. This can happen on the first boot. Hold the power button to force-reboot, then try again. If it persists, re-download the TWRP image and try again.
- Phone stuck in a bootloop after rooting. Boot back into TWRP (hold Volume Down + Power from off), go to 'Wipe' > 'Advanced Wipe', select 'Dalvik/ART Cache' and 'Cache', and swipe to wipe. If that doesn't help, restore your TWRP backup (if you made one) or flash the stock ROM via fastboot.
- Magisk Manager says 'not installed'. Reboot into TWRP, flash the Magisk ZIP again, and reboot. If it still fails, try a different Magisk version (some are incompatible with Android 6.0, which the OnePlus 2 runs by default).
Frequently Asked Questions
Will rooting my OnePlus 2 void its warranty?
Yes, unlocking the bootloader and installing TWRP will void the manufacturer's warranty. However, you can restore the phone to stock (relock the bootloader and flash stock firmware) to regain warranty eligibility, though some carriers may still detect the tampering.
Can I still receive OTA updates after rooting?
No. OTA updates will fail because the system partition is modified. To update, you'll need to flash the new stock ROM manually via fastboot or TWRP, then re-root by flashing Magisk again.
Will rooting affect my bank apps?
Many banking apps detect root and refuse to run. You can use Magisk's 'DenyList' feature (in Magisk settings) to hide root from specific apps, which works for most. However, some apps with advanced detection (like Google Pay) may still not work.
Is it possible to unroot later?
Yes. Boot into TWRP and flash the Magisk uninstaller ZIP (available from the Magisk GitHub). You can also restore a TWRP backup made before rooting, or flash the stock boot image via fastboot.
What if I don't want to unlock the bootloader? Can I still root?
No. Unlocking the bootloader is mandatory for installing TWRP and rooting on the OnePlus 2. There is no safe alternative that bypasses this step.
Will my data be wiped during the process?
Yes, unlocking the bootloader wipes all data, including internal storage. That's why backing up first is critical. After that, TWRP and Magisk installations do not wipe data again unless you choose to.