yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ashm@123:
Use from the mentioned link.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] juned.khatri31:
Flash 8.2.1 zip from recovery
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shaijuvjohn:
[MENTION=5768037]Isley_[/MENTION] I found an easy method to keep twrp while updating rom from ota. When ever ota comes you need to download it but do not update from updater app. After download reboot to twrp recovery and flash the update zip. Whenever an official miui update is flashed, it replaces twrp with stock recovery. So after flashing miui update zip, immediately flash twrp from twrp itself. You need to select "flash image" option and select twrp image file. (You should have twrp image in storage). Proceed to flashing it will ask to select which partition to flash the image - select recovery partition and confirm. Then it will flash twrp again. After flashing twrp image, press volume up and power keys and boot to recovery again. Do not reboot to system. Then flash lazy flasher zip file. It is important to flash lazy flasher otherwise miui will not boot and it will stuck at mi logo. Reboot to system after flashing lazy flasher. You are done. This is the method to flash official miui update and preserve twrp on update. I follow this method and it always works fine. No need of flashing twrp again from computer. It keeps all apps and data. If you need su, xposed etc just flash the resective zip files. :good::good:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Isley_:
Alright, after flashing TWRP from TWRP itself can't I just flash the lazy flasher afterwards? Or do I have to turn the phone off and enter recovery mode again?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shaijuvjohn:
I am not sure, i didn't try that. I follow rebooting to twrp and flashed the lazyflasher and reboot to system. You can try.:p
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ajiljacob96:
"failed to mount /data (no such devices)" also " failed to mount storage"

rebooting leads to recovery itself

all this after i accidently wiped the entire data and storage trying to decrypt data, now trying to flash aosp rom with SD card

please help, a total noob here
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ashm@123:
Go to recovery.

Then connect to ur PC transfer the ROM.

And flash
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
Check video tutorials on YouTube.. if you don't know anything..

Search "Use MTP in TWRP recovery"

Etc etc
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
It has been fixed a while back. :p
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
Abhishek has modified this one after the release of official 3.1.1-0. This one supports F2FS while the one on official site doesn't.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Isley_:
Okay, thanks for the info.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
There are videos of Redmi Note 3, from "Dhananjay Bhosle"

He did flashed MIUI update using TWRP without loosing any data and custom recovery + root.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hadiyalkishan:
hello i want to flash miui 8.2.10.0 multipro rom but after flash Device always boots into recovery.

i tried many ways like shut down and restart reboot to fastboot but it cant boot to system.. only boot room is 8.2.7.0

tried cofface 3.1 and this one also..

plz help me
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
I think you need to flash lazyflasher.zip before rebooting.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hadiyalkishan:
Already flahsed lazy flasher before reboot.

But problem is not solved.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] naren12:
Did u flashed wrong ROM? I mean what is ur device,mediatek or snapdragon?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] schlagg:
Hi,

I successfully installed TWRP and now I can enjoy any custom rom I want.

Thanks again.

But I have a small question :

Why every time I reboot my phone, I have a TWRP notification who reclaim to update TWRP App ?

Why do I have a TWRP App? Isn't TWRP used only in recovery mode ? Can I remove it safely ?

Thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] bluviper:
so, what version with MTP working for RN4X? when MTP is working, does this mean i can flash unofficial MIUI roms without UI errors?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhishek987:
Hey guys twrp has been updated to 3.1.0 and with it it goes official as well, I have fixed mtp for more changelog refer to https://twrp.me/site/update/2017/03/10/twrp-3.1.0-0-released.html

And You can grab latest build at https://twrp.me/devices/xiaomiredminote4.html

Twrp is common for both redmi note 4 (sd) and redmi note4x just like rom :)

#Happy_flashing :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] invincible authority:
Wow man! Thanks a lot :)

One question though; now can we flash miui dev/stable full rom and incremental updates through TWRP?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shaijuvjohn:
For those who were in old version of twrp and flashed this latest one and still MTP is not working add the following in build.prop and restart. Works fine.

(I was on twrp 3.0.3-0 and after flashing 3.1.0 also mtp was not working, added these tweaks and worked fine)

persist.service.adb.enable=1

persist.service.debuggable=1

persist.sys.usb.config=mtp,adb

Better to use bulid prop editor app to add these tweaks from phone itself. Root permission required for this app. Here is the link - https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor&hl=en

Otherwise you can edit the build.prop file using notepd++ in pc - https://notepad-plus-plus.org/download/v7.3.3.html

All credit goes to the OP [MENTION=6070905]abhishek987[/MENTION]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ts1506:
Anyone confirm it working on 8.1.15.0 Stable ? Been reading that the stable ROM has issues.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] yash8796:
[MENTION=6070905]abhishek987[/MENTION]

Does this recovery supports incremental updates? Just like ZCX recovery for rn3?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] suhas.holla:
Awesome!! Thanks for your great work. Keep it coming
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] dingillaa:
Perfect!!!

Изпратено от моят Redmi Note 4 с помощта на Tapatalk
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] trip007in:
I am on MIUI Global Beta 7.3.9 android version 7.0 NRD90M. Can I flash this version of TWRP safely without getting into any issues like boot loop or MTP mounting error or flashing the OTA updates? I will hold myself until someone confirms this. Thank you for bringing this to our device.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gsunil:
Can we flash stock recovery rom with this version twrp
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] rezesius:
I'm unable to backup the Bootloader partition as it crashes the entire backup procedure and it proceeds to delete the entire backup as the last section failed. I've attached the image of the error below. This is error was found in official TWRP 3.1.0.0
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] rezesius:
The log file
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] trip007in:
Did you try this fix?

persist.service.adb.enable=1

persist.service.debuggable=1

persist.sys.usb.config=mtp,adb

Which version of FW are you using?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] rezesius:
Firmware is from MIUI 7.3.2 Global Beta, current ROM LOS 14.1. This isn't an mtp issue.

It looks like the partition /hyp is the one causing the issue. It's a configured as a subpartition of aboot
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] CraftyPie:
Can anyone confirm that this can be flashed on 8.1.15 global?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] trip007in:
Yes, Just read the Log posted by you. Are you able to flash ROM.zip? But not able to back up, is that right?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] rezesius:
I'm able to backup if I exclude Bootloader. Just that option causes everything to fail. Flashing zips seems to work perfectly
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] trip007in:
Ok. Thanks for reporting. Would be useful for other users here, probably we can find a fix.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Ravi Kumawat:
MTP is not working in MIUI only or it is also not working in los/rr? Which supersu should I flash on rr or los to get root and mtp working?

Currently I'm on MIUI 7.3.9, official twrp and phhsupersu and mtp is working.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shaijuvjohn:
Mtp is working fine now in miui also. I am using chainfires su, root works fine. You need to enable build prop tweaks if mtp didn't work after flashing twrp 3.1.0.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sevenlife:
You can unistall the app safely. It's installed from your recovery ( you probably didn't noticed and confirm to install when you were prompted).
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] schlagg:
Ok thanks :)

I have just one other question :

How I can boot or reboot the phone directly to TWRP ?

I'm under LineageOS 14.1, and if I click on "reboot recovery", the phone reboot to the "Mi PC Suite" screen (with a phone / usb cable picture)

The only solution I have is to reboot on fastboot and made a fatboot reboot recovery.img

Thanks a gain.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Turn off the device and press and hold power button + volume up, it'll boot to TWRP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] schlagg:
Unfortunately nop :(

I have the same "Mi PC Suite" screen as with the LOS "recovery reboot"

http://i.imgur.com/3kHwTVi.jpg
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Then Reflash twrp using fastboot command
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] schlagg:
Yeees,

Finally its works with a TWRP reflash.

Thanks dude.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] maxxx83:
Just to be sure...after changing roms always reflash your twrp after you flash rom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Eh, no need for that.

Just swipe to allow modifications when you first time flash twrp, way to go.

And yeah, reflashing may be required when you flash MIUI using TWRP. I could be wrong tho.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] appman1234:
It's no need to reflash TWRP after flashed MIUI. I myself did it many times, no problem at all.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Eh, thanks for the heads up and yeah I never flashed stock MIUI using TWRP, that's why I wrote I could be wrong tho [emoji14]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mangesh511:
can i flash latest twrp on miui 8.2.10 ? is it working without issue?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] appman1234:
Yes. Make sure you also flash either lazyflasher or SuperSU after flashed the rom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] xander21:
Lazyflasher install or not?

Im not install and everythings working.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Flash lazyflasher.zip if you wanna boot to Miui when you flash TWRP. Otherwise no need. And it doesn't required for custom ROMs.

AFAIK, if you flash supersu there's no need of lazyflasher on miui too.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] night_mare:
I'm not able to flash twrp... Please help guys.

After flashing twrp(even tried one from official website) it says installation was successful but when i try to boot into recovery it says as shown in the picture... I don't know what I'm doing wrong
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
Type this:

fastboot boot recovery.img
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Once it's successful, do not disconnect the phone, just use manual method to boot into TWRP. ie; power key + volume up.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] night_mare:
Wow... You are just awesome.. thank you very much
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nandakalyan:
dear all, I am constantly getting a "extractTarFork() process ended with ERROR: 255" sometimes on Data partition and now, since the last 2 tries on "firmware"....can some one help on how I can fix this? Thanks!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] black_is_colour:
anyway (sorry for being off-topic), what to do if i can't directly boot into TWRP?

and, how to boot into it directly after flash? *noob here*
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Fastboot command should works, use

fastboot boot <whatevertherecoveryname.img>

If that won't works then try this - Just use hardware keys combo to boot into TWRP once you done flashing twrp.img using fastboot command. volume up + power key.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
When you flashed TWRP in fastboot mode, then press volume up and power button.. it will boot into recovery..

OP not mentioned this important thing..

After flashing TWRP in fastboot you need to go from fastboot to recovery by VOLUME UP + POWER BUTTON

Otherwise (booting/restarting device) you will have to flash TWRP recovery again..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] black_is_colour:
okay, then how to force it into fastboot again after bootloop?

another question, the lazyflasher must be placed at the sd card, isn't it?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
When you flash recovery, you need to flash lazy flasher, (search lazy flasher 5.1 no varity check.zip file posted by other user in this thread, check recent posts, it will not create problem for usb, if you are flashing this zip for the 1st time)

Bootloop, then only option is hardware button combinations. Volume + power.

Lazyflasher in any folder will do just fine. But it's recommended to put it in ROOT FOLDER.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] v1da:
Can anyone give me correct Supersu?

Because I find many flashable supersu, but I don't know which one should I flash.

I'm on MIUI 8.2.5.0 Global Stable.

Thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] appman1234:
https://xdaforums.com/showthread.php?t=3452703
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] v1da:
Thanks

I successfully flash twrp.

Can I take a nandroid backup without root with this twrp recovery?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] appman1234:
Yes, sure! Why asking?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] v1da:
Thanks/ :o

I'm asking because it is said "device has to be rooted" to take nandroid backup through twrp. Here
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] devilhunter47:
Rename your twrp img as recovery.img

fastboot flash recovery recovery.img

fastboot boot recovery.img

You'll boot into twrp. Flash lazy flasher and touch reboot system option from twrp. You'll boot into miui.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Don't worry about those tutorials, sir.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] v1da:
Thanks alot :o

One question sir sachin n, when doing backup, which partitions should I check?

All partitions or default without checking others?

If all checked, which partitions should be restored? and how important each one?

The reason is I want to flash custom roms, but afraid of bricked. :eek:

I search my questions in others, but not found yet.

Thanks :D
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
First off, it's kinda buggy takin nandroid and restoring on mido.

Exclude the bootloader partitions, backup everything.

Restore data / system /boot (never tried backup and restore on my Mido tho :p)

Important incase of fruitloop(bootloop) situations. Just restore backup and good to go.

BTW, as long as youve twrp nothing to worry about bootloops or whatever lol

Nah, if you're coming from Android MM based MIUI, then flash cm14.1 firmware before flashing any Nougat Rom + Gapps.

Good luck!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] v1da:
Super Thanks, Sir :D

Appreciate your works
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
^sorry but wrong quote for wrong post..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] coolsem:
I have 1 question....

after flashing twrp and rooting device and booting into MIUI if again i want boot into twrp, should i need to reflash twrp or just by key combination will take me into twrp....or it need again fastboot mode to boot into twrp...???
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Flash TWRP > flash lazyflasher.zip > reboot!

Now TWRP stickied. No need to reflash TWRP again, just use button combo to boot into TWRP Again.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nandakalyan:
Any help pls, sorry for bumping this up, seem to find no help otherwise :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hoehm72:
Remove device encryption before flashing TWRP

I had a similar problem today (just got my RN4 last week and today I could unlock bootloader). My problem was that my device was encrypted (company policy) and I couldn't flash TWRP with fastboot. After I removed the device encryption, all was good and now on TWRP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] geekmanoj:
okay..a dumb question here. I have flashed the recovery.img . Now, how am i supposed to reboot into recovery mode? the adb commands didn't worked for me.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ForgottenDude:
fastboot boot recovery-mido.img

Instead of recovery-mido, put the actual file name.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
If adb command didn't worked for you, do not disconnect the device, just use hardware keys and boot to TWRP. ie; power key + volume up.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] geekmanoj:
Actually I've passed that step i was asking about flashing the lazy script. Anyway I've solved the issue myself. Thanks :)

---------- Post added at 04:42 PM ---------- Previous post was at 04:42 PM ----------

Thanks very much.

---------- Post added at 04:47 PM ---------- Previous post was at 04:42 PM ----------

Actually for flashing the lazy script i used adb command to reboot into recovery. After flashing the script the hardware keys combination are not working. The thread says it will work after flashing the script. Any help?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Interesting, do it again, Twrp gone I guess.

fastboot flash recovery recoveryname.img
fastboot boot recoveryname.img

Note that, do not disconnect the connect once you successfully flash twrp, use the second command to into twrp, or hardware keys combo.

Once you're in twrp, flash lazyflasher.zip, flash super su (latest one), then reboot from twrp. This will helps sticking TWRP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] geekmanoj:
Will try. Thank you
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] bigpavmate:
I have a frustrating issue.

After booting into fastboot mode, I type the following commands where recovery.img is the TWRP mido image. I also have lazyflasher and SuperSU on my SD card, but onto that later...

I type :

fastboot flash recovery recovery.img
fastboot boot recovery.img

The phone boots into TWRP perfectly. I then flash the lazyflasher zip file. However when I try to boot back into recovery, the Mi logo briefly appears, then nothing... black screen.

So at the moment, I don't care about what is on internal storage. I went to wipe-->format data, then rebooted straight into bootloader to try and flash TWRP again. However this also gives me a black screen when I try and boot into recovery after installing Lazyflasher. I tried again, however I also flashed SuperSU immediately after lazyflasher. Rebooting into recovery from TWRP gives me a black screen again.

Should I perhaps try to flash a custom kernel? I am lost for other solutions.

TLDR: TWRP unsuccessful after: fastboot flash recovery, then fastboot boot recovery.img, then flashing lazyflasher, followed by flashing SuperSU, then choosing Reboot-->Recovery.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
once you're in twrp, just install either su or lazyflasher. And try again.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] bigpavmate:
Tried that multiple times. However, after using fastboot + xiaomi flash tool to flash the latest global stable rom, it worked.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] v1da:
What is the difference between lazyflasher-no-verity-opt-encrypt.zip and no-verity-opt-encrypt-5.1.zip?

In MIUI Forum (and may be other), it is mentioned to flash no-verity-opt-encrypt-5.1.zip, but no lazyflasher.

They are

different file sizes

, might not be exactly same. I thought there'd be different things between them.

Thanks.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] asusm930:
iirc lazy flasher does more than disable no verity. It repairs permissions/encryption as well. Not sure tho
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] kuprakupret:
Why can not I boot into recovery via updater?

When I choose recovery via updater always go to miui rom not to twrp recovery?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gaki25252:
do you know why every time I reboot to recovery using button or power menu, there is a delay is almost two minute on TWRP splash screen, anyone? I use the latest ver
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Isley_:
I have a delay of about 30 seconds to one minute. Though I don't know why that happens.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gaki25252:
I tried to reflash TWRP but no luck
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Didn't tried latest twrp, but it's fine with the older version here.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gaki25252:
do you know what's the delay problem on latest ver?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Dunno. Sorry.

I suggest you to either Reflash twrp and see if it's get fixed or change Rom or roll back to previous one until there will be an update for TWRP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Ganu231:
Have a problem while flashing just try this

Use the following line in sequence

Fastboot flash recovery recoveryname.img

Fastboot boot recoveryname.img

Now it boots the twrp then select the install-->select image-->locate the twrp img file-->finally flash it as recovery.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] bullwink:
Cant Access TWRP

Thanks for the great documentation and information., in spite of it I was able to do something wrong. I was able to unlock my bootloader, and install RR 5.8.3 on my new Redme 4X MIU 8.2.1. It appeared that I installed TWRP 3.1.1 correctly during the process, and as I said I was able to install RR and it appears to be working fine. The problem is that I cant get into TWRP now, when I restart to recovery or bootloader I get the devices original fastboot icon. When I attempt to restart with vol up and power, I also get the old recovery icon.

Any idea where I went wrong and how I might correct the problem.

I unlocked bootloader, flashed , twrp ,wiped cache, flashed lazyflasher, wiped cache then installed RR5.8.3 and Gapps.

thanks, Ken
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Oh, stock recovery overwrote twrp.

Now, if you've root already, just DL flashify app from Playstore and flash recovery.img (twrp), choose flash 'recovery.img' section. Once the flashing done, it'll prompt to reboot to recovery, say yes > reboot recovery now.

Once you get the twrp hands-on, choose swipe to allow modifications from the very first menu, this will helps sticking twrp. Its done? Now, reboot to system from twrp. That's it.

If you don't have root, fastboot the twrp again, after flashing recovery.img use command (fastboot boot recovery.img)or buttons combo (volume up + power key) & boot to twrp, from twrp choose as I said ^ swipe to allow modifications, at last reboot to system from twrp.