This is how you can easily and successfully root Xiaomi Redmi 5 (codename Rosy) and avoiding bootloop. This guide covers the proper steps to flash TWRP and then gaining either permanent root via SuperSU or systemless root via Magisk. The term “Systemless” here means that the root will not be injected directly into the system. This allows the possibility to hide the root status of your phone and hence some apps like Banking apps can still run on the phone. Some apps sports ability to detect the root status of the phone and requires the app to run only on an unrooted phone.
Since this guide involves flashing a custom recovery, therefore an unlocked bootloader becomes the main requirement here. Please do not proceed if your phone bootloader is still locked. This not going happen and there is a big possibility that your device will go bricked. As for your information, this guide will utilize the official TWRP Recovery released by Team Win Developer team. Do not expect to use the recovery as it is after flashing. A custom tweak called “Lazy Flasher” or”DM Verity Disabler” is needed to avoid bootloop after granting TWRP to do system modification.
Despite many advanced features it can offer, flashing custom ROM, in many cases will void your phone warranty. Moreover, there are still possibilities of getting stuck in error despite the fact that you have followed the procedure correctly. Hence, please create a full backup of your important data (Contacts, messages, photos, etc).
Please proceed with full caution. Read the whole steps properly and make sure you have understood what should be done according to the steps. Proceed only when you have read the whole article thoroughly. We hold no responsibility for any damage caused by this article.
Well, enough the chit-chat part and let’s go to the detailed guide.
You will need all of these things below (read: requirements):
- A Redmi 5 device (codename Rosy) either 2GB/32GB or 3GB/64GB.
- Make sure the phone bootloader has been unlocked officially. Read our detailed guide on how to unlock MIUI bootloader officially.
- A Windows-based laptop / PC. We strongly suggest you to use Windows 8/8.1/10 with 64-bit system.
- Download either Mi Flash tool or Mi PC Suite.
- Download Minimal Fastboot & ADB Driver.
- Download TWRP Flasher Toolkit for Redmi 5 and extract it.
- Download Windows Driver Signature Enforcement Disabler tool and extract it.
- Download the newest version DM No Verity disabler tool (v6.0) – do not extract the zip file.
- Download the latest version of either SuperSU or Magisk. You will also need Magisk Uninstaller (also available in the same download page) if you prefer to use Magisk rather than SuperSU.
- A compatible USB data cable. Make sure it is a USB data cable and not USB charging cable only or you can simply use the one comes with your device.
- Your phone should have enough juice. Make sure it has at least 65% battery power remaining.
- A spare time of your life which is not more than 30 minutes.
Please read the whole steps thoroughly and do not proceed before you have fully understand about the whole procedure.
Step 1 – First thing first, you need to disable Windows Driver Signature Enforcement on your laptop or PC. Doing this step is easy. Simply extract the zip file and run the “DRIVER_SIGNATURE_DISABLE.bat” file. Alternatively, if you want to do it the geeky way, you may also follow our previous tutorial.
Step 2 – Now you will need to install Mi Flash tool. This is a special software to flash MIUI ROM. However, in this case, you need to install this tool only for obtaining the Xiaomi USB driver included within its package. We are not going to actually use the tool.
Step 3 – Next, install the Minimal ADB & Fastboot files. This will be installed in default location which is at “C:\adb”
Step 4 – Now grab your phone. You will need to enable Developer Options and USB Debugging which we assume you have already done this when you want to unlock the phone bootloader. Just in case if you forgot, you can enable it by following this sequence.
Enable Developer Options:
Settings >> About phone >> tap MIUI version 7 times >> You are now a developer
Enable USB Debugging:
Settings >> Additional settings >> Developer options >> USB Debugging >> Enable it
Step 5 – Now grab your phone and the USB cable. Connect the phone to your computer while it is in the “ON” state. Do not connect the phone while it is off. Again, make sure it is turned on. Moreover, make sure the connection type is “MTP“, not the Charging mode.
Step 6 – Next, launch Windows Explorer and transfer the downloaded files from your computer to your phone; either in its internal storage or SD Card. The files you need to transfer are DM Verity Disabler (.zip), and SuperSU (.zip) or Magisk (.zip). Again, please choose either SuperSU or Magisk. Do not flash both of them at the same time.
Step 7 – Still in Windows Explorer, go to the folder of where you have extracted TWRP Flasher toolkit. Find the file having .bat extension which in this case is “ifelixit FLASHER TOOLKIT Vince-Rosy“. Right-click on that file and run as Administrator.
Step 8 – The initial screen of TWRP Flasher toolkit will be displayed. This time simply hit any key on your keyboard.
Step 9 – Next, you will see several options. Now simply press 1 and hit Enter key.
Step 10 – The tool will then check whether all required stuff is met. It will then do its task by releasing its magic to install TWRP automatically on the phone. Please do not disconnect or alter your phone in this state.
Step 11 – Sit tight and wait for the tool to finish its job. Your phone will automatically reboot into the fastboot mode during the flashing process. Once done, it will then automatically reboot into Recovery mode. This can be clearly seen on your phone with TWRP UI displayed.
Step 12 – Next, tick the “Never show this screen during boot again” option followed by swiping right to allow system modification. See the illustration pic below.
Please be aware that by swiping to allow modifications you will not be able to boot into normal mode unless you flash DM-Verity disabler tool.
Rooting The Redmi 5
Step 13 – You will then enter TWRP main menu. Here you can see some main features of this popular custom recovery. At this point, you have to tap on the “Install” button since you are going to flash SuperSU (or Magisk) and Opt-encrypt DM-Verity Disabler package.
Step 14 – Now locate the zip files of SuperSU (or Magisk – you choose). Tap on it to select it.
If you prefer to use Magisk, please also flash Magisk Uninstaller.
Step 15 – Now in the next section, you will need to do Swipe to Confirm Flash.
Step 16 – At this point, the flashing process will begin. Just sit tight and wait. The process should take only seconds.
Step 17 – Now you have flashed SuperSU (or Magisk). Please do not tap on either Wipe Cache or Reboot System. Simply tap on the back menu in the bottom left-hand side. This will bring you to the main menu.
Step 18 – Next, following the same sequence of flashing SuperSU, you have to flash DM-Verity Disabler tool (a.k.a Lazy Flasher). It is recommended to use version 6.0 which is the latest version so far. Tap on Install >> locate the zip file >> tap on it >> then do “Swipe to confirm flash”. This step is necessary to avoid bootlooping.
Step 19 – Finally, tap the Reboot System once it is done flashing.
Step 20 – That’s it. Your phone will reboot into normal mode. You will then notice a new icon which is SuperSU being displayed on your phone.
Additional Steps for Magisk – However, if you choose Magisk instead of SuperSU. You may also need to download and install Magisk Manager app on your phone. Simply grab the APK file and install it manually. Magisk Manager app is basically similar with SuperSU app which is a root manager. Moreover, you can also find many cool modules compatible with Magisk.
Congratulation! Your phone is now fully rooted. You can confirm that using an app called Root Checker.