Install Android 9 Pie on Xiaomi Mi Mix 2S
In this article
Installing Android 9 Pie on your Xiaomi Mi Mix 2S gives you the official Google OS version with gesture navigation, adaptive battery, and Digital Wellbeing. The process involves unlocking the bootloader, flashing a custom recovery, and then installing a Pie-based ROM (either the official MIUI 10 Pie build or a custom AOSP/LineageOS ROM). This guide covers the safest method using official tools and reputable ROMs. Before starting, back up all data—this wipes your phone.
What You'll Need
- A Xiaomi Mi Mix 2S (obviously)
- A PC (Windows, Mac, or Linux) with USB port
- USB cable (data-capable)
- Xiaomi Mi Unlock tool (official)
- ADB and Fastboot tools (install via platform-tools)
- A custom recovery like TWRP (download the official .img for polaris)
- An Android 9 Pie ROM: either the official MIUI 10 Pie fastboot ROM or a custom ROM like LineageOS 16.0 (both from official sources)
- Google Apps (GApps) package if using a custom ROM without GApps
- Backup of all data (photos, contacts, etc.)
Step-by-Step
- Back up everything. This process erases your phone. Use Mi Cloud, Google Drive, or local backup to save photos, contacts, and app data.
- Enable Developer Options. Go to Settings > About Phone and tap MIUI Version seven times until you see “You are now a developer.”
- Enable OEM unlocking and USB debugging. In Settings > Additional Settings > Developer Options, turn on OEM Unlocking and USB Debugging.
- Sign in to your Mi account on the phone. Go to Settings > Mi Account and log in. Keep the phone connected to the internet (SIM or Wi-Fi) for the next step.
- Request bootloader unlock. On your PC, download and run the Mi Unlock Tool (official from Xiaomi). Log in with the same Mi account. Follow the on-screen prompts to apply for unlock permission. You may need to wait up to 7 days for approval.
- Unlock the bootloader. Once approved, power off the phone. Hold Volume Down + Power to enter Fastboot mode. Connect to PC. Open the Mi Unlock Tool, click Unlock, and confirm. This wipes your phone. Reboot normally (it may take extra time on first boot).
- Install ADB and Fastboot. Download the official Android platform-tools from Google, extract to a folder like C:\adb, and add it to your PATH or open a command prompt in that folder.
- Download TWRP for Mi Mix 2S. Get the official TWRP image from twrp.me for “polaris” (the codename). Also download a compatible Android 9 Pie ROM (e.g., LineageOS 16.0 from lineageos.org) and optionally GApps (from opengapps.org, choose ARM64, Android 9.0).
- Boot into Fastboot again. Power off, then hold Volume Down + Power until you see the Mi Bunny screen.
- Flash TWRP. On PC, run:
fastboot flash recovery twrp.img(replace with the actual filename). Then boot into recovery:fastboot boot twrp.img(this boots TWRP without permanently flashing it, which is safer). - In TWRP, wipe data. Tap Wipe > Format Data, type “yes” to confirm. This removes encryption and all data. Then go back and do a Factory Reset (which wipes cache and data partitions).
- Transfer the ROM and GApps. With TWRP still open, connect the USB cable and use Mount > Enable MTP to copy the ROM zip and GApps zip to the phone’s internal storage. Or use
adb push filename.zip /sdcard/from the PC. - Install the ROM. In TWRP, tap Install, select the ROM zip, and swipe to confirm. Wait for it to finish.
- Install GApps (if using a custom ROM). After the ROM, install the GApps zip the same way. Do not reboot between ROM and GApps.
- Wipe cache/dalvik. Go to Wipe > Advanced Wipe, select Dalvik/ART Cache and Cache, swipe to wipe. This prevents boot loops.
- Reboot. Tap Reboot System. First boot may take 5–10 minutes. Do not interrupt.
- Set up your phone. Once booted, go through the setup wizard. Restore your backup.
Common Mistakes
- Not waiting for the bootloader unlock approval period—trying to unlock before permission is granted will fail.
- Using the wrong TWRP image (make sure it’s for “polaris”).
- Skipping the Format Data step—this causes boot loops or encryption errors.
- Flashing a ROM meant for a different device.
- Rebooting after flashing the ROM before flashing GApps—this can cause the system to boot without GApps and then fail when you try to flash later.
- Forgetting to enable USB debugging after a reboot—sometimes the setting resets.
Tips
- Use the official MIUI 10 Pie fastboot ROM if you want the simplest, most stable experience—it’s flashed via Mi Flash tool and doesn’t require TWRP.
- Keep a backup of your stock ROM on your PC in case you want to go back.
- After unlocking, you may see a warning on boot—that’s normal.
- If you’re new to this, practice with a cheap device first.
- Always download ROMs from official sources (Xiaomi’s site, LineageOS, etc.) to avoid malware.
Troubleshooting
Boot loop after flashing: Re-enter TWRP (hold Volume Up + Power), wipe cache/dalvik, and reboot. If that fails, re-format data and re-flash the ROM and GApps.
Phone stuck on Mi logo: Wait 10 minutes. If still stuck, force reboot by holding Power + Volume Down for 10 seconds. If it persists, reflash TWRP and reinstall the ROM.
Unlock tool says “Couldn’t unlock”: Make sure you’re logged into the same Mi account on the tool and phone, and that your phone has internet. Check that OEM Unlocking is enabled.
No Wi-Fi or cellular after install: This usually means the ROM isn’t compatible or you missed a firmware update. Flash the latest official MIUI fastboot ROM first, then reinstall the custom ROM.
GApps error (insufficient storage): Use a smaller GApps package (like “pico” or “nano”).
If all else fails: Use Mi Flash tool to restore the official MIUI fastboot ROM, then start over.
Frequently Asked Questions
Does this void my warranty?
Yes, unlocking the bootloader and installing custom software voids the warranty in most regions. Xiaomi may still repair hardware issues, but software support is not guaranteed.
Will I still get OTA updates?
If you install the official MIUI Pie ROM, yes, you’ll get OTA updates. If you install a custom ROM like LineageOS, you’ll get updates via the ROM’s own updater or by downloading new builds manually.
Can I go back to MIUI 10 (Android 8) after installing Pie?
Yes. You can flash the official MIUI 10 fastboot ROM using Mi Flash tool. This will restore the original system and relock the bootloader (if you choose the “clean all and lock” option).
Is it safe to unlock the bootloader?
It’s safe if you follow the official process. The risk is data loss and potential bricking if you make mistakes during flashing. Always back up and follow instructions carefully.
What is the difference between MIUI 10 Pie and a custom ROM like LineageOS?
MIUI 10 is Xiaomi’s proprietary skin with extra features and bloatware. LineageOS is a clean, near-stock Android experience with better performance and privacy, but may lack some Xiaomi-specific features like IR blaster or camera optimizations.
Do I need to root the phone to install Pie?
No. Rooting is optional. You can install a custom ROM without rooting. If you want root later, you can flash Magisk separately.