How to get a root rights on Xiaomi Mi A1: from unlocking the bootloader to Magisk

The Xiaomi Mi A1 (codenamed tissot) is still a popular device among Android enthusiasts thanks to its clean Android One, robust hardware and active developer community, but the standard limitations of the system do not allow you to unlock the full potential of a smartphone: you can not remove embedded applications, change system files or use modifications like ViPER4Android without superuser rights.

Getting root rights to the Mi A1 is a multi-step process that requires unlocking the bootloader, installing a customized recover (TWRP) and Magisk firmware. Unlike devices with MIUI, there is no binding to the Xiaomi account, but there are nuances: from the firmware version to the features of working with fastboot. In this guide, we will analyze all the current ways to get a root on the Mi A1 in 2026, including bypassing typical errors like anti-rollback or data encryption problems.

Important: the procedure voids the warranty and can lead to a device blink if you do not act correctly. If you are a beginner, follow the instructions carefully and do not miss the steps of the check.

Preparation of the device: what to do before unlocking

Before you start unlocking the bootloader, you need to prepare the smartphone and the computer, and this stage is critical: missed settings can lead to failures in the next steps.

The Xiaomi Mi A1 requires:

  • πŸ”‹ Charge the battery to at least 70% (unlocking and firmware take 30-60 minutes).
  • πŸ“± Enable Developer Mode: Go to Settings β†’ About the phone and 7 times click on the Assembly Number.
  • πŸ”“ Allow debugging by USB and Unlocking OEM in the developer menu (Settings) β†’ System system β†’ For developers).
  • πŸ“ Backup important data: unlocking the bootloader will reset the device to factory settings.

Your computer (Windows/Linux/macOS) will need:

  • πŸ’» Install Android SDK Platform-Tools (or separately adb and fastboot).
  • πŸ”Œ Connect the smartphone to USB file transfer (MTP) Confirming trust in the computer.
  • πŸ›‘οΈ Disable Antivirus: It Can Block Files TWRP Magisk as a potentially dangerous.
πŸ“Š You have already unlocked the bootloader on Xiaomi?
Yeah, same device.
Yeah, on another Xiaomi.
No, it's my first experience.
I don't know what it is.

Check the firmware version: on the Mi A1, it is critical to avoid downgrade (downgrading the Android version), as this can cause anti-rollback - hardware locking of the device.

Android versionLast stable assemblySupport for TWRPThe risk of anti-rollback
Android 7.1 NougatNHG47KYeah (tissot)Low.
Android 8.0 OreoOPM1.171019.019Yeah (tissot)Medium.
Android 9.0 PiePKQ1.180904.001Partially (patch required)High-pitched
Android 10QKQ1.190910.002No (officially)critical

⚠️ Note: If your device has already been upgraded to Android 10, get back support TWRP Without the risk of a breeze, it's almost impossible, and in this case, consider alternatives like virtual root (e.g., Shizuku).

Unlock the bootloader: the official way from Xiaomi

Unlike devices with MIUI, on the Mi A1, it is easier to unlock the bootloader - no binding to the Mi Account is required. However, the process still involves waiting and confirming via fastboot.

Instructions:

  1. Turn off your smartphone and press Volume Down + Power to log into fastboot.
  2. Connect the device to the computer and execute the command: fastboot oem unlock On the screen of the smartphone will appear a warning – confirm the unlock button Volume up.
  3. Wait for the process to be completed (5-10 minutes) and the device will automatically reset.

After unlocking:

  • πŸ”„ The smartphone will restart in a factory state (all data deleted).
  • πŸ”“ The bootloader will remain unlocked even after resetting.
  • πŸ“± The fastboot menu will have an inscription UNLOCKED bottom-screen.

Log in fastboot (Loudness down + Power)| Make sure UNLOCKED| Check no password request when booting |Reboot the device to the system-->

⚠️ Note: Some Android 9 firmware on some+ When unlocked, you may have a problem with data encryption (dm-verity). If the smartphone does not boot, you will need to flash Disable DM-Verity through the device. TWRP.

Installation of TWRP Recovery: version selection and firmware

TWRP (Team Win Recovery Project) is a customized recovery required to install Magisk and create backups. There are several builds available for the Mi A1, but not all work consistently with the latest firmware.

Recommended versions of TWRP for tissot:

  • πŸ“Œ Official build (3.7.0) – Suitable for Android 7-8, but may not see internal memory on Android 9.
  • πŸ› οΈ Unofficial build from mauronofrio – supports Android 9 and fixes encryption errors.

TWRP firmware via fastboot:

  1. Download the twrp-3.x.x-x-tissot.img file and rename it to recovery.img.
  2. Restart your smartphone in fastboot and execute the command: fastboot flash recovery.img
  3. Immediately after the firmware, go to TWRP, holding Volume up + Power (otherwise, the stock firmware will overheat the Recovery).

TWRP requires:

  • πŸ” Swipe to allow modifications (if requested).
  • πŸ“€ Go to Wipe. β†’ Format Data and enter yes (this will remove encryption if it interferes with partition mounting).
  • πŸ’Ύ Create a backup of Boot, System and Data (in case of errors).

πŸ’‘

If TWRP Can't see the internal memory, try to connect it. OTG-flash-drive ADB Sideload for transferring files.

Install Magisk: Getting root rights without SafetyNet triggers

Magisk is a universal root-rights tool that bypasses SafetyNet checks (important for banking applications and games), the latest stable version as of 2026 is Magisk 26.4.

Step-by-step:

  1. Download the latest version of Magisk from the official GitHub file Magisk-v26.4.zip.
  2. Move the archive to your smartphone or use ADB Sideload: adb sideload Magisk-v26.4.zip
  3. In TWRP, select Install, specify the path to the archive, and swipe for confirmation.
  4. After installation, reboot to the system.

Root rights check:

  • πŸ“± Install the Root Checker app.
  • πŸ” Run Magisk Manager (sets automatically) and check SafetyNet status under Settings β†’ SafetyNet Check.
  • πŸ›‘οΈ If SafetyNet fails, install Universal SafetyNet Fix via Magisk.
What if Magisk is not installed?
If you install Magisk, you have a file to mount error. /system", The cause may be an incompatible firmware version or damaged partitions: 1. Stitch the stock. boot.img via fastboot, then re-install Magisk. 2. Use the patched boot.img (You can create it through Magisk Manager. β†’ Install β†’ Select and Patch a File). 3. Check the integrity of the downloaded Magisk archive (MD5-The amount must be the same as the official).

Solving Typical Problems After Getting Root Rights

Even with a successful Magisk installation, Mi A1 users often encounter bugs, and here are the most common ways to fix them:

Problem.Reason.Decision
The smartphone does not load (bootloop)Incompatible Magisk module or damaged boot.imgSwipe stock boot.img through fastboot, then reinstall Magisk
SafetyNet is not working.Magisk is obsolete or Universal SafetyNet Fix is missingUpdate Magisk and install the module with Magisk Manager
TWRP does not see internal memoryData Encryption (FBE)Format Data to TWRP or use an informal FBE-enabled build
Apps fly out after the rootConflict with MagiskHide or modulesDisable MagiskHide for problem apps or remove conflicting modules

If after the firmware Magisk stopped working banking applications (Sberbank, Tinkoff, etc.), follow the following steps:

  1. Open Magisk Manager and go to Settings β†’ MagiskHide.
  2. Include MagiskHide and add banking apps to the list.
  3. Install the Universal SafetyNet Fix module and restart the device.
  4. Clear the data of the banking application and log in again.

⚠️ Note: Some applications (e.g. Google Pay) can block work even with MagiskHide enabled, in which case only abandoning the root or using alternative payment methods will help.

Alternative ways to obtain root rights

If the standard method with Magisk is not suitable (for example, due to anti-rollback or firmware incompatibility), consider alternatives:

  • πŸ”§ Patched Boot Image: Download stock boot.img For your firmware, patch it through Magisk Manager and run it through fastboot: fastboot flash boot. magisk_patched.img
  • πŸ“¦ Custom firmware: Install LineageOS or Pixel Experience with pre-sewn root. A1 Relevant builds based on Android 10/11.
  • πŸ–₯️ Virtual Root: Use Shizuku + LSposed for getting a partial root without unlocking the bootloader (suitable for Android 9)+).

Advantages and disadvantages of alternatives:

MethodPlusesCons
Patched BootWithout TWRP, there are fewer risks.Requires manual update when changing firmware
Custom firmwareClean Android, regular updatesLoss of some functions (e.g., VoLTE)
Virtual RootDoes not require unlocking the loaderLimited capabilities (no access to /system)

πŸ’‘

If your goal is only to remove embedded apps or block ads, consider using them. ADB-For example, disabling packets via pm uninstall -k --user 0 name-pack.

How to get everything back: root removal and bootloader lock

If you need to return your smartphone to stock (for example, for sale or warranty repair), follow the following steps:

  1. Download the stock firmware for your model (choose Fastboot ROM).
  2. Unpack the archive and launch the script flash_all.bat (Windows or flash_all.sh (Linux/macOS) firmware.
  3. To lock the bootloader, run the command: fastboot oem lock ⚠️ This will completely reset the device and delete all data!

After returning to the stock firmware:

  • πŸ”„ The device will be as new, without traces of the root.
  • πŸ”“ The loader will become blocked (LOCKED fastboot).
  • πŸ“± The warranty will be returned (if it has not expired).

⚠️ Note: Some Android 9 firmware on some+ locking the bootloader can lead to soft-brick (the device does not boot, but reacts to fastboot). ROM without fastboot oem lock command.

FAQ: Answers to Frequent Questions

Can I get root on the Mi A1 without unlocking the bootloader?
No, on the Mi. A1 Unlocking the bootloader is mandatory for installing Magisk or TWRP. Alternatives like KingRoot don't work on modern firmware and can harm the device. ADB-The team, but it is not a full root.
Why is the mobile network or Wi-Fi not working after Magisk is installed?
This is a typical problem when Magisk modules are incompatible or firmware files are damaged. Solutions: Remove all installed modules in Magisk Manager. Sweep stock modem and vendor partitions through TWRP. Check if MagiskHide is blocking system services (turn it off temporarily).
How to update the firmware with the root without losing data?
Update OTA You can get root rights lost. To upgrade without losing data: Download the full zip for your model. Install it through TWRP (After updating, re-sweep Magisk (version must match the new firmware). ⚠️ Android 9.β†’10 such method can cause anti-rollback – it is better to make a full backup and flash clean firmware.
Will Google Pay work with Magisk and SafetyNet Fix?
Technically, yes, but Google Pay can block payments due to additional checks. To increase the odds: Use Magisk 26.4+ with Universal SafetyNet Fix 2.4.0. Turn on MagiskHide and add Google Pay to the list. Remove all other modules that may affect SafetyNet. Reboot your device after you set up. If payments still don't pass, try Revo Pay or other alternatives.
Can I get root on the Mi A1 with Android 10?
No, officially, because it’s for Android. 10 There is no stable version TWRP. However, there are workarounds: Install custom firmware based on Android 10 Use Patched Boot Image (but this can cause encryption problems). 9 (If you are prepared for the risk of anti-rollback). ⚠️ Android. 10 High risk of data loss or device blinking – we recommend using Mi A1 Android 8/9 stable-rout.