Install OTA Updates on Rooted Android Devices with Magisk
https://ihax.io/install-ota-updates-rooted-android/
Step 1: Disable Automatic OTA Updates Step 1: Disable Automatic OTA Updates
Follow the steps below to disable Automatic System Updates in Android: Go to the Settings.
Look for and select the About phone menu.
Scroll down to the bottom and find the Build number section. Note: Please note that this setting can be buried even further in some Android devices. For example, in Samsung Galaxy devices, you should check here: Settings > About phone > Software information.
Next, continuously tap on the ‘Build number’ section until you see some sort of toast message like ‘You are now a developer’. ‘Developer options’ is now enabled.
After that, go to Settings > System > Developer options.
Scroll down and turn off the Automatic system updates toggle.Step 2: Restore Stock Boot Image Step 2: Restore Stock Boot Image
Next up, you need to restore stock boot images on your Android device. It is fairly simple – follow the below steps: Open the ‘Magisk Manager’ app.
Tap on the UNINSTALL button.
Select the RESTORE IMAGES option.
Wait until you see the “Restoration done!” message on the screen. DO NOT REBOOT YOUR DEVICE AFTER THIS STEP; DOING SO WILL REMOVE MAGISK FROM YOUR PHONE. Go to the next step.Step 3: Install the OTA Update Step 3: Install the OTA Update
Now you have stock boot image restored, you are good to install the OTA update on your rooted Android device. Go to the device Settings > System > System update
Tap on the ‘Download and Install’ button. Wait for the installation process to complete. DO NOT REBOOT YOUR DEVICE AFTER THIS STEP; DOING SO WILL REMOVE MAGISK FROM YOUR PHONE. Go to the next step.Step 4: Retain TWRP Recovery after OTA Installation [Optional] Step 4: Retain TWRP Recovery after OTA Installation [Optional]
This step is completely optional and only needs to be followed if you have rooted your Android device by flashing Magisk zip via TWRP recovery. In such a case, TWRP will be removed after you install the OTA update using the instructions below. In order to preserve TWRP after updating, download and install the ‘TWRP A/B Retention Script‘. Didn’t install via TWRP? No problem; move along to the next step!
For this, you will need to download and install “TWRP A/B Retention Script” () from within Magisk Manager. To do so, follow the steps below: Open the ‘Magisk Manager‘ app.
Tap on the menu on the top-left corner.
Select ‘Downloads’.
Next, search for ‘TWRP A/B Retention Script‘.
Tap on the download icon and select the Install option. The Magisk Module (which is a small script, in this case) will now be installed on your phone. On to the next step!Step 5: Preserve Magisk Root after OTA Installation Step 5: Preserve Magisk Root after OTA Installation
The last step to install Magisk to the other inactive slot. This is to make sure that you still have root even after you reboot your device after installing the OTA update. Open Magisk Manager.
Tap on the INSTALL button and then again select the ‘INSTALL‘ option.
Select ‘Install to Inactive Slot (After OTA)‘ when prompted to choose the installation method.
Next, tap on ‘YES‘ to confirm. Magisk will now be installed on the inactive slot. Once the installation completes, tap on the ‘Reboot‘ button. Magisk Manager will reboot your Android device to the inactive slot where the OTA update was installed.
Phew, that was a lengthy process and it is finally over. Now you should have root with Magisk on your Android device even after installing the OTA update.
Questions? That’s why we have the comments section. Hit me up! Tags9 thoughts on “Install OTA Updates on Rooted Android Devices with Magisk” 9 thoughts on “Install OTA Updates on Rooted Android Devices with Magisk” 1.Is this process eligible for Samsung Galaxy M30 ?
2. Does it wipe my data & Settings ? Hi, thanks for the tutorial.
In step 3 when I install the update I get the following message:
“root is detected. system will begin downloading the full upgrade package.to ensure your data integrity, please perform a backup. your device will be unrooted once the upgrade is complete”
What should I do? I am using a OnePlus 8T by the way. Is this going to remove all the settings and changes to apps that were installed/uninstalled since customizing the device? There is no explicit warning in this article. Does your android require A/B partition to perform this Do we have to perform this procedure each time an OTA is to be installed? or does it needed to be done once and then subsequent OTAs will be installed like normally? Yes. It’s not an one time thing. Thanks for your guide. When I got to step 3 to check for updates, it still says my system is up to date. I’m on Android 11 on pixel 5a and Android 12 is released. Any ideas why I can’t get the update even after restoring stock boot image? Thanks How is it possible to avoid the automatic reboot? Installing the OTA update always leads to a reboot.
DA: 35 PA: 95 MOZ Rank: 47