How to install OTA updates on rooted Android devices?

How to install OTA updates on rooted Android devices?

This new method involves patching the stock boot image using Magisk and then flashing the patched boot image via Fastboot. The best part about rooting your Android device with Magisk is that it gives you the ability to install OTA updates easily. So, follow the instructions below on how to do it.

How does Android 5.0 block based OTA work?

In Android 5.0 and above, Google introduced the concept of block-based OTAs. This new mechanism does certain pre-OTA block checks to verify the integrity of the device’s software. In layman terms, once the installation begins, the device partitions (like system, boot, vendor, dtbo, etc) are checked for modifications like Root, TWRP, etc.

Can you install OTA updates on an inactive partition?

Now, since most new OEM Android devices come with the A/B partition scheme, OTA updates are seamlessly installed to the inactive slot. When you root using Magisk, it is only installed to the currently active slot of your Android device. And thus, the inactive slot/partitions stay untouched.

What to do when you get an OTA update on Magisk?

When an OTA update is available, you will need to restore the stock boot image (and dtbo, if applicable) and uninstall Magisk from the current slot. To do so, go to the app drawer and launch the ‘ Magisk Manager ‘ app. Then tap on the UNINSTALL button and select the RESTORE IMAGES option.

How can I install OTA on my computer?

You must install Android SDK tool on your computer. Install Android USB driver on your computer. This method uses ADB Sideload command to install OTA ZIP on any Android device manually. But you need to have a computer on hand along with a USB cable (preferably the one provided by the OEM along with your phone box).

Can You update ROM on the same phone?

Yes you can! If the new update ( OTA / Full zip ) is just one version newer than the current ROM then just Dirty Flash the zip using a recovery. ( Dirty Flash means flashing a ROM without formatting the phone, it keeps the phones app and data.

Can You update the same ROM with a minor upgrade?

Edit:- if you’re going to update the “same rom” with “minor version” upgrade, simply flash the newer zip. Many ROMs provide OTA update facility also, which is nothing but automating/easing the process of you downloading manually the newer zip and then rebooting to flash the same. Yes you can!