[All-In-One] Xiaomi Redmi Note 5 (whyred): Unlock BL, Flash TWRP, Root, Flash ROM

Search This thread

senerex

Senior Member
Apr 15, 2018
120
449
Prishtina, Kosova
Dear Redmi Note 5 user,

This guide is suitable for the international version: Redmi Note 5, and the Indian version: Redmi Note 5 Pro!

I'm not responsible if anything happens to your device. If you execute this procedure properly then you shouldn't face any problems. I tried this procedure on several Redmi Note 5 and every time it worked flawlessly. I used a computer with Windows 10.

Before you proceed please back up all your important data and make sure that your phone battery is charged >80%!!!

A. Prerequisites:

1. Disable driver signature enforcement in Windows

How to do this pls read here: http://en.miui.com/thread-237673-1-1.html

2. Install ADB and Fastboot tools with drivers on Windows

How to do this pls read here: https://forum.xda-developers.com/showthread.php?t=2588979

Restart your computer.

3. Enable "OEM unlocking" and "USB debugging" in your device

a. Enable Developer Options in: Settings/About Phone/MIUI version. Click on MIUI version seven times
b. Now go to: Settings/Additional Settings/Developer Options and check "OEM unlocking" and "USB debugging"

4. Check if your bootloader is locked

a. After successful installation of "ADB and Fastboot" enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable).
b. Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
c. Enter the terminal command in command line: >>fastboot devices<<

If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If this happens please reinstall your drivers from Point A. 2. or try these drivers here:

http://xiaomiadvices.com/download-xiaomi-usb-drivers/

d. If you see your device then enter the terminal command in command line: >>fastboot oem device-info<<

If your bootloader is locked, you'll get the following status (or something similar):

…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.063s
………………………………………………………………………

If your bootloader is unlocked, you'll get following status (or something similar):

…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.053s]
finished. total time: 0.055s
………………………………………………………………………

5. Request Permission from Xiaomi to Unlock the Bootloader

a. Create a Mi Account: https://global.account.xiaomi.com/pass/register
b. Sign to Xiaomi and apply for unlocking http://en.miui.com/unlock

You have to give a reason for requesting to unlock the bootloader. I gave following reason on my request:

"I purchased my Xiomi Redmi Note 5 from the vendor xxx and they have installed a fake (custom) rom. I want to install an original rom from Xiaomi. So please approve my request to unlock the bootloader."

c. Wait for permission. I have 5 different accounts approved by Xiaomi and the longest I had to wait for the approval of each account was 1 day. Most of the users are reporting the same, however very few users are reporting a waiting time of up to 10 days . If your request is approved then you should receive a message with following content:

"You've been granted the permission to unlock your device (Mi Account xxxx). Donload Mi Unlock Tool At http://en.miui.com/unlock"

6. Connect your Mi Account to your Device


Go to: Settings/Additional Settings/Developer Options/Mi Unlock status and check "Add account and device"

In case you face "86006 Error" and you cannot connect your Mi Account to your device: There are several solutions offered at Mi Forum but the easiest way is to download the rom Developer Version for Xiaomi Redmi Note 5 (whyred) here http://en.miui.com/download-342.html or Redmi Note 5 Pro (whyred) here http://en.miui.com/download-341.html.

a. Put the downloaded rom into internal memory of the device
b. Go to: Settings/About phone/System update. On the upper right corner there are three points, click them, select "Choose update package", select "File Manager" and choose the Developer Version package you just downloaded on your internal memory and press OK.

B: Unlock the Bootloader

Attention: Unlocking the bootloader will erase all your data! So please back up your data before you unlock the bootloader!

1. You must enable "OEM unlocking" and "USB debugging" as per point A. 3.
2. You must connect your Mi Account with your device as per point A. 6.
3. Download Mi Unlock Tool here: http://en.miui.com/unlock
4. Enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable)
5. Start the Mi Unlock Tool
6. Enter your eMail and your password of your Mi Account
7. Connect you device to your computer and start the unlock procedure
8. Follow the unlock tool instructions until the unlock procedure is finished
9. Reboot your device

P.S.: In case you get the message, that the unlocking can be done after 360h or 720h then you have to wait for that time to pass.

C: Install the TWRP Recovery

1. Your bootloader must be unlocked
2. Download the latest "twrp-x.x.x-x-whyred.img" from here: https://twrp.me/xiaomi/xiaomiredminote5pro.html and put it into a dedicated folder in your computer.
3. Go to the folder where you have put the twrp-file. Now open a command window inside that folder. To do that hold together "Shift + Right click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
4. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
5. Enter the terminal command in command line: >>fastboot flash recovery twrp-x.x.x-x-whyred.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery TWRP!
6. Boot your device into recovery (3 possible methods)
+ by entering terminal command in command line: >>fastboot boot twrp-x.x.x-x-whyred.img<<, or
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery

If you only want to root your smartphone, then please continue to point E.
If you want to install a custom rom, then please continue to point F.

E. Root Your Smartphone

+ Donwload latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
+ Put Magisk into internal memory of your smartphone or into the micro sd-card or into on-the-go memory stick
+ Flash Magisk
+ Restart your smartpphone

F. Install A Custom Rom

1. Download the desired rom and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick:

a. Lineage

https://download.lineageos.org/whyred

b. Resurrection Remix

https://get.resurrectionremix.com/?dir=whyred

c. AospExtended

https://downloads.aospextended.com/whyred

2. (in case you want to have root on your device) Download "addonsu-arm64-signed.zip" (for Lineage: https://download.lineageos.org/extras) or latest Magisk (from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) and put it into device's internal memory
3. Download Google Apps ARM64, Pico, Nano etc. at www.opengapps.org and put them into device's internal memory or computer or on-the-go memory stick or micro sd-card.
4. Enter recovery mode:
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
5. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
6. Go back to main TWRP screen and install the rom, install Google Apps, install "addonsu-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other roms).
7. Reboot. That's it, you are done.

If my guide helped you please click "thanks" and enjoy your phone. :fingers-crossed:
 
Last edited:

senerex

Senior Member
Apr 15, 2018
120
449
Prishtina, Kosova
Frequently Asked Questions (FAQ):

Question:

My computer doesn't recognize my device. What can be the problem?

Answer:

1. Check your cable if it is the original one, and if not then use the original one.
2. Check you drivers if they are installed properly and if not, then re-install them.
3. If the problem is not with point 1 and 2 then please try another computer.

Question:

Can I bypass the waiting time to unlock the bootloader?

Answer:

No you can't. You have to wait for that time to pass.
 
Last edited:

Modest Mind

Senior Member
Dec 10, 2016
74
104
Prishtina
Redmi 5 plus =Redmi note 5 india
Redmi note 5 pro is only for India(not global)
Correct link for Redmi note 5 pro-http://en.miui.com/download-341.html

If you open those links for Redmi Note 5 Global (http://en.miui.com/download-342.html) and Redmi Note 5 Pro (http://en.miui.com/download-341.html) and press the button to download the ROM, you will see that those are basically the same ROM. Or am I missing something?

Xiaomi is just confusing its customers with different names for different countries for the same smartphone(s).:confused:
 
Last edited:
Nov 3, 2015
47
27
Redmi note 5 global not released yet.
2nd link is for Redmi note 5 pro (whyred) for India.
1st link is for Redmi note 5 (Vince) for India which is globally released as Redmi 5 plus.
So both devices are not same.
And if you check China miui site you will find rom for Redmi note 5 , which is the global version of Redmi note 5.

Still confused. So link OP sent is wrong? Cuz u called it the vince link. :/
 

senerex

Senior Member
Apr 15, 2018
120
449
Prishtina, Kosova
Still confused. So link OP sent is wrong? Cuz u called it the vince link. :/

The links given by me in the guide above were/are the correct ones. Unfortunately @tech4rhm fails to see that there are two columns in the link (en. miui. com/download-342.html), the first one is for Redmi Note 5 Global (code name whyred) and the second one is for Redmi Note 5 India (which is in fact Redmi 5 Plus Global - code name vince). For the peace of mind of @tech4rhm and our friends in India I have added in point A. 6. the links for both Redmi Note 5 Global (code name whyred) and Redmi Note 5 Pro India (code name whyred), but if you download the firmware from both links then you will get the same file (currently following file: miui_WHYREDGlobal_V9.2.6.0.NEIMIEK_272c24d561_7.1).

To avoid confusions in the future here a list with code names of Xiaomi smartphones:

xiaomi. eu/community/threads/8-4-12.43922

@tech4rhm pls let's not overburden this thread with the same subject and cause confusion with other users. Have a nice day to you all.
 
Last edited:
  • Like
Reactions: tech4rhm

raza_maestro

Senior Member
Jun 3, 2016
751
249
New Delhi
Xiaomi Poco F3
The links given by me in the guide above were/are the correct ones. Unfortunately @tech4rhm fails to see that there are two columns in the link (en. miui. com/download-342.html), the first one is for Redmi Note 5 Global (code name whyred) and the second one is for Redmi Note 5 India (which is in fact Redmi 5 Plus Global - code name vince). For the peace of mind of @tech4rhm I have added in point A. 6. links for both Redmi Note 5 Global (code name whyred) and Redmi Note 5 Pro India (code name whyred), but if you download the firmware from both links then you will get the same file (currently following file: miui_WHYREDGlobal_V9.2.6.0.NEIMIEK_272c24d561_7.1).

Here a list with code names of Xiaomi smartphones:

xiaomi. eu/community/threads/8-4-12.43922

@tech4rhm pls let's not overburden this thread with the same subject and cause confusion with other users. Have a nice day to you all.
I really hope this 86006 error is fixed with any of the ota update or through developer rom soon. Its kind of frustrating that xiaomi users have to wait for days and months to get their bootloaders unlocked.
 

deathgame

Senior Member
Apr 8, 2009
1,636
211
POCO M2 Pro
I really hope this 86006 error is fixed with any of the ota update or through developer rom soon. Its kind of frustrating that xiaomi users have to wait for days and months to get their bootloaders unlocked.

It's probably error from server side. Doesn't require update to device. They need to make changes to their servers.
 

Ilir ILIRI

New member
Apr 18, 2017
4
1
The links given by me in the guide above were/are the correct ones. Unfortunately @tech4rhm fails to see that there are two columns in the link (en. miui. com/download-342.html), the first one is for Redmi Note 5 Global (code name whyred) and the second one is for Redmi Note 5 India (which is in fact Redmi 5 Plus Global - code name vince). For the peace of mind of @tech4rhm and our friends in India I have added in point A. 6. the links for both Redmi Note 5 Global (code name whyred) and Redmi Note 5 Pro India (code name whyred), but if you download the firmware from both links then you will get the same file (currently following file: miui_WHYREDGlobal_V9.2.6.0.NEIMIEK_272c24d561_7.1).

@tech4rhm pls let's not overburden this thread with the same subject and cause confusion with other users. Have a nice day to you all.

To my knowlegde, the only difference btw. Redmi Note 5 (international/Chinese version) and Redmi Note 5 Pro (Indian version) is the front camera 5MP vs. 20MP.
 

inchvbeam

Senior Member
Dec 19, 2016
98
4
I did all the steps mentioned above. but when i reboot to recovery still stock recovery is there.pls help

PS C:\adb> fastboot flash recovery twrp.img
target reported max download size of 536870912 bytes
sending 'recovery' (33644 KB)...
OKAY [ 0.784s]
writing 'recovery'...
OKAY [ 0.516s]
finished. total time: 1.318s
PS C:\adb> fastboot reboot
rebooting...

above is the powershell info
 

senerex

Senior Member
Apr 15, 2018
120
449
Prishtina, Kosova
I did all the steps mentioned above. but when i reboot to recovery still stock recovery is there.pls help

above is the powershell info
It seems to me that:

+ either you have not unlocked the bootloader and the flashing of twrp is not going through (check if your bootloader is unlocked: Point A.4.)
+ or you have not executed the point C.5. properly (See my remark: Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery twrp!).

Please follow my "All-In-One" step-by-step and you shouldn't face any problems.
 
Last edited:

Pat123

Senior Member
Oct 11, 2006
873
194
Mumbai
I did all the steps mentioned above. but when i reboot to recovery still stock recovery is there.pls help

PS C:\adb> fastboot flash recovery twrp.img
target reported max download size of 536870912 bytes
sending 'recovery' (33644 KB)...
OKAY [ 0.784s]
writing 'recovery'...
OKAY [ 0.516s]
finished. total time: 1.318s
PS C:\adb> fastboot reboot
rebooting...

above is the powershell info

You need to do "fastboot reboot recovery" after flashing
 

inchvbeam

Senior Member
Dec 19, 2016
98
4
The exact command to be given or action to be taken for entering recovery mode after flashing the twrp is given in point C.6.

Thanks I tried the following but it doesn't work:
5. Enter the terminal command in command line: >>fastboot flash recovery twrp-3.2.1-0-whyred.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery TWRP!
6. Boot your device into recovery (3 possible methods)
+ by entering terminal command in command line: >>fastboot boot twrp-3.2.1-0-whyred.img<<, or
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery

What i did is to flash magisk into the china rom.. before rebooting to system and sumhow it works. Thanks everyone. Btw may I know whether I can transfer files from PC to my redmi note 5 even while in TWRP mode.
 

KHSH01

Senior Member
Oct 12, 2014
115
16
So is there a way to lock the bootloader too? Is it the classic fastboot oem lock or something else? Also why doesn't fastboot oem unlock work on this phone. It worked on A1.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 174
    Dear Redmi Note 5 user,

    This guide is suitable for the international version: Redmi Note 5, and the Indian version: Redmi Note 5 Pro!

    I'm not responsible if anything happens to your device. If you execute this procedure properly then you shouldn't face any problems. I tried this procedure on several Redmi Note 5 and every time it worked flawlessly. I used a computer with Windows 10.

    Before you proceed please back up all your important data and make sure that your phone battery is charged >80%!!!

    A. Prerequisites:

    1. Disable driver signature enforcement in Windows

    How to do this pls read here: http://en.miui.com/thread-237673-1-1.html

    2. Install ADB and Fastboot tools with drivers on Windows

    How to do this pls read here: https://forum.xda-developers.com/showthread.php?t=2588979

    Restart your computer.

    3. Enable "OEM unlocking" and "USB debugging" in your device

    a. Enable Developer Options in: Settings/About Phone/MIUI version. Click on MIUI version seven times
    b. Now go to: Settings/Additional Settings/Developer Options and check "OEM unlocking" and "USB debugging"

    4. Check if your bootloader is locked

    a. After successful installation of "ADB and Fastboot" enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable).
    b. Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
    c. Enter the terminal command in command line: >>fastboot devices<<

    If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If this happens please reinstall your drivers from Point A. 2. or try these drivers here:

    http://xiaomiadvices.com/download-xiaomi-usb-drivers/

    d. If you see your device then enter the terminal command in command line: >>fastboot oem device-info<<

    If your bootloader is locked, you'll get the following status (or something similar):

    …………………………………………………………………….
    (bootloader) Device tampered: false
    (bootloader) Device unlocked: false
    (bootloader) Device critical unlocked: false
    (bootloader) Charger screen enabled: false
    (bootloader) Display panel:
    OKAY [ 0.058s]
    finished. total time: 0.063s
    ………………………………………………………………………

    If your bootloader is unlocked, you'll get following status (or something similar):

    …………………………………………………………………….
    (bootloader) Device tampered: false
    (bootloader) Device unlocked: true
    (bootloader) Device critical unlocked: true
    (bootloader) Charger screen enabled: false
    (bootloader) Display panel:
    OKAY [ 0.053s]
    finished. total time: 0.055s
    ………………………………………………………………………

    5. Request Permission from Xiaomi to Unlock the Bootloader

    a. Create a Mi Account: https://global.account.xiaomi.com/pass/register
    b. Sign to Xiaomi and apply for unlocking http://en.miui.com/unlock

    You have to give a reason for requesting to unlock the bootloader. I gave following reason on my request:

    "I purchased my Xiomi Redmi Note 5 from the vendor xxx and they have installed a fake (custom) rom. I want to install an original rom from Xiaomi. So please approve my request to unlock the bootloader."

    c. Wait for permission. I have 5 different accounts approved by Xiaomi and the longest I had to wait for the approval of each account was 1 day. Most of the users are reporting the same, however very few users are reporting a waiting time of up to 10 days . If your request is approved then you should receive a message with following content:

    "You've been granted the permission to unlock your device (Mi Account xxxx). Donload Mi Unlock Tool At http://en.miui.com/unlock"

    6. Connect your Mi Account to your Device


    Go to: Settings/Additional Settings/Developer Options/Mi Unlock status and check "Add account and device"

    In case you face "86006 Error" and you cannot connect your Mi Account to your device: There are several solutions offered at Mi Forum but the easiest way is to download the rom Developer Version for Xiaomi Redmi Note 5 (whyred) here http://en.miui.com/download-342.html or Redmi Note 5 Pro (whyred) here http://en.miui.com/download-341.html.

    a. Put the downloaded rom into internal memory of the device
    b. Go to: Settings/About phone/System update. On the upper right corner there are three points, click them, select "Choose update package", select "File Manager" and choose the Developer Version package you just downloaded on your internal memory and press OK.

    B: Unlock the Bootloader

    Attention: Unlocking the bootloader will erase all your data! So please back up your data before you unlock the bootloader!

    1. You must enable "OEM unlocking" and "USB debugging" as per point A. 3.
    2. You must connect your Mi Account with your device as per point A. 6.
    3. Download Mi Unlock Tool here: http://en.miui.com/unlock
    4. Enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable)
    5. Start the Mi Unlock Tool
    6. Enter your eMail and your password of your Mi Account
    7. Connect you device to your computer and start the unlock procedure
    8. Follow the unlock tool instructions until the unlock procedure is finished
    9. Reboot your device

    P.S.: In case you get the message, that the unlocking can be done after 360h or 720h then you have to wait for that time to pass.

    C: Install the TWRP Recovery

    1. Your bootloader must be unlocked
    2. Download the latest "twrp-x.x.x-x-whyred.img" from here: https://twrp.me/xiaomi/xiaomiredminote5pro.html and put it into a dedicated folder in your computer.
    3. Go to the folder where you have put the twrp-file. Now open a command window inside that folder. To do that hold together "Shift + Right click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
    4. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
    5. Enter the terminal command in command line: >>fastboot flash recovery twrp-x.x.x-x-whyred.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery TWRP!
    6. Boot your device into recovery (3 possible methods)
    + by entering terminal command in command line: >>fastboot boot twrp-x.x.x-x-whyred.img<<, or
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery

    If you only want to root your smartphone, then please continue to point E.
    If you want to install a custom rom, then please continue to point F.

    E. Root Your Smartphone

    + Donwload latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
    + Put Magisk into internal memory of your smartphone or into the micro sd-card or into on-the-go memory stick
    + Flash Magisk
    + Restart your smartpphone

    F. Install A Custom Rom

    1. Download the desired rom and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick:

    a. Lineage

    https://download.lineageos.org/whyred

    b. Resurrection Remix

    https://get.resurrectionremix.com/?dir=whyred

    c. AospExtended

    https://downloads.aospextended.com/whyred

    2. (in case you want to have root on your device) Download "addonsu-arm64-signed.zip" (for Lineage: https://download.lineageos.org/extras) or latest Magisk (from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) and put it into device's internal memory
    3. Download Google Apps ARM64, Pico, Nano etc. at www.opengapps.org and put them into device's internal memory or computer or on-the-go memory stick or micro sd-card.
    4. Enter recovery mode:
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery
    5. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
    6. Go back to main TWRP screen and install the rom, install Google Apps, install "addonsu-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other roms).
    7. Reboot. That's it, you are done.

    If my guide helped you please click "thanks" and enjoy your phone. :fingers-crossed:
    3
    Ready to unlock bootloader. Just one question:

    Wipe all the data from phone is still necessary? Is there a way to avoid that? Because i come to understand that unlocking brings the phone to factory settings pretty much..
    Unlocking will wipe not only your data but also all the internal storage
    3
    Is there any reason one should choose Magisk over SuperSU to root their Redmi Note 5 running MIUI 9.6.3.0? I always liked SuperSU because it offered a quick and dirty way to determine if your device is successfully rooted or not (if it shows up in apps, it's rooted, if not, it's not).
    SuperSu was great in the old days but it was then sold to a shady company, and now in fact is no longer developed. Don't install it. LineageOS provides their own add-on su, you can use it instead: https://download.lineageos.org/extras

    Magisk has some advantages over the traditional approach: (1) it can survive system updates; (2) it keeps the system image intact, which allows passing CTS attestation (aka SafetyNet), (3) it does not interfere with OTA updates on stock ROMs, (4) it is open source (SuperSu wasn't), (5) it is being frequently updated, (6) it comes with the ability to install additional modules that enable a variety of functions, and the whole process is much simpler for the general user: in particular, it's much easier to undo any changes to recover from an unbootable system.

    Whether any of the above is relevant to your situation is another matter, you have to decide for yourself. But, for the record, Magisk comes with an app (Magisk Manager), which also tells you whether it is properly installed, and the app also lets you grant su permissions on a per-app basis, with toggles for notifications and logging.
    3
    I want to root only just for adblocking and vanced YouTube, do I need to flash lazyflasher even after flashing magisk. Shouldn't flashing magisk make twrp permanent?

    It should actually. Nevertheless try this:

    1. Your bootloader must be unlocked
    2. Download the latest "twrp-x.x.x-x-whyred.img" from here: https://twrp.me/xiaomi/xiaomiredminote5pro.html and put it into a dedicated folder in your computer.
    3. Go to the folder where you have put the twrp-file. Now open a command window inside that folder. To do that hold together "Shift + Right click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
    4. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
    5. Enter the terminal command in command line: >>fastboot flash recovery twrp-x.x.x-x-whyred.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery TWRP!
    6. Boot your device into recovery (3 possible methods)
    + by entering terminal command in command line: >>fastboot boot twrp-x.x.x-x-whyred.img<<, or
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery

    Download the latest OrangeFox twrp (in ZIP-Format) from here:

    https://forum.xda-developers.com/re...ment/twrp-orangefox-recovery-project-t3837547

    and put it into your internal memory of the smartphone (in recovery mode you can transfer files from computer to internal memory of the smartphone!)

    Now go to twrp main screen, flash the the Zip-File of OrangeFox twrp. This will make the OrangeFox twrp permanent.

    For me too was important to have root in my MIUI rom (so that I can install AdAway, Titanium, Tweaked YouTube etc.) and also be able to install MIUI incremental updates. Currently I'm using OrangeFox twrp and it works perfectly fine.
    2
    Frequently Asked Questions (FAQ):

    Question:

    My computer doesn't recognize my device. What can be the problem?

    Answer:

    1. Check your cable if it is the original one, and if not then use the original one.
    2. Check you drivers if they are installed properly and if not, then re-install them.
    3. If the problem is not with point 1 and 2 then please try another computer.

    Question:

    Can I bypass the waiting time to unlock the bootloader?

    Answer:

    No you can't. You have to wait for that time to pass.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone