Xiaomi Mi 9 Lite firmware: official and custom methods with unlocking the bootloader

Why do you need to use the Mi 9 Lite and what are the risks?

The Xiaomi Mi 9 Lite (codenamed pyxis) is still a popular smartphone due to its balance of performance and price, but over time, official MIUI support runs out, and users are faced with brakes, lack of security updates, or the desire to install custom firmware like LineageOS or Pixel Experience.

It is important to understand that any firmware is an interference with the system files of the device. Incorrect actions will lead to a โ€œbrickโ€ (complete failure), loss of warranty or problems with the IMEI module. For example, when installing an incompatible version of MIUI, the camera or fingerprint sensor can break. So before you start, check the bootloader version and the device model in Settings โ†’ About the phone.

In this guide, we will analyze all the current ways to install the Mi 9 Lite firmware in 2026: from the official update via MIUI Updater to install custom firmware through TWRP and Fastboot. Particular attention will be paid to unlocking the bootloader - a mandatory step for most methods.

๐Ÿ“Š What kind of firmware you plan to use?
Official Update via MIUI Updater
Custom firmware through TWRP
Firmware through Fastboot
I haven't decided yet.

1. Firmware Preparation: What to Do Before Starting

Before you start firmware, follow the mandatory preparatory steps, which can lead to data loss or software failure.

  • ๐Ÿ“ฑ Save all the data: firmware will reset the device to factory settings. Use Mi Cloud, Google Drive or physical copying on your PC.
  • ๐Ÿ”‹ Charge the battery to at least 60%, and when discharged during firmware, the smartphone can turn into a brick".
  • ๐Ÿ”— Install drivers: to work with Fastboot and ADB Download official Xiaomi drivers or Mi Flash Tool package.
  • ๐Ÿ” Check the model: type in ##4636### and make sure pyxis is displayed (for Mi 9 Lite).

Also, prepare a USB Type-C cable (preferably original) and a Windows 10/11 PC (for Fastboot).

  • ๐Ÿ“ฆ TWRP Recovery for pyxis (up-to-date version from official website).
  • ๐Ÿ“ฑ Firmware: official (from the Xiaomi website) or custom (from the site Xiaomi) XDA Developers).
  • ๐Ÿ”“ Unlock Tool to unlock the bootloader (if it is blocked).

โš ๏ธ Note: If your Mi 9 Lite is purchased in China ROM), To unlock the bootloader, you will need to link the Mi Account account to the device and wait for 7-15 days for confirmation from Xiaomi. ROM) unlock faster.

Make a data backup|Charge the phone. โ‰ฅ60%|Install Xiaomi drivers|Download the firmware and TWRP (if necessary)|Connect Mi Account (to unlock)-->

2 Unlock the bootloader on the Mi 9 Lite

The factory bootloader on all Xiaomi smartphones is locked, and to flash the device through Fastboot or install TWRP, it must be unlocked, a process that takes anywhere from a few minutes to a week, depending on the version of MIUI and the region of the device.

Instructions for unlocking:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone and click on MIUI Version 7 times.
  2. Enable USB debugging and OEM unlocking in Settings โ†’ Additional โ†’ For developers.
  3. Attach Mi Account to your device in Settings โ†’ Xiaomi Account.
  4. Download Mi Unlock Tool, log in and connect your phone in Fastboot mode (clip Volume Down + Power).
  5. If you receive a message about the need to wait, wait for the specified time (usually 72-168 hours).

Once successfully unlocked, the phone will automatically reset to factory settings, and you can now start the firmware.

โš ๏ธ Warning: Unlocking the bootloader will void the Xiaomi warranty.If the device is warranty, use only official updates via MIUI Updater.

What if the Mi Unlock Tool canโ€™t see the device?
1. Check that the phone is connected in Fastboot mode. 2. Update drivers through Device Manager (select Xiaomi Mi Composite) MDB Interface. 3. Try another one. USB-port (preferably) USB 2.0 on the back of your PC. 4. Disable the antivirus โ€“ it can block the Mi Unlock Tool. 5. Use the original Xiaomi cable (not all Type-C cables support data transfer).

Method 3: Firmware via MIUI Updater (official update)

The safest method is to upgrade through the built-in MIUI Updater app, which is suitable for installing official stable or beta versions of MIUI without unlocking the bootloader, but this method will not allow you to downgrade the software version or install custom firmware.

Step-by-step:

  1. Open the MIUI Updater app on your phone.
  2. Click on the icon. โ‹ฎ (three dots) in the upper right corner and select Select Service Package.
  3. Specify the path to the downloaded firmware file (.zip format). 9 Lite file name should start with pyxis_.
  4. Confirm the installation and wait for the restart. It'll take 5-15 minutes.

If the update is โ€œhangingโ€ during the verification phase, try:

  • ๐Ÿ”„ Rename the firmware file to update.zip try again.
  • ๐Ÿ“‚ Move the file to the root of internal memory (not to folders).
  • ๐Ÿ”‹ Make sure the battery is charged โ‰ฅ50%.
Type of firmwareSuitable forDo you need unlocking?Data dump?
Stable MIUI (official)Update of the current versionโŒ No.โŒ No.
MIUI betaTesting of new functionsโŒ No.โŒ No (but bugs are possible)
Downgrading of MIUI versionA return to the old firmwareโœ… Yes.โœ… Yes (full reset)
Castom firmware (LineageOS, etc.)Installation of alternative softwareโœ… Yes.โœ… Yes.

๐Ÿ’ก

If after updating through MIUI Updater, the phone began to brake, reset the cache: turn off the device, press Volume up + Power, select Wipe Cache in the Recovery menu.

Method 4: Fastboot (Mi Flash Tool)

Fastboot is suitable for installing official firmware (including for recovery of "brick") or downgrading the version of MIUI. This will require an unlocked bootloader and a PC with the Mi Flash Tool installed.

Instructions:

  1. Download Fastboot firmware for pyxis from the official website (file in.tgz or.zip format).
  2. Unpack the archive in a folder without Cyrillic characters (for example, C:\Mi9Lite_Fastboot).
  3. Turn off the phone and put it in Fastboot mode (clamp Volume down + Power).
  4. Connect the device to your PC and start the Mi Flash Tool.
  5. In the program, click Select, specify the folder with the unpacked firmware, then select Clean all (full cleaning) or Clean all and lock (clean + lock the bootloader).
  6. Press Flash and wait until it is completed (10-20 minutes).

Important: If you choose Clean all and lock, the bootloader will lock again and the next firmware will require re-unlocking.

Fastboot Firmware Errors and Their Solutions:

  • ๐Ÿšซ Anti-rollback check fail: try to install an older version MIUI It's a device with an updated recoil mechanism, and the solution is to flash only the new version.
  • ๐Ÿ”Œ Device not found: problems with drivers or cable. try another port or reinstall drivers.
  • โณ Flash timeout: too slow connection. USB 2.0 and turn off the others USB-device.

๐Ÿ’ก

Fastboot firmware is the only way to restore the blinky Mi 9 Lite if it doesnโ€™t turn on or gets stuck on the logo.

5. Method 3: Install custom firmware via TWRP

To install alternative firmware (LineageOS, Pixel Experience, Havoc-OS) will require custom recovery โ€“ TWRP. This method gives full control over the system, but requires caution.

Installation steps:

  1. Download the current version of TWRP for pyxis from the official website (.img file).
  2. Transfer the phone to Fastboot mode and connect to the PC.
  3. Open the command line in the folder with ADB Enter: Fastboot Flash Recovery twrp-3.7.0_9-0-pyxis.img fastboot reboot recovery
  4. In TWRP, run Wipe โ†’ Format Data (required for custom firmware!).
  5. Transfer the firmware file (.zip) to your phone via MTP (in TWRP, select Mount โ†’ Enable MTP).
  6. Install the firmware through Install, then repeat the step for GApps (if you need Google services).
  7. Reboot to the system.

The most popular custom firmware for Mi 9 Lite:

  • ๐Ÿ“ฑ LineageOS 20 (Android 13) is fast and stable.
  • ๐ŸŽจ Pixel Experience โ€“ pure Android with chips from Pixel.
  • โšก Havoc-OS โ€“ flexible configuration and high performance.

โš ๏ธ Note: After installing custom firmware may not work: - Data encryption (solved by disabling encryption in the TWRP). - Banking apps (due to lack of Google certification โ€“ Magisk will be required to hide the root) โ€“ Fingerprint sensor (in some builds).

6. Solving common firmware errors

Even with the exact instructions, there can be errors, and letโ€™s look at the most common problems and solutions for the Mi 9 Lite.

Mistake.Reason.Decision
This package is for "pyxis" devices; this is a ""Disparity between the device model and firmwareDownload the firmware specifically for pyxis (Mi 9 Lite)
E: Footer is wrong (TWRP)A damaged firmware fileDownload the archive and check the checksum (MD5)
Hanging on the MI logoIncompatible firmware or incomplete cleaningSign in to Fastboot and run the official MIUI via the Mi Flash Tool
Anti-rollback check failReverse to the old version of MIUIOnly use the new version or custom firmware.

If the phone does not turn on after the firmware:

  1. Try going to Fastboot (Loudness Down + Power) and flash the official MIUI.
  2. If the screen is black, plug it into charging for 30 minutes, possibly the battery has run out.
  3. For a soft breech (hang on the logo), a reset via TWRP (Wipe โ†’ Format Data) will help.

If nothing works, contact the service center. In some cases, you need to flash through the service. EDL-Download emergency mode, which is only possible with an authorized Xiaomi account.

7.How to get back the official MIUI after custom firmware

If custom firmware is unstable or you need official updates, you can return stock MIUI.

  1. Download Fastboot firmware for your model from the Xiaomi website.
  2. Unpack the archive and launch the Mi Flash Tool.
  3. Select Clean all and lock mode - this will return factory settings and block the bootloader.
  4. After firmware, the phone will automatically reboot to stock MIUI.

If after returning to the official firmware do not work:

  • ๐Ÿ“ถ Network: check IMEI *#06# If lost, restore through SN Write Tool (requires authorization).
  • ๐Ÿ”‘ Fingerprint Sensor: Reset to Settings โ†’ Biometry.
  • ๐Ÿ”Š Sound: Update drivers through Settings โ†’ The phone. โ†’ Update of the PO.

๐Ÿ’ก

Return to the official MIUI is necessary before contacting the service center - otherwise warranty repair will be impossible.

FAQ: Frequent questions about the Mi firmware 9 Lite

โ“ Can I flash Mi 9 Lite without unlocking the bootloader?
Yes, but only through MIUI Updater (official updates). To install custom firmware or firmware through Fastboot, unlocking is mandatory.
โ“ How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power. If you see a screen with a rabbit in a hat and it says Unlocked, the bootloader is unlocked. If there's no sign, it's locked.
โ“ Which firmware is best to choose for Mi 9 Lite in 2026?
Depends on the goals: ๐Ÿ”น Stability: official MIUI (latest available). ๐Ÿ”น Productivity: LineageOS 20 (Android 13). ๐Ÿ”น Design: Pixel Experience (like the Google Pixel interface). ๐Ÿ”น Customization: Havoc-OS or crDroid. For everyday use, we recommend the official MIUI or LineageOS.
โ“ Why the camera doesnโ€™t work after the firmware?
This is a typical problem when installing custom firmware on the Mi 9 Lite. Solutions: Install ANX Camera or GCam from the Celso Azevedo repository. Check if your firmware supports a 48 MP camera (some builds limit resolution to 12 MP). Update the firmware to the latest version or reflash with a full vipe (Format Data in TWRP).
โ“ How to avoid the Anti-rollback check fail"?
This error appears when you try to install a version of MIUI older than the one already on the device. Solutions two: Swipe a newer official version of MIUI through Fastboot. Install custom firmware (for example, LineageOS), as the recoil mechanism does not apply to them. Attention: bypassing the rollback may cause the IMEI module or other hardware functions to fail!