Magic on Xiaomi: full installation instructions with unlock and setup

Installation MIUI Magic is a way to turn Xiaomi’s standard firmware into a unique version with advanced features, an optimized interface and exclusive features that aren’t in official builds. β†’ It's about the phone. You're going to have to unlock the bootloader, pick the right firmware version, and follow the instructions carefully to avoid turning the phone into a brickΒ».

In this article, we will discuss all the steps from the device preparation to the final setup of the Magic firmware, including solving typical errors. POCO (Except for HyperOS devices, they require a separate approach. If you're new to Android customization, don't skip the backup and unlock the bootloader sections, which is critical!

What is it? MIUI Magic and why you need it

MIUI Magic is a modified version of the standard shell. MIUI, It's a custom-built experience that's designed by enthusiasts to enhance the user experience:

  • 🎨 Deep customization of the interface: changing icons, fonts, animations and even system sounds without root rights.
  • ⚑ Performance optimization: Unnecessary system applications (bloatware) are removed, work with RAM and battery is improved.
  • πŸ”’ Additional privacy features: Tracker lock, extended permissions for applications.
  • πŸ“± Exclusive features: for example, Game Turbo 2.0 for gamers or Super Wallpapers with dynamic wallpapers.

But there are pitfalls:

  • ⚠️ Loss of warranty (if the device is warranty-free, it is better to wait).
  • πŸ”„ Risk of β€œbricking” when installed incorrectly.
  • πŸ“΅ Problems with OTA-Updates (you will need to update manually).

If you're ready to experiment, read on. If in doubt, try the theme of the Topic first. β†’ Online (there are free alternatives with similar designs).

πŸ“Š You’ve already tried custom firmware on Xiaomi?
Yeah, Magic or analogues.
Yes, but another (LineageOS, Pixel Experience)
No, it's my first experience.
I don't know what it is.

Device preparation: backup, unlocking the bootloader and tools

Before you start installing, be sure to save all the data. The firmware erases the internal memory, and recovery through Mi Cloud may not work due to the changed system.

  • πŸ“ Local backup: copy photos, videos and documents to a PC or external drive.
  • ☁️ Cloud services: Google Photos, Mi Cloud (but note that after firmware may require re-authorization).
  • πŸ“± Backup apps: Swift Backup (requires root) or Titanium Backup (obsolete but reliable).

Next, unlock the bootloader. Without this step, you can't install Magic. It takes up to 720 hours (30 days) of waiting because of Xiaomi's security policy.

  1. Link your Mi Account to your device in Settings β†’ Xiaomi Account.
  2. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  3. Turn it on. OEM-unlocking and debugging USB In Settings β†’ Additionally. β†’ For developers.
  4. Install Mi Unlock Tool on your PC and follow the program instructions.

⚠️ Note: If the device was purchased less than 30 days ago, the Mi Unlock Tool will show the Couldn't unlock error!).

Also prepare the necessary tools:

Tool.AppointmentReference
Mi Flash ToolInstallation of firmware through FastbootOfficial website
ADB & FastbootManaging the device through the command lineAndroid Studio
TWRP RecoveryCastom recavery for installation ZIP-firmwareOfficial website
OrangeFox RecoveryThe alternative TWRP supportive F2FSDownload

Make a data backup|Tie up a Mi Account|Unlock the loader|Download the Mi Flash Tool and ADB|Choose a Magic version for your model-->

Choice of version MIUI Magic: Stable vs. Weekly

Firmware MIUI Magic is divided into two types:

  • 🟒 Stable: tested builds with minimal bugs, suitable for daily use.
  • 🟑 Weekly: fresh versions with new features but possible errors.

How do you choose the right version?

  1. Check the code name of your device (e.g., raphael for Redmi) K20 Pro. You can find it in Settings. β†’ The phone. β†’ Model or command: adb shell getprop ro.product.device
  2. Download the firmware from the official Telegram channel MIUI Magic or forum XDA Developers.
  3. Pay attention to the region: Global, China or EEA. It is better to choose the Global or EEA.

Example of firmware file name: miui_MAGIC_raphael_global_23.4.12_v14-13.zip, where:

  • raphael is the code name of the device.
  • global, region,
  • 23.4.12 - assembly date,
  • v14-13 β€” Magic version (based on the MIUI 14).

⚠️ Note: Do not install firmware for another model, this is guaranteed to lead to hard brick (irreparable damage). For example, the firmware for the Redmi Note 10 Pro (sweet) is not suitable for the Redmi Note 10 (mojito).

How to check the compatibility of the firmware?
If you are not sure if the firmware is suitable for your model, open it. ZIP-archive and find the updater-script file. It should have a line of the form: assert(getprop("ro.product.device") == "DETECTIVE CODE" ||...); Compare the Device Code to your code name (see Step 1 above).

Installation MIUI Magic: A step-by-step process

There are two main ways to install: through Fastboot (for clean installation) and through TWRP (Upgrade or install on top of an existing firmware. We'll look at both options.

This method is suitable if you are installing Magic for the first time or want to completely clean the device.

  • πŸ–₯️ Windows computer (or Linux/macOS fixed ADB/Fastboot).
  • πŸ”Œ Cable USB (preferably original).
  • πŸ“¦ Firmware in.tgz or.zip format (for Fastboot).

Instructions:

  1. Unpack the firmware in a folder without Cyrillic characters (for example, C:\Magic\).
  2. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  3. Connect the device to your PC and start the Mi Flash Tool.
  4. In the program, select the folder with firmware, press Refresh (should appear). COM-port) and click Flash.
  5. Wait until it is completed (usually 5-10 minutes).

Method 2: Installation through TWRP (power-user)

If you have a custom recap (for example, TWRP), You can use Magic as a way to ZIP-The advantages of this method:

  • βœ… Data storage (if not formatted) /data).
  • βœ… Possibility of installation on top of another custom firmware.
  • βœ… Magisk support for root rights.

Instructions:

  1. Download the firmware.zip and put it on internal memory or SD-map.
  2. Boot to TWRP (Put Volume Up + Power on the phone off).
  3. Make a backup of the current firmware (optional, but recommended).
  4. Press Install, select. ZIP-file and run to confirm.
  5. After installation, run the Wipe β†’ Format Data (if clean installation is required) and restart.

⚠️ Note: If, after installation, through TWRP phone hangs on the logo MI, Try repeating the process with full data partition formatting. If that doesn't work, restore the backup or go through Fastboot.

πŸ’‘

If the Mi Flash Tool is an anti-rollback error, you are trying to install an older firmware version than the one already in use, in which case you need to find firmware with the same or newer anti-rollback number (checked in the updater-script file).

First setup and optimization MIUI Magic

Once you have successfully installed, you will be met by the initial setup wizard, where you can immediately turn on key functions:

  • πŸ”„ Auto-Update Magic: in Settings β†’ The phone. β†’ Update system turn on Check for updates automatically.
  • 🎯 Theme: Go to Themes and select one of the exclusive themes for Magic (such as Magic Dark or Neon).
  • ⚑ Performance mode: c Settings β†’ Battery β†’ Activate High Performance Modes for Games.
  • πŸ”’ Advertising Blocking: C Settings β†’ Confidentiality β†’ Special permissions to disable Personalized Advertising.

For deeper customization:

  • Install Magisk for root rights (if necessary). Download Magisk.zip and pass through TWRP.
  • Use Magisk modules, for example: ViPER4Android β€” To improve sound, XiaomiEU – to integrate features Xiaomi.eu, LSposed – to modify system applications.

If after setting up there are lags or overheating, try:

  1. Reset the settings to factory (in Settings) β†’ Additionally. β†’ Recovery and discharge).
  2. Disable animations in Settings β†’ The phone. β†’ Version. MIUI (Click 10 times on the kernel version, then select 0.5x In Settings β†’ Additionally. β†’ For developers).
  3. Remove unnecessary applications through Settings β†’ Applications (but do not remove system applications!).

πŸ’‘

After installing Magic, it is recommended to disable automatic updates via Settings β†’ The phone. β†’ Updating the system β†’ Three points. β†’ Settings to avoid conflicts with official OTA.

Solving Common Errors After Installation

Even if you install it properly, you can have problems, and here are the most common ways to fix them:

Problem.Possible causeDecision
Phone not turned on (black screen)Incorrect firmware or interrupted installationSwipe through Fastboot the official firmware, then repeat the installation of Magic.
Constant reboots (bootloop)Magisk module conflict or damaged ZIPLoad in TWRP, remove /data/adb/modules, Re-stripe Magic.
No network or mobile dataInconsistency of the modem part of the firmwareSwipe vendor and firmware from official firmware via Fastboot.
Google services are not workingThere are no GApps or incorrect regionsInstall NikGApps or OpenGApps via TWRP.
Fast battery dischargeBackground processes or unoptimized coreCalibrate the battery (discharge to 0%, charge to 100% without interruptions).

If none of these methods helped, contact the support chat. MIUI Magic with error logs:

  1. Connect the phone to the PC.
  2. Enter in the command line: adb logcat > log.txt
  3. Repeat the error and stop the recording (Ctrl)+C).
  4. Attach the log.txt file to the message.
What if the Mi Flash Tool can’t see the device?
1. Make sure the drivers ADB/Fastboot installed (download here). 2. Try another one. USB-port (preferably) USB 2.0). 3. In Device Manager, check that the phone is defined as Android Bootloader Interface. 4. Launch the Mi Flash Tool on behalf of the administrator. 5. If it doesn’t work, use Linux or macOS (Windows has driver problems).

How to Reverse the Official Firmware

If MIUI Magic didn't live up to expectations or there were critical errors, you can go back to the official firmware:

  1. Download stable Fastboot firmware for your model from the official Xiaomi website.
  2. Unpack the archive and launch the Mi Flash Tool.
  3. In the program settings, select clean all (this will completely clean the device!).
  4. Connect your phone in Fastboot mode and press Flash.
  5. After completion, the phone will restart with the official firmware.

If you want to save data, try flashing the official recovery first through Fastboot:

fastboot flash recovery recovery.img


fastboot reboot recovery

Then, in the drain Recovery, select Wipe data and Reboot.

⚠️ Warning: After returning to the official firmware, unlocking the bootloader is saved. To block it again (for example, for warranty repair), use the command: fastboot oem lock But note that this will reset all data again!

FAQ: Frequent questions on MIUI Magic

❓ Can I install Magic on Xiaomi with HyperOS?
At the moment, no. HyperOS uses a different firmware format, and porting. MIUI Magic is not yet complete. Follow the news on the project's Telegram channel.
❓ Will Google Pay work after installation?
Yes, but only if: You didn't install Magisk (or hide root through MagiskHide); the firmware passed SafetyNet (check in the SafetyNet Test app); you use an official GApps image (e.g. NikGApps); if Google Pay doesn't work, try: Clear the Google Play Services app data; Install Universal SafetyNet Fix for Magisk.
❓ How to Upgrade Magic to a New Version?
There are two ways: OTA (If you have updated the settings. Go to Settings β†’ The phone. β†’ Update the system and download the update manually through TWRP: Download the new version of.zip. Download to TWRP. Please. ZIP If you have any errors after the update, make a wipe. cache/dalvik into TWRP.
❓ Can I install Magic without unlocking the bootloader?
Unlocking the bootloader is a prerequisite for installing any custom firmware on Xiaomi. EDL) Require an authorized Xiaomi account and are only suitable for repair centers.
❓ Where to download Magic firmware for my model?
Official sources: Telegram channel MIUI Magic (the most recent builds). XDA Developers (part of your model) Unofficial Russian forum (translations and patches). ⚠️ Avoid third-party sites – there are often fake firmware with viruses!