π² How to Install Custom ROM on Xiaomi Devices (Step-by-Step Guide)
Installing a custom ROM allows you to experience a clean Android UI, better performance, improved battery life, and latest Android updates even before official releases. This guide explains the basic and universal method used for most Xiaomi devices.
β οΈ Important Requirements
- π Bootloader must be unlocked
- π§ Basic knowledge of recovery/fastboot
- πΎ Full backup of your data
- π Battery at least 60% charged
π¦ Files Required
- π Custom ROM ZIP file (for your exact device)
- π§ Custom Recovery (TWRP / OrangeFox)
- π² Firmware (if required by ROM)
- π¦ GApps (if ROM is vanilla)
- π Magisk (optional, for root)
π Always download files specific to your device model
βοΈ Step 1: Install Custom Recovery
- Boot your phone into Fastboot Mode (Volume Down + Power)
- Connect phone to PC
- Open CMD / Terminal in recovery folder
- Flash recovery:
fastboot flash recovery recovery.img
- Boot into recovery immediately:
fastboot boot recovery.img
π§Ή Step 2: Wipe Required Partitions
- Go to Wipe β Advanced Wipe
- Select:
- Dalvik / ART Cache
- Cache
- System
- Data
- Swipe to wipe
π Do NOT wipe Internal Storage unless needed
π₯ Step 3: Transfer ROM Files
- Connect phone to PC and transfer ROM ZIP
- Or use USB OTG / ADB sideload
π² Step 4: Flash Custom ROM
- Go to Install
- Select ROM ZIP file
- Swipe to flash
β³ Wait until installation completes
β Step 5: Flash Additional Files
- π¦ Flash GApps
- π Flash Magisk (for root)
- π² Flash Firmware (if required)
π Order: ROM β GApps β Magisk
π Step 6: Format Data (Important)
- Go to Wipe β Format Data
- Type yes
π Prevents bootloop & encryption issues
π Step 7: Reboot Device
Go to Reboot β System
β³ First boot may take 5β10 minutes
π Done! ROM Installed Successfully
Your device will now boot into the new custom ROM
β οΈ Common Issues & Fixes
- π΄ Bootloop β Format data & reflash
- π΄ Stuck on logo β Check firmware
- π΄ No network β Flash correct firmware
π Types of Installation
- π’ Clean Flash β Full wipe (recommended)
- π΅ Dirty Flash β No wipe (may cause bugs)
π‘ Pro Tips
- Use latest recovery
- Match ROM & firmware version
- Backup EFS / IMEI
- Read ROM-specific instructions
π Whatβs Next?
- Customize your ROM
- Install modules
- Optimize performance
- Explore features