Root Xiaomi Redmi 5/5A Nougat using TWRP and Install Magisk

Beyond the budget-friendly feature, Xiaomi mobiles hardware is always future proof. Due to the enormous mixed general and developer audience, Even if Xiaomi stopped the official support, You can get the latest Android versions by Custom ROMs. To flash Custom ROMs and Uninstall the bloatware apps, you need Root access. When you have official TWRP, It means the chances of root success is high. Xiaomi Redmi 5 and 5A both mobiles have decent hardware specs. Even if they are old mobiles, They have a huge crowd. So, they still getting development from Developers. You can experience Android 10 on your mobile by flashing Custom ROMs. The following method is based on Official TWRP. Even if you are a regular user, I advise you to go for the Root process. But, When flashing the ROMs, Prefer Pixel Experience ROM. It is user-friendly than other Custom ROMs.
Redmi 5 on the Lake Side Stone

Why should you Root Xiaomi Redmi 5/5A?

We appreciate the hard work of the TWRP team and XDA Developers-  darshan1205 and Doge. Without them, this Root method is not possible. Your mobile has enough 2-4 GB of RAM. But, It is not enough for Normal usage with Old OS. Yes, Xiaomi stopped Security patch updates on 60-90 days Interval. Also, It is based on Old OS, So we can’t expect Many optimizations. It has a Qualcomm MSM8917 Snapdragon 425(5A) and Qualcomm SDM450 Snapdragon 450(Redmi 5) processors.

Due to Poor RAM Management in Old device, you will feel laggy. If we optimize correctly with correct Custom OS after rooting, we can see some Improvements. So, after rooting, I can expect a Lag-free experience? Probably. Also, if we hibernate and eliminate a lot of unwanted apps and optimize some apps, your device is hardware limited. But, within these limits, we can enhance the performance by 20-30% compared with your old usage. If you use Lite weight Custom ROMs, you can expect a 40-80% improvement in performance based on what custom OS you are choosing.

How to Root Xiaomi Redmi 5/5A Nougat 7.1.2

Xiaomi Redmi 5/5A International Variants comes with a flexible bootloader other than some locked devices. Example- In Samsung, Verizon mobiles come with locked Bootloader. This means that different smartphone variants can be easily rooted. Also, the device can accept to install TWRP recovery or any other custom recovery file/app alike.

TWRP recovery is a custom recovery file that must be installed on your devices because you can root them successfully. In this article, we explained the easiest method to follow and install TWRP recovery on Xiaomi Redmi 5 and 5A. However, the tool required for rooting this device is the Magisk App.

With the help of TWRP Recovery, you can quickly flash the latest version of Magisk into your Redmi 5/5A to gain root access. Before sharing the tutorial, you may want to know that, with the TWRP recovery present on your device, you can easily install any custom ROM or firmware. Does it seem complicated? Relax, everything will be explained succinctly in bullets.

Samsung Galaxy S23 Renders
Samsung Galaxy S23 Renders

Things to check out for;

  • Make sure your device battery is charged above 50%

  • Backup your current files and data, full data loss process (save them on external storage).

Pre-Requirement StepsOnePlus 6T OEM Unlock and USB Debugging

  • Enable USB Debugging Mode and OEM Unlock on your mobile. To do this; go to settings >>> about >>> Tap on the “Build Number” 7-10 times consistently to enable “Developer Options,” then go to the “Developer Options” and enable USB Debugging Mode, OEM Unlock. There is no complicated process in Xiaomi Redmi 5 and 5A.

Also Read-  Root Xiaomi Mi 8 Android 10 using TWRP and Magisk

Unlock Bootloader using ADB and Fastboot

  • Enter your Mobile details like phone number, IMEI, reason. You will get the confirmation code on your mobile. Enter the confirmation code on the Mi website and request for unlocking. You will receive a confirmation mail after the approval in 2-10 Days.

Mi Flashtool Installation


  • Install the Mi Flash Tool in the received mail. Log in with your Same Mi Account, which used to get the Software.

Mi Flash Tool Unlock

  • Switch off your device. Connect your mobile to the PC. Then, enter into Fastboot mode. To do this; Press and hold down the Volume Down + Power buttons at the same time for some time. It will boot your mobile into Fastboot mode.
  • After you successfully boot into Fastboot mode, Select Unlock. It will take 2-3 minutes to finish the process. After the successful process completion, Reboot your mobile.Xiaomi Redmi Note 7 Fastboot

  • Check again enable “Developer Options,” then go to the “Developer Options” and enable USB Debugging Mode, OEM Unlock and Enable the “Advanced Reboot.” Sometimes they disabled themselves after the boot.

Flash TWRP

Redmi 5 Fastboot Mode

  • Switch off your device. Connect your mobile to the PC. Then, enter into Fastboot mode. To do this; Press and hold down the Volume Down + Power buttons at the same time for some time. It will boot your mobile into Fastboot mode.
  • Now, connect the Xiaomi Redmi 5/5A mobile to the computer via USB cable.

  • Launch the fastboot on your computer. Open a Command prompt on your PC and type below command.

  • fastboot flash recovery recovery.img

fastboot flash recovery command

  • Don’t boot into Normal OS. Type the below command to Boot into TWRP.

  • fastboot boot recovery.img
  • After the process complete, It will boot into the temporary TWRP. Don’t Boot into standard OS until we flash magisk.

Install Magisk and lazyflasher in your Xiaomi Redmi 5/5A variants using TWRP

Redmi 5 TWRP Home Page

  • Select Wipe->Advance Wipe->Select Cache Data.
  • Return to Home of TWRP select Install.
  • Select
  • After the Installation Again, navigates to Home and Select Install.
  • Select Magisk.Zip. After the successful installation, Reboot your mobile.
Also Read-  Root Samsung Galaxy A10 SM-A105F/FN/G/M/N Pie 9.0 using Magisk and Install TWRP

What More?

Xiaomi Redmi 5A version has a minimum of 2-3 GB RAM, and the regular 5 version has 2-4 GB of RAM, and it is a Good Mid-End phone; You have enough RAM to use in this modern Android World. If you don’t know how much RAM you need, you can refer to that. But, there are no Major regular updates and monthly updates from Xiaomi for a long duration. If you compare it with other devices, they still receiving updates. So, you know what you are doing and the real purpose, you can root your device. If you want to disable Ads, you can use other methods, which doesn’t require root. Xiaomi promised to optimize these Ads in the upcoming versions, But your mobile won’t receive these updates. So, It is better to root your mobile and use Custom ROMs.

Source, (2), (3), (4)

Share This Post:

4 thoughts on “Root Xiaomi Redmi 5/5A Nougat using TWRP and Install Magisk

  1. Xiaomi rn4 no root. Wanted to flash lineageos16 Mido. Unlocked bootloader w mi flash unlock tool and flashed twrp. No mention of ‘oem unlocks’ in instructions. I have backed up everything(14gb). directly system reboot and stuck in a boot loop. tried wipe>advanced>cache,Dalvik and wipe>factory reset, still boot loop. in what order should I flash los16,, and magisk?.thanks selva.

    • This method is for Redmi 5 and 5A. Don’t try with Note 4. But, you can use the steps as a reference and do with the official TWRP.

      • Thanks for the reply. Yes, if it’s for redmi 5(a). I’m requesting help with my current issue on rn4. Could you help me out?. One suggestion I got was to boot into twrp and install no-verity-opt-encrypt. If the phone is working again, backup boot, root with magisk, then back up with Migrate. Save all backups to PC, restore boot, wipe system, install LineageOS, and gapps. Format user data and reboot. For rooting install any help is much appreciated.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.