How to Root Xiaomi Mi 4c: Step-by-Step Guide
Rooting your Xiaomi Mi 4c gives you full administrative control over the Android system, letting you remove bloatware, install root-only apps, overclock the CPU, and customize nearly every aspect of the OS. This guide walks you through unlocking the bootloader, installing a custom recovery like TWRP, and flashing Magisk to gain root access. Before you start, back up all important data, charge your phone to at least 70%, and ensure you have a Windows PC and a USB cable.
What You’ll Need
- Xiaomi Mi 4c with a charged battery (above 70%)
- Windows PC with internet access
- USB data cable (preferably the original)
- Unlocked bootloader (required; see Step 1)
- ADB and Fastboot tools installed on your PC
- TWRP recovery image for Mi 4c (e.g., twrp-3.x.x-x-libra.img)
- Magisk ZIP file (latest stable version)
- Backup of your personal data (photos, contacts, etc.)
Step-by-Step
- Unlock the Bootloader – Xiaomi requires an unlocked bootloader to flash custom recoveries. Go to Settings > Developer options (enable Developer options by tapping MIUI version 7 times), then enable OEM unlocking and USB debugging. Visit Xiaomi’s unlock page, apply for permission, and follow their instructions to unlock. This process may take up to a few days and will wipe your phone.
- Install ADB and Fastboot – Download the platform-tools ZIP from the Android developer site and extract it to a folder like
C:\adb. Add that folder to your system PATH or open a command prompt inside it. - Enable USB Debugging – On your phone, go to Settings > Developer options and toggle USB debugging on.
- Boot into Fastboot Mode – Power off the phone. Press and hold Volume Down + Power until the fastboot logo appears (a rabbit with a robot). Connect the phone to your PC via USB.
- Verify Fastboot Connection – Open a command prompt in your ADB folder and type
fastboot devices. You should see your device serial number. If not, install the proper USB drivers for Xiaomi. - Flash TWRP Recovery – Download the TWRP image file for the Mi 4c (codename libra). In the command prompt, type
fastboot flash recovery twrp.img(replacetwrp.imgwith your actual filename). Then typefastboot rebootto restart the phone. - Boot into TWRP – Immediately after rebooting, press and hold Volume Up + Power to enter recovery mode. If the phone boots normally, repeat the fastboot reboot and hold the keys earlier.
- Prepare TWRP – In TWRP, go to Wipe > Format Data and type yes to confirm. This removes encryption and old data. Then go to Advanced > ADB Sideload to enable sideload mode.
- Transfer Magisk ZIP – On your PC, open a command prompt in the ADB folder and type
adb sideload Magisk-vXX.X.zip(replace with your downloaded Magisk file). The file will be pushed and flashed automatically. Alternatively, you can copy the ZIP to your phone’s internal storage before formatting, but formatting wipes it, so sideload is safer. - Reboot System – After Magisk installation finishes, go to Reboot > System. The first boot may take longer than usual.
- Verify Root – Install the Magisk Manager app (now called just “Magisk”) from the Play Store or the APK you downloaded. Open it; if it shows “Installed” with a version number, root is successful. You can also use a root checker app.
Common Mistakes
- Skipping bootloader unlock – Flashing TWRP on a locked bootloader will fail or hard-brick. Always unlock first.
- Using the wrong TWRP image – The Mi 4c is also known as “libra”. Downloading a TWRP for a different device (like Mi 4) will not work.
- Not formatting data – If you don’t format data, the phone may boot into a bootloop because of encryption.
- Incorrect fastboot commands – Typing
fastboot flash recoveryinstead offastboot flash recoveryis fine, but usingfastboot bootinstead offlashwill only boot TWRP temporarily, and root won’t stick. - Forgetting to enable USB debugging – Without it, ADB commands won’t work.
Tips
- Always download TWRP and Magisk from official sources (twrp.me and topjohnwu’s GitHub) to avoid malware.
- Keep a backup of your current ROM (via TWRP) before flashing anything new.
- After rooting, avoid using apps that require hiding root (e.g., banking apps) unless you use Magisk’s built-in MagiskHide or DenyList features.
- If you ever need to unroot, simply flash the stock boot image or use Magisk’s “Uninstall” option.
- Use a USB port directly on your PC (not a hub) to avoid connection drops during flashing.
Troubleshooting
- “fastboot devices” shows nothing – Install the latest Xiaomi USB drivers, try a different USB port, or re-enable USB debugging. Also ensure the phone is in fastboot mode (not just powered off).
- Bootloop after flashing TWRP – This usually means you didn’t format data. Boot back into TWRP (Volume Up + Power) and perform a factory reset (Wipe > Factory Reset) and format data again.
- Magisk app says “Not installed” – The ZIP may not have flashed correctly. Reboot to TWRP and flash Magisk again via sideload or by copying the ZIP to storage.
- Phone stuck on Mi logo – Try booting into recovery and wiping cache/dalvik. If that fails, reflash the stock ROM using Mi Flash tool and start over.
- ADB sideload fails with “error: closed” – Ensure you have the latest ADB version, and that the phone screen is on in TWRP. Try re-running the command.
Frequently Asked Questions
Will rooting void my warranty?
Yes, rooting typically voids the manufacturer warranty. However, you can unroot (restore stock) to regain warranty in most cases, but the bootloader unlock status remains and may be detected.
Can I root without unlocking the bootloader?
No. Xiaomi devices require an unlocked bootloader to flash custom recovery and root. There is no safe workaround.
Will I lose my data when rooting?
Yes, the bootloader unlock process wipes your phone, and formatting data in TWRP also erases everything. Always back up before starting.
Can I still receive OTA updates after rooting?
Usually not directly. OTA updates may fail or cause bootloops. You can update manually by downloading full ROMs and flashing them, then re-rooting.
Is rooting safe for my Mi 4c?
If you follow instructions carefully, the risk is low. However, any flashing has a small chance of bricking the device. Stick to official TWRP and Magisk versions.
What is the difference between root and custom ROM?
Root gives you superuser access within the existing system. A custom ROM replaces the entire operating system. Rooting is often a prerequisite for installing custom ROMs, but not required.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.