If you have rooted your OnePlus 7 ProOnePlus 7 or any other older device, you know how much of a pain installing updates is.

If you don’t install an update in the proper manner, then the device may fail to boot. And even if you install the update, it may result in the removal of the TWRP recovery and root access.

But worry not!

Here’s a trick to let you install the OTA update and not run into any bootloop issue while keeping root and TWRP recovery.

How to install updates and keep TWRP and Root (Magisk)

  1. Download the update on your device first.
    1. Update download → OnePlus 7 Pro | OnePlus 6 | OnePlus 6T | OnePlus 5 | OnePlus 5T
    2. If you downloaded the update file on PC, then transfer it to your OnePlus 7 Pro.
    3. Note: Do not copy the file inside any folder or subfolder on your OnePlus 7 Pro. It needs to be on the root of the internal storage.
  2. Install the update file using the system update menu.
    install update on OnePlus device
    1. Open the Settings app on your OnePlus 7 Pro.
    2. Scroll down and tap on System.
    3. Tap on System updates.
    4. Tap on the gear icon in the top right,
    5. Tap on local upgrade.
    6. Tap on the update file you transferred above. (If you saved it inside any folder, it will not show up for selection. See step 1.2 above.)
    7. Tap on Install Now.
    8. You will see the System update is installing dialogue. Let the system install the update.
    9. DO NOT REBOOT the device.
  3. Connect your OnePlus 7 Pro device to PC using the USB cable that came with it.
  4. Transfer these files to your OnePlus 7 Pro:
    1. TWRP installer ZIP file
    2. Magisk file
  5. Reboot the device to bootloader mode:
    1. Open Magisk app.
    2. Tap on Hamburger menu in the top left.
    3. Tap on Modules.
    4. Tap on 3-dot button in the top right.
    5. Tap on Reboot to bootloader.
  6. Now open a command window inside the folder where you have the TWRP .IMG file from above. Do this:
    1. Go to the folder where you have the downloaded files.
    2. Type cmd in the folder’s address bar.
    3. Hit the enter key. A command window will open up, and its location will be that folder.
      open-a-command-window-in-a-folder
  7. Boot TWRP recovery on your OnePlus 7 Pro. Once your OnePlus 7 Pro boots into bootloader mode, run the command below to install TWRP temporarily and access it right away.
    fastboot boot <name of twrp file here>.img
  8. Install TWRP recovery on your OnePlus 7 Pro permanently. If you are sure that TWRP is working well, you can now install the TWRP recovery permanently. Here’s how:
    TWRP ZIP installation in TWRP
    1. On the device, tap on the Install button.
    2. Select the TWRP ZIP file you transferred right above.
    3. Perform the Swipe action to confirm and install the TWRP recovery permanently.
    4. [Careful!] Now, reboot back to TWRP again. Tap on the home button, then on the Reboot button, and then on the Recovery button to restart the device into TWRP.
    5. Wait, don’t reboot the device yet. You still need to root the device using Magisk, or install a DM Verity disabler file, to not let the system remove TWRP when you restart the device. Yes, to keep TWRP, you need to install either Magisk file or DM Verity disabler file. See the next step for that.
  9. Root your OnePlus 7 Pro. But if you don’t want to root the device, simply install DM Verity disabler file in place of Magisk root file.
    Magisk ZIP installation in TWRP
    1. Go back to the home screen of TWRP.
    2. Tap on Install.
    3. Browse and select the Magisk root package file (or the DM Verity disabler file).
    4. Perform the Swipe action to confirm the installation on the next screen.
  10. Tap on the Reboot system button to restart the device. You will have the latest update as well as TWRP Recovery and root access via Magisk.

That’s all.