Home > OnePlus

Update OnePlus to Android 11 OxygenOS 11 via TWRP without losing root

In this guide, we will show you the steps to update OnePlus devices from OxygenOS 10 (Android 10) to OxygenOS 11 (Android 11) using TWRP and retaining root in the process as well. In other words, we will make sure that you have both the TWRP and root in the end. Do keep in mind that during one of the steps of flashing OxygenOS via TWRP, you will lose root and TWRP (but you will still be booted to TWRP).

So it is extremely important to reinstall TWRP and then re-flash Magisk for root before rounding off the steps. Finally, we will decrypt the data partition and that’s it. All these tasks will be carried out right from TWRP itself, no need to go anywhere else! Furthermore, I have tried this guide on OnePlus 7 Pro running OxygenOS 10 stable with TWRP installed.

I performed the update from OxygenOS 10 stable to OxygenOS 11 Beta 4, but it should also work if you are planning to update to the stable build of OxygenOS 11. So keeping all this in mind, let’s get started with the guide to update OnePlus to Android 11 OxygenOS 11 via TWRP without losing root.

How to Update OnePlus to Android 11 OxygenOS 11 via TWRP Without Losing Root

Update OnePlus to Android 11 OxygenOS 11 via TWRP Without Losing Root

To begin with there are a few prerequisites that you need to checkmark. Make sure you go through each one of them very carefully. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

Make sure TWRP Recovery is Installed on OxygenOS 10

First and foremost, your device should be having the TWRP Recovery installed on your current Android 10 build. If that is not the case, then you may refer to our guide to install the custom recovery.

So can’t we normally update our device to Android 11 and then install TWRP? Well in general instances, you can. But as of now, TWRP is having issues with the OnePlus 7 series running Android 11. So it’s better to stay on Android 10, install TWRP, and then upgrade the OS to OxygenOS 11. In doing so, the issue seems to have been greatly minimized.

Take a Backup

During the steps to update OnePlus devices from OxygenOS 10 (Android 10) to OxygenOS 11 (Android 11) using TWRP and retaining root, you will have to wipe off the data partition which will result in data loss. So make sure to create a complete device backup beforehand.

Download OxygenOS 11

Next up, download the Android 11 OxygenOS 11 Update file corresponding to your device. This will be used for the upgrade process. OnePlus Official Firmware Page.

Download TWRP, Magisk, and DM-Verity

Next up, you will have to download the following files:

  • TWRP: While you would already be having TWRP installed, but during the process of lashing OxygenOS 11 via TWRP, it will be overridden with stock, So you will have to re-flash it. Download: TWRP for OnePlus Devices.
  • Magisk: It will be flashed via TWRP to attain root. If you are planning to download the latest Magisk build v22, then it will be named Magisk APK. So you will have to rename it to Magisk ZIP to make it a flashable ZIP. On the other hand, if you are downloading older builds (such as 21 or 20.4), then you could directly download the Magisk ZIP Installer. Download: Magisk All Versions.
  • DM-Verity: it will be flashed via TWRP to decrypt the data partition. Download Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip.

Install Android SDK

install adb platform tools windows

Install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide to update OnePlus devices from OxygenOS 10 (Android 10) to OxygenOS 11 (Android 11) using TWRP and retain root.

Enable USB Debugging


You will have to enable USB Debugging to make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging.

Boot OnePlus to TWRP Recovery

  1. Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Type in the following command in the CMD window to boot your device to TWRP.
    adb reboot recovery

However, if you haven’t yet permanently installed TWRP, then you may boot to TWRP via the fastboot boot twrp.img command (after placing twrp.img inside platform-tools folder).

Format Data on OnePlus via TWRP


  1. To begin with, you will have to format data via TWRP.
  2. For that, go to Wipe and tap on Format Data.
  3. Then type in YES in the space provided.
  4. Finally, hit the checkmark situated at the bottom right.

Transfer Files to Device

Now that we are done with the data wipe, it’s time to transfer files via TWRP. To do so, go to Mount and tap on Enable MTP. Now your device will be recognizable by your PC. So transfer the OxygenOS 11 ROM, Magisk ZIP, Disable DM-Verity files.


If Mount doesn’t work out, then you may also use a USB OTG/Pendrive. As of now, I wouldn’t recommend using ADB sideload because it will directly flash the file and for this guide, it’s better to have manual control. So only use sideload in the worst-case scenario, if nothing else works out.

Install OxygenOS 11 Android 11 via TWRP on OnePlus

We are now into the crux of this guide to update OnePlus devices from OxygenOS 10 (Android 10) to OxygenOS 11 (Android 11) using TWRP and retain root. Follow along.

install oxygenos 11 twrp oneplus root

  1. Go to the Install section of TWRP.
  2. Select the OxygenOS 11 ZIP File.
  3. Perform a right swipe to flash it.

Install TWRP, Magisk, DM Vertity

Its now time to flash the three remaining files, follow the same order of flashing as given below:

  1. First off, select the TWRP ZIP file and flash it.
    install twrp android 11 oxygenos 11 oneplus 7 pro
  2. After this, it is recommended to go to Reboot and select Recovery to reboot your device to TWRP.
  3. Once that is done, select the Magisk ZIP file and flash it.
  4. Finally, select the Disable DM Verity file and flash it.
  5. After this, go to Reboot and select Recovery. Your device will now reboot to TWRP.
  6. Once that happens, you will have to again flash Magisk as well as Disable DM Verity (first Magisk and then DM Verity).
  7. So flash both these files and once done, you may now reboot the device to the OS. For that, go to Reboot and select System.

That’s it. These were the steps to update OnePlus devices from OxygenOS 10 (Android 10) to OxygenOS 11 (Android 11) using TWRP and retaining root. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

  • Anonymous

    thanks you so much from USA

  • you are amazing Mate! cheers from USA

  • completing all steps. booting os. after that will my twrp work in oos11? or this twrp only works for flashing oos11 from oos10 with root?

  • ehsan abedi

    how i can back to encryption…after twrp full support decrypt oos????

    • Sadique Hassan

      Hi Ehsan, which OnePlus device do you have?

      • Krishna Sagar

        I have OnePlus 8..does it work on it?

        • Sadique Hassan

          Hi Krishna, I have tried it on OnePlus 7, so there’s no reason why it shouldn’t work on the OnePlus 8 as well. But still, it is recommended to take a backup before proceeding with the steps.

      • love from AMERICA BABY

      • wow you are ignorant, shame on u, i show respect and you are racist towards me bec im American? F u

      • just want to show my appreciation for the help from USA. is that ok Sadique?

  • Can I use this DM Vertity for Oneplus 7 too, because this is tutorial for oneplus 7 pro?
    Thanks, Rude

    • Sadique Hassan

      Hi Rude, yes you can use it for oneplus 7 pro. And sorry for the late reply, was down with ill health.