Ad
  • Home
  • Forums
  • MOBILE PHONE
  • 📖 Android Guides

Closed Update OTA (On the Air) Without losing root

  • Thread starter Thread starter Keeeera
  • Start date Start date Jun 23, 2020
Status
Not open for further replies.
K

Keeeera

Forum Veteran
  • Jun 23, 2020
  • #1
An OTA update has arrived, but you cannot install it because your Android device is rooted? Well, that’s a known downside of rooting Android. In this guide, you will learn how to install OTA updates on rooted Android devices using Magisk. By using the method provided in this guide, you will also be able to retain root and TWRP after installing the OTA update. Before we get any further, let us take a quick look at what OTA updates are and how they work.

What is an OTA Update?
Click to expand...

An OTA Update a.k.a an Over-the-Air Update is a wireless method of receiving and installing updates to an Android device’s software.

It is remotely pushed by the device manufacturer (Also known as the ‘OEM’) and is the easiest and most effective way to update an Android device’s software to the latest available version. Once an OTA update arrives, it is either automatically installed or prompts the user to manually download and install it.

So, how does one install an OTA update on a rooted Android device? You will know more about it in the next section. Read ahead.

Why You Can’t Install OTA Updates on Rooted Android Devices Automatically?
Click to expand...
Rooting an Android device is great, it gives the user tremendous control over the device’s software and allows making any sort of modifications to it. However, it comes with its own drawbacks. The biggest one is losing the ability to take automatic OTA (over-the-air) updates. And users (Generally who are new to the scene) often tend to overlook this factor when they root their Android device.

Why-Cant-Install-OTA-Updates-on-Rooted-Android-Devices.jpg
In Android 5.0 and above, Google introduced the concept of You do not have permission to view the full content of this post. Log in or register now.. 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. And if detected, the OTA update will fail to install.
Magisk Root, A/B Partitions, and OTA Updates
Click to expand...
But thanks to Magisk, you can easily install OTA updates on rooted Android devices without losing root. For those who don’t know, Magisk is a Universal Systemless Interface that allows you to make modifications to your Android device’s software systemless-ly, that is, without altering the /system partition.

Not just that, it has also developed to be the most prominent modern-day rooting solution for Android using MagiskSU. Want to know more about how it came into existence?
The developer devised two different methods to install Magisk and root Android devices:

The first method follows the traditional process of installing a custom recovery (TWRP, OrangeFox, etc) and then using it to flash the Magisk installer zip (root package). But since you will install a custom recovery during this method, it makes it even harder to take OTA updates.So, to regain the ability to take automatic OTA updates or install them manually, you would require to first uninstall/remove root and other modifications applied to the software. And further, restore the stock Android recovery on your device.
The second method was introduced when Google first released the Google Pixel devices in 2016. These devices came with dual A/B partition system to support seamless updates and removed the recovery partition from the devices completely. So, the first method failed rigorously.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 to Install OTA Updates on Rooted Android Devices?
Click to expand...

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.

When an OTA arrives, you can simply restore the stock boot image from within Magisk Manager, then install the OTA update to the inactive slot. And finally, right before you reboot your phone, you can install Magisk to the inactive slot to preserve root after the update.

Still sounds a bit confusing? Don’t worry, the instructions below will take you through the complete process in detail. For your convenience, we have split the instructions into 5 different steps so that you can understand exactly what you’re doing.

Step 1: Disable Automatic System Updates in Settings
In Android 8.0 Oreo (and above), Google introduced a new automatic updates policy that downloads and installs OTA updates as soon as they are available.

Although this is great for an average Android user, but not for those who have rooted their devices. In order to update your rooted Android phone, you must first prevent the system from automatically installing updates without your acknowledgment.

Simply follow the steps below to disable Automatic System Updates in Android:


1.Go to the Settings menu on your Android device.
2.Navigate through the settings and select the About phone menu.
3.Scroll down to the bottom and find the Build number section.
Note: In the case of some OEM devices, the Build Number section could be nested further in the Settings menu. For example, in Samsung Galaxy devices, you will need to go to Settings → About phone → Software information.
4.Now, continuously tap on the ‘Build number’ section for five (5) times to enable ‘Developer options‘ on your device.5.Onceenabled, go to Settings → System → Developer options.6 Scrolldown and turn off the Automatic system updates toggle.You do not have permission to view the full content of this post. Log in or register now.
Step 2: Restore Stock Boot Image When an OTA is Available
Click to expand...

Now your Android device is rooted and an OTA update notification has arrived. 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. You should now see the “Restoration done!” message on the screen.
Do not! Absolutely do not reboot your phone now, or else Magisk will be uninstalled completely.

Step 3: Install the OTA Update on your Rooted Android Device
Click to expand...

Now, with the stock boot image restored, you can freely install the OTA update on your rooted Android device. Simply go to the device Settings → System → System update, and press the ‘Download and Install‘ button.

You do not have permission to view the full content of this post. Log in or register now.

Once the installation finishes, you shall be prompted to reboot your phone. DO NOT REBOOT YOUR DEVICE YET! Simply move ahead to the next step.
Step 4 [Optional]: Retain TWRP Recovery after OTA Installation
Click to expand...

This is an optional step and only to followed if you installed Magisk using TWRP recovery (Method 1). It will allow you to retain TWRP recovery after installing the OTA update.

For this, you will need to download and install “TWRP A/B Retention Script” (by XDA Recognized Developer osm0sis) from within Magisk Manager. To do so, follow the steps below:

Go to the app drawer and launch the Magisk Manager app.
Tap on the menu icon (3-horizontal lines) on the top-left of the app’s window.

  1. Go to the app drawer and launch the Magisk Manager app.
  2. Tap on the menu icon (3-horizontal lines) on the top-left of the app’s window.
    You do not have permission to view the full content of this post. Log in or register now.
  3. Select ‘Downloads‘.
  4. Now search the modules repository for “TWRP A/B Retention Script“.
    You do not have permission to view the full content of this post. Log in or register now.
  5. Next, tap on the download icon and select the Install option.
The script should now be installed on your phone. There’s nothing more you’d need to do for this now. The script will do its job and preserve TWRP after the OTA installation finishes.

The script should now be installed on your phone. There’s nothing more you’d need to do for this now. The script will do its job and preserve TWRP after the OTA installation finishes.

Step 5: Preserve Magisk Root after OTA Installation
Click to expand...
The final step to install Magisk to the inactive slot. This will preserve root after the OTA installation is finished and the device is rebooted into the updated OS.

Open Magisk Manager.

Install Magisk to Inactive Slot - Tap on the Install button
Tap on the ‘INSTALL‘ button and select the ‘INSTALL‘ option

Select ‘Install to Inactive Slot (After OTA)‘ when prompted to choose the installation method.
Install Magisk to Inactive Slot in Magisk Manager

Finally, tap on ‘YES‘ to confirm when the warning message appears on the screen.

Magisk will now be installed on the inactive slot.

Install Magisk to Inactive Slot - Reboot your device
Once the process finishes, tap on the ‘Reboot‘ button.
Magisk Manager will now force-switch your Android device to the inactive slot where the OTA update was installed. This will help prevent any post-OTA verifications that the system might have carried.

That’s it! You have just successfully installed an OTA update on your Android device rooted with Magisk. So when the next time an OTA update arrives, you can follow the same instructions to upgrade your device, and that too without losing root.

If you have any questions regarding the instructions/procedure listed here, feel free to let us know. We shall try to help you to the best of our knowledge. Make sure that you mention your device’s name (model number if applicable) and the software build number installed. This will allow us to help you quickly and more efficiently.

Thanks to Magisk Documentation.
Click to expand...
 

Attachments

  • Why-Cant-Install-OTA-Updates-on-Rooted-Android-Devices.webp
    25.5 KB · Views: 11
Reactions: coldhearted77 and Tansasss
K

Kyklops

Leecher
Elite
  • Jun 23, 2020
  • #2
Question: Applicable lang ba ito sa Pixel handset? o pwede rin sa any Android device with Magisk installed?
 
TS
TS
K

Keeeera

Forum Veteran
  • Jun 23, 2020
  • #3
If someone following the step and showing error pop-up show
Couldn't install system update bla bla bla.

Because the OTA has detected some sort of modification in the corresponding boot, system, vendor partition in your device,
 
TS
TS
K

Keeeera

Forum Veteran
  • Jun 23, 2020
  • #4
Question 1
I just got a new phone and I’ve been reading your guides in advance before rooting. Can I still get OTAs with the second method (not using TWRP) provided in this guide with Xiaomi Redmi Note 8 Pro? Guides on other sites all either state that I need TWRP or won’t be able to get OTAs at all. It operates on Android 9 Pie and MIUI 11. I’d much rather use the non-TWRP method because it seems easier and more convenient but I’m not sure if I can. Sorry if the question is dumb, I’m not too good with software

No, the question makes absolute sense. The thing is, that the Redmi Note 8 Pro doesn’t have a second slot to install the OTA or Magisk to, after updating. That’s why it will not work on the phone.

The good thing with Xiaomi is that you can flash the latest OTA updates directly via TWRP. For devices with an A-only system, TWRP is a very good tool to have. You can use it to take backups of the complete OS, use it to flash custom ROMs (if you plan to try them), and much more
Click to expand...
..
 
D

dellsun25

Honorary Poster
  • Jun 23, 2020
  • #5
Anong mga Android device ang supported neto?
2018 pa pala to, working pa kaya ngayon?

link ng article kung saan kinopya
https://www.thecustomdroid.com/install-ota-update-rooted-android-device-guide/#:~:text=Step%203%3A%20Install%20the%20OTA%20Update%20on%20your%20Rooted%20Android%20Device,-Now%2C%20with%20the&text=Simply%20go%20to%20the%20device,prompted%20to%20reboot%20your%20phone.
 
Jun 23, 2020
TS
TS
K

Keeeera

Forum Veteran
  • Jun 23, 2020
  • #6
You found it. Haha. Nice pal.
This tutorial method is still work.
 
TS
TS
K

Keeeera

Forum Veteran
  • Jun 23, 2020
  • #7
But in selected device with A/B partition. I search about ota and i see this. And i share to our pal.
 
Status
Not open for further replies.

Similar threads

  • P
    Tutorial How to bypass SSL Pinning on Non-rooted Devices [2025]
    • Started by PHC - Kiro
    • Mar 30, 2025
    • Replies: 1
    📖 Android Guides
  • J
    Android App AdGuard Ad Blocker v4.9.46 [RC-1] [Premium] [No-Root] [Mod Extra]
    • Started by Jonswabe
    • Apr 7, 2025
    • Replies: 5
    📱 Android Apps & Themes
  • P
    Tutorial Use Gcash and other banking apps on your rooted device using PlayIntegrityFix new update! (Updated)
    • Started by PHC - DUBU
    • Aug 18, 2024
    • Replies: 57
    ⚙️ Android ROMs & Recoveries
  • P
    Direct Link Introducing the new Windows 11 24H2 Build 26100.1301 now on Release Preview
    • Started by PHC- Naksu
    • Aug 1, 2024
    • Replies: 4
    💽 Operating Systems
  • P
    Direct Link Introducing the new Windows 11 24H2 Build 26100.1150 now on Release Preview
    • Started by PHC- Naksu
    • Jul 10, 2024
    • Replies: 2
    💽 Operating Systems

Popular Tags

andriod android android games android phone apk app apps ask asus battery bootloop bypass cherry mobile custom rom ehi facebook firmware game games globe how how to huawei lenovo mobile myphone openline oppo phc phone phones pro problem question redmi rom root root 6.0 root android device rooting samsung smart smartphone tutorial twrp unlock vivo vpn wifi xiaomi
Share:
Facebook X Bluesky LinkedIn Reddit Pinterest Tumblr WhatsApp Email Share Link

Users search this thread by keywords

  1. OTA root
  • Home
  • Forums
  • MOBILE PHONE
  • 📖 Android Guides
  • View Non-AMP Version
  • Contact us
  • Terms and rules
  • Privacy policy
  • Help
  • Home
Menu
Log in

Register

  • Home
    • Shoutbox
    • Miscellaneous
    • Mobile Network
    • Internet
    • Mobile Phone
    • Media
    • Computer
    • Game
    • Lounge
  • Forums
    • New topics New questions Popular today Popular this month New posts
  • What's new
    • Featured content
    • New posts
    • New media
    • New media comments
    • Latest activity
  • Media
    • New media
    • New comments
    • Search media
  • Search
    • Advanced search
X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?

X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?