Xiaomi Mi 9
cepheus
Snapdragon 855
MIUI
Android
But moving to stock Android isn't just about "set and forget"; it requires unlocking the bootloader, working with custom Recovery. TWRP, And most importantly, understanding the risks, from loss of warranty to build-up of the device, and in this guide, we'll go through all the steps from preparation to final setup, and also tell you which firmware supports all the features of the Mi 9, including the ones that are used in the new version. NFC camera AI-treatment.
โ ๏ธ Important: Instructions are relevant for Xiaomi Mi 9 (model) M1902F1G For modifications of the Mi 9 SE Mi 9 Pro process will be different โ they have different code names (grus and crux respectively) and a different hardware platform.
1.Why Pure Android is Better MIUI Xiaomi Mi 9 for the first time?
Shell MIUI Xiaomi is a compromise between functionality and imposed services, and on the one hand, it offers handy chips like a two-way split screen or a built-in scrolling screenshot:
๐น Advertising in system applications (even in Phone or Weather) that has to be manually disabled through hidden settings.
๐น Background processes that eat up battery power and RAM (e.g. mipush or miui.analytics).
๐น Delayed updates: MIUI The Mi 9 is no longer getting major updates. AOSP-Firmware (such as LineageOS or Pixel Experience) is updated monthly.
Pure Android solves these problems:
- โ No ads and bloatware โ only basic Google apps (if you choose the GApps version).
- โ Speed: without unnecessary services, the system works smoother, especially on aging iron.
- โ Up-to-date security patches: firmware like GrapheneOS or CalyxOS focus on privacy and regularly close vulnerabilities.
- โ Customization: You can choose firmware with themes, gestures or even alternative launchers (e.g. Lawnchair).
There are, however, downsides:
- โ ๏ธ Loss of some functions MIUI: For example, in stock Android there is no built-in game turbo mode or Xiaomi brand gestures.
- โ ๏ธ Error risk: Not all cameras or sensors can work out of the box (e.g., a wide-angle module or a sensor). IR-blaster).
- โ ๏ธ Lack of official support: if the service center breaks, it will refuse warranty repairs.
๐ก
Before installing pure Android, check if the selected firmware supports Widevine L1 (look-in Netflix/Disney+ into HD). For example, in Pixel Experience it works, and in some builds LineageOS โ no.
2.Preparation: What to do before the firmware
Installing custom firmware is an irreversible process that erases all data from the device. To avoid problems, follow these steps:
๐ Create a backup copy:
- ๐ฑ Application data: use adb backup or apps like Swift Backup (requires root).
- ๐ Files: Copy photos, videos and documents to your PC or cloud (Google Drive, Mi Cloud).
- ๐ Settings: Export SMS through SMS Backup & Restore and sync your contacts with your Google account.
๐ง Check the version. MIUI:
Some firmware requires a specific version MIUI You can find it in Settings to unlock the bootloader. โ The phone. โ Version. MIUI. The best starting version for the Mi 9 โ MIUI 12.5 or later (older drivers may have problems).
๐ป Install the necessary tools on the PC:
- ๐ฅ๏ธ ADB Fastboot: Download Googleโs Platform Tools.
- ๐ Xiaomi Drivers: for Windows โ Mi Flash Tool, for Windows Linux/macOS โ Adequately standard adb packages.
- ๐ฆ Firmware and TWRP: Choose the build in advance (more on that below) and download it. TWRP for cepheus from the official website twrp.me.
Battery charge > 70%|Backup copy of data created|Drivers. ADB/Fastboot fixed|Firmware and TWRP downloaded|Encryption disabled in MIUI (Settings โ Lockdown and protection โ Encryption)
-->
โ ๏ธ Note: If your Mi 9 was purchased in China (local version), unlocking the bootloader may require additional steps, including waiting 7-30 days after linking your Mi Account to the device.
3. Unlock the bootloader on Xiaomi Mi 9
The bootloader on Xiaomi devices is locked by default, and unlocking it is a mandatory step before installing custom firmware, which takes 5 minutes to a week (depending on Xiaomi policy).
๐ Step 1: Link your Mi Account to your device
- Go to Settings โ About Phone โ MIUI version and tap 7 times on the line to activate the developer mode.
- Back to Settings โ Additionally. โ For developers and include: ๐ Debugging by USB ๐ Unlocking OEM (may require input PIN-code).
Connect the phone to the PC and confirm the debugging permission.
๐ Step 2: Use the Mi Unlock Tool
- Download the Mi Unlock Tool (the official tool from Xiaomi).
- Start the program, log in to your Mi Account (should match the one on your phone!).
- Put the phone in Fastboot mode: turn it off, then press Power + Volume down.
- Connect Mi 9 to your PC and press Unlock in the program.
๐ Top.-5 firmware for Xiaomi Mi 9 into 2026 year:
| Firmware | Type | Pluses | Cons | Reference |
|---|---|---|---|---|
| Pixel Experience | AOSP + Google | Pure Android with Pixel chips, stable camera | Sometimes animation slows down. | Download |
| LineageOS | AOSP (Google) | Maximum productivity, minimalism | No GApps by default, weak camera | Download |
| ArrowOS | AOSP customized | Flexible interface settings, good optimization | Rare Bluetooth bugs | Download |
| Havoc-OS | AOSP + fit | A lot of themes and gestures, game mode | Increased battery consumption | Download |
| crDroid | AOSP + productivity | Excellent autonomy, support OTA-update | There is no official Widevine support L1 | Download |
๐ How to Check Compatibility?
Before downloading the firmware, make sure it is for the cepheus (not the grus or other models), for example, the name of the archive should be something like:
PixelExperience_cepheus-13.0-20260510-UNOFFICIAL.zipโ ๏ธ Attention: Labeled firmware UNOFFICIAL They may contain bugs. For maximum stability, choose OFFICIAL Recommended or recommended by developers XDA Developers.
5. Installation TWRP and firmware of pure Android
Now we move on to the most important stage - the installation of custom recavery (TWRP) Follow the instructions carefully to avoid errors.
๐ ๏ธ Step 1: Installation TWRP
- Download the last one. TWRP for cepheus (e.g. version 3.7.0 or later) from twrp.me.
- Rename the file to twrp.img and place it in the folder with the platform-tools.
- Turn your phone into Fastboot mode (Power + Volume Down).
- Open the command line in the folder with platform-tools and execute: fastboot flash recovery twrp.img fastboot boot twrp.img
๐ฑ Step 2: Firmware through TWRP
- After loading into TWRP Make a full backup (click Backup and select Boot, System, Data partitions).
- Go to Wipe. โ Advanced Wipe and mark: ๐งน Dalvik / ART Cache ๐๏ธ System ๐ Data ๐ Internal Storage (optional if you want to clear your memory completely).
Install
PixelExperience_cepheus-13.0.zip
GApps
Open GApps
arm64 โ 13 โ pico
Reboot โ System
โ ๏ธ Typical errors and their solutions:
- ๐จ Error 7: The firmware is incompatible with your model).
- ๐ Loaded Load: Try to flash vendor and firmware from the latest MIUI before installation AOSP.
- ๐ต No network: install the correct modem files for your region (you can download it from the site) 4PDA).
๐ก
After the first download of pure Android, do not update via OTA In the first 24 hours, let the system stabilize. If you need updates, download them manually and stitch them through the system. TWRP.
6. Set up a clean Android after installation
After a successful firmware, you'll have to set up the system first.
โ๏ธ Basic settings:
- ๐ Security: Enable encryption in Settings โ Security (if you havenโt done so in this case) TWRP).
- ๐ถ Network: manually select the operator in Settings โ SIM-Maps and networks if the automatic search fails.
- ๐ Battery: Turn off unnecessary background processes in Settings โ Battery. โ Optimizing the battery.
๐ท Camera setup:
In Android, the Mi 9 camera may not work properly.
- ๐ฏ Install Google Camera (GCam) with settings for Snapdragon 855.Recommended versions: BSG GCam (for the best) HDR). Greatness GCam (for night mode).
- ๐ง Turn it on. Camera2API via Magisk (module) Camera2API Enabler) if the camera is not started.
๐ต Sound and multimedia:
- ๐ To improve the sound, set up ViPER4Android (Magisk demands).
- ๐ฌ To make Netflix work in the HD, Check the status of Widevine L1 appendix DRM Info.
โ ๏ธ Note: If you have lost your firmware after NFC or fails IR-blaster, try to stitch a separate patch for your firmware (look for the XDA or 4PDA).
7. Root rights and Magisk: Do they need to be on pure Android?
Magisk is a root rights tool that is safe to use on pure Android to:
- ๐ง Modules: e.g, ViPER4Android for sound or App Systemizer to transfer applications to the system.
- ๐ฑ Backup with Titanium Backup.
- ๐ฎ Game tweaks (e.g. overclocking) CPU/GPU).
๐ง How to install Magisk on Xiaomi Mi 9:
- Download the latest Magisk.apk from GitHub and rename it to Magisk.zip.
- Reboot to TWRP and sew Magisk.zip Like a normal zip file.
- Restart to the system and check root through the Magisk Manager app.
โ ๏ธ Risks of using root:
- ๐ก๏ธ SafetyNet breach: some banking applications (e.g. Sberbank Online) may stop working.
- ๐ Vulnerabilities: root opens access to system files, which is dangerous when installing unverified applications.
- ๐ Problems with OTA: Air updates can break if Magisk is available.
๐ก
If you need root rights for backup only, consider alternatives like Swift Backup (works without root on Android 11).+).
8. Return to MIUI: how to roll back
If pure Android didnโt live up to expectations, you can go back to MIUI.
๐ Method 1: Fastboot (recommended)
- Download the official firmware MIUI for Mi 9 (e.g. Stable) ROM) Xiaomi.
- Unpack the archive and place the folder in the platform-tools.
- Transfer your phone to Fastboot and execute: fastboot flash boot boot.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot erase userdata fastboot reboot
๐ฆ Method 2: Through TWRP (if there's a backup)
- Download to TWRP and select Restore.
- Restore the System and Boot partition backup made before the firmware.
- Wipe Dalvik/Cache and reboot.
โ ๏ธ Note: After returning to the MIUI The bootloader may lock again. To avoid this, before the firmware, do:
fastboot flashing unlock_critical