TechBuzzPro

OTA Updates on Rooted Xiaomi Mi A2 with Magisk

· 5 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to keep receiving and installing over-the-air (OTA) updates on a rooted Xiaomi Mi A2 (also known as Mi 6X) that uses Magisk for root. Normally, rooting blocks OTA updates because the system partition is modified. With Magisk's built-in OTA survival feature and a few careful steps, you can install official updates without losing root or your data.

What You'll Need

  • A Xiaomi Mi A2 with an unlocked bootloader and Magisk installed (Magisk v20.4 or newer recommended).
  • Stock recovery (not TWRP) — if you have TWRP, you must restore stock recovery first.
  • A stable internet connection for downloading the OTA.
  • Basic comfort with fastboot commands (for restoring stock recovery if needed).
  • Backup of your important data (optional but recommended).

Step-by-Step

  1. Check your current setup. Open Magisk Manager and confirm the Magisk version and that the "Preserve AVB 2.0/dm-verity" option is enabled (it is by default in recent versions). Also verify your bootloader is unlocked — you can check in Developer Options under "OEM unlocking".
  2. Ensure stock recovery is installed. If you have TWRP, you must reinstall stock recovery. Download the stock boot.img and recovery.img for your exact Mi A2 build (from Xiaomi's official firmware or a trusted source). Then boot into fastboot mode (power off, hold Volume Down + Power) and run:
    fastboot flash recovery recovery.img
    fastboot flash boot boot.img
    This restores the stock boot and recovery. Do not reboot yet — go to the next step.
  3. Reinstall Magisk to the inactive slot (after OTA). Actually, for a clean OTA, you should first install the OTA normally, then reinstall Magisk. But to make the OTA installable, you must have stock boot and recovery. So after flashing stock boot/recovery, reboot your phone normally.
  4. Install the OTA update. Go to Settings > System > System update. Tap "Check for updates". When an update is available, download it and tap "Install now". The phone will reboot into recovery and install the update. Do not interrupt this process.
  5. After the OTA installs, do NOT reboot into system yet. The phone will reboot into the updated system automatically. Let it boot fully. Once booted, open Magisk Manager. It will detect that the boot image is not rooted and prompt you to install Magisk to the inactive slot (the other partition). Tap "Install" and choose "Install to Inactive Slot (After OTA)". This patches the new boot image with Magisk.
  6. Reboot. After Magisk patches the inactive slot, reboot your phone. It will boot into the updated system with root preserved. Verify root by opening Magisk Manager — it should show the Magisk version and "Installed" status.
  7. If you use any Magisk modules, reinstall them if needed. Some modules may not survive the OTA. Check Magisk Manager's "Modules" section and reinstall any that are missing.

Common Mistakes

  • Flashing TWRP after OTA — If you flash TWRP before the OTA, the OTA will fail because the recovery is not stock. Always keep stock recovery until after the OTA.
  • Not waiting for the OTA to finish — Interrupting the OTA installation can brick your device. Let it complete.
  • Patching the wrong slot — If you install Magisk to the current slot instead of the inactive slot after OTA, you'll lose root on the new system. Always choose the inactive slot option.
  • Ignoring the "Preserve AVB 2.0/dm-verity" setting — If this is disabled, the OTA may fail or cause boot loops. Keep it enabled.
  • Using a mismatched boot.img — Flashing a boot.img from a different build can cause boot issues. Always use the exact build number.

Tips

  • Use Magisk's built-in OTA survival: Magisk automatically preserves root across OTA updates if you follow the steps. You don't need to unroot manually.
  • Keep a backup of your stock boot.img — If something goes wrong, you can fastboot flash it to get back to stock.
  • Check for OTA updates regularly — Xiaomi rolls out updates in phases; you might not see it immediately. You can also use the "Update" button in Magisk Manager to check.
  • Disable any systemless hosts or modules that modify system files — They might cause conflicts during OTA. Disable them temporarily if you face issues.
  • Use a reliable VPN if OTA download is slow — Sometimes ISPs throttle; a VPN can help.

Troubleshooting

  • OTA fails with an error (e.g., "Installation problem") — This usually means the system partition is modified. Ensure you have stock boot and recovery. Reflash them via fastboot and try again.
  • Boot loop after OTA — Boot into fastboot and flash the stock boot.img for the new build (you can extract it from the OTA package or download the full firmware). Then boot and reinstall Magisk correctly.
  • Magisk Manager says "Magisk is not installed" after OTA — You likely installed to the wrong slot. Reboot into fastboot, flash the patched boot image (or reinstall Magisk via the inactive slot method). To fix, download the full firmware for the new build, extract boot.img, and patch it with Magisk Manager, then fastboot flash.
  • OTA update not showing — Wait a few days; it's rolled out in stages. You can also try clearing the Google Play Services cache or checking for updates manually after a few days.
  • Root lost after OTA but no boot loop — Simply open Magisk Manager and tap "Install" > "Install to Inactive Slot" again, then reboot.
  • SafetyNet fails after OTA — Reinstall the SafetyNet Fix module if you use it. Also ensure Magisk is properly installed.

Frequently Asked Questions

Will I lose data during the OTA update?

No, OTA updates are incremental and preserve your data. However, it's always wise to back up important files just in case.

Do I need to unroot before installing the OTA?

No, with Magisk you don't need to unroot. Just ensure you have stock boot and recovery, then install the OTA and reinstall Magisk after.

Can I use TWRP to install the OTA?

No, TWRP is not compatible with official OTA updates. You must use stock recovery. If you have TWRP, restore stock recovery first.

What if I accidentally flash the wrong boot.img?

If you flash a boot.img from a different build, your phone may not boot. Download the correct firmware for your exact build and flash the right boot.img via fastboot.

How do I know if my bootloader is unlocked?

Go to Settings > Developer options and check if "OEM unlocking" is grayed out or shows "Unlocked". You can also boot into fastboot and see "unlocked" at the top.

Will OTA updates work if I have Magisk modules installed?

Yes, modules are systemless and usually survive OTA. However, some modules may need reinstallation after the update. Check Magisk Manager after boot.