TechBuzzPro

OnePlus 5 & 5T Root & TWRP: A Complete Guide

· 5 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install TWRP recovery and root your OnePlus 5 or 5T running OxygenOS. This process unlocks the ability to flash custom ROMs, kernels, and mods, giving you greater control over your device. However, it also voids your warranty and carries a risk of bricking your phone if not done correctly. Proceed with caution and follow these instructions carefully.

What You'll Need

  • A OnePlus 5 or OnePlus 5T
  • A Windows PC (required for some tools)
  • USB Cable (the one that came with your phone is best)
  • ADB and Fastboot drivers installed on your PC. (See notes below)
  • TWRP recovery image for your specific OnePlus 5/5T model. (Download from a reputable source like the official TWRP website – ensure you choose the correct image for your device variant.)
  • Magisk ZIP file (for rooting).
  • Sufficient battery charge (at least 60%).

Important Note on ADB and Fastboot Drivers: These are essential tools for communicating with your phone in bootloader mode. If you haven't installed them, search online for "ADB and Fastboot drivers for Windows" and follow a reputable guide. There are many tutorials available. Make sure you are downloading from a trusted source to avoid malware. Incorrect drivers can prevent your computer from recognizing your phone.

Step-by-Step

  1. Unlock the Bootloader: This is the most crucial step and will erase all data on your phone. Back up anything important before proceeding.
    • Enable USB Debugging: Go to Settings > About Phone and tap "Build number" seven times to enable Developer Options.
    • Enable OEM Unlocking: Go to Settings > System > Developer Options and enable "OEM Unlocking."
    • Connect your phone to your PC via USB.
    • Open a command prompt or PowerShell window on your PC.
    • Type adb devices and press Enter. You should see your device listed with a serial number. If not, double-check your drivers.
    • Type adb reboot bootloader and press Enter. Your phone will reboot into Fastboot mode.
    • Type fastboot oem unlock and press Enter.
    • Follow the on-screen instructions on your phone to confirm the unlock. This will wipe your device.
  2. Flash TWRP Recovery:
    • Download the correct TWRP image file (.img) for your OnePlus 5 or 5T from the official TWRP website.
    • Rename the TWRP image file to something simple like twrp.img.
    • Place the twrp.img file in the same directory as your ADB and Fastboot tools.
    • In the command prompt/PowerShell window (still in Fastboot mode), type fastboot flash recovery twrp.img and press Enter.
    • Type fastboot reboot and press Enter. Your phone should now boot into TWRP recovery. If it boots into OxygenOS instead, you may need to immediately boot into TWRP again by holding the Power and Volume Down buttons simultaneously when the OnePlus logo appears.
  3. Root with Magisk:
    • Download the latest Magisk ZIP file from the official Magisk GitHub repository.
    • Copy the Magisk ZIP file to your phone's internal storage (or an external SD card if you have one).
    • In TWRP recovery, tap "Install."
    • Navigate to the Magisk ZIP file and select it.
    • Swipe to confirm the flash.
    • Tap "Reboot System."

Common Mistakes

  • Incorrect TWRP Image: Using the wrong TWRP image for your specific OnePlus 5/5T model can brick your device. Double-check the model number before downloading.
  • Missing Drivers: If your PC doesn't recognize your phone in Fastboot mode, it's likely a driver issue. Reinstall the ADB and Fastboot drivers.
  • Not Backing Up Data: Unlocking the bootloader and flashing TWRP will erase all data on your phone. Always back up your important files.
  • Interrupted Flash: Do not disconnect your phone during the flashing process. This can corrupt the system and brick your device.
  • Forgetting to Enable OEM Unlocking: Without enabling OEM Unlocking, you cannot unlock the bootloader.

Tips

  • Research Thoroughly: Before starting, read multiple guides and watch videos to familiarize yourself with the process.
  • Download from Reputable Sources: Only download TWRP and Magisk from official websites or trusted sources to avoid malware.
  • Keep Your Phone Charged: A low battery can interrupt the flashing process.
  • Double-Check Everything: Before pressing Enter, carefully review each command to ensure it's correct.
  • Consider a Custom Recovery Helper App: Some apps can simplify the TWRP flashing process. However, use them with caution and only from trusted developers.

Troubleshooting

  • Phone Won't Boot: If your phone gets stuck in a bootloop or won't boot at all, try booting into TWRP recovery and wiping the cache and Dalvik cache. If that doesn't work, you may need to restore a backup or reflash the stock ROM using the OnePlus MSM Download Tool (this is a more advanced process).
  • PC Doesn't Recognize Phone: Reinstall the ADB and Fastboot drivers and try a different USB cable and port.
  • TWRP Not Installing: Make sure you have the correct TWRP image for your device and that your bootloader is unlocked.
  • Magisk Not Rooting: Ensure you have flashed the Magisk ZIP file correctly in TWRP. Sometimes, a reboot is not enough; try flashing Magisk again.
  • "Error 68" or similar Fastboot errors: These often indicate a driver issue or a problem with the USB connection. Try a different USB cable and port, and ensure the drivers are correctly installed.

Frequently Asked Questions

Can I revert back to the stock OxygenOS ROM after rooting?

Yes, you can. You'll need to download the stock OxygenOS ROM for your device and flash it through TWRP. However, this will erase all data on your phone.

Will rooting void my warranty?

Yes, rooting your OnePlus 5 or 5T will void your warranty. OnePlus explicitly states this in their warranty policy.

Is Magisk the only rooting method?

While Magisk is the most popular and recommended method, there are other rooting methods available. However, Magisk is generally considered safer and more versatile.

Does rooting affect battery life?

Rooting itself doesn't directly affect battery life. However, the custom ROMs or mods you install after rooting can impact battery performance.

Can I use Google Pay after rooting?

Using Google Pay after rooting can be tricky. It often requires MagiskHide to conceal the root status from Google Pay, but this is not always reliable and can lead to transaction failures. Consider the risks before attempting to use Google Pay on a rooted device.