Keeping Root while updating (OTA/Local Install) Only for Stock Rom

Warning ⚠️
Do this at your own risk. No one is resposible if anything happens to your device

  1. Enable developer options on your phone.
  2. Go to “Settings” → “Developer options” and disable the “Automatic system updates” option
  3. -Open the Magisk Manager application, disable all you modules.
    -Select “Uninstall Magisk” → “Restore Images” option.
    -Magisk will restore your phone’s stock boot image that was backed up during the rooting process.
    Note! If you are getting error like "stock backup does not exist" then just skip step 3.
  4. Go to “Settings” → “About Device” → “Click on OxygenOS” → “Local Install" / "Download" if OTA is available.
  5. Once the update is downloaded/loaded, click on "Extract" and wait for extraction to complete.
  6. Once extraction is done, wait for verification to complete.
  7. Once verification is done, you'll get an option to "Install"

    Important!
    DO NOT CLICK ON THE INSTALL BUTTON YET. Since you restored the stock boot image, the root access will be lost if you install it now.

  8. Open Magisk Manager, click on “Install” → “Install to Inactive Slot (After OTA)” → "Let's Go" and install Magisk to the inactive slot (where the OxygenOS OTA has been installed)
  9. Wait for Magisk to do its thing.
  10. I would suggest not clicking "Reboot" from magisk instead go back to settings and click on Install (where you had left before).
  11. Done
Success! That's it, your phone should reboot to updated OxygenOS with the root still intact.Cheers!!!
Original XDA Form: Thread

Credit: yashaswee-exe

Pranish

Post a Comment