yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gsunil:
recovery from twrp site shows 28mb but here the link given shows only 18.5mb why what is the difference
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ihipro:
Just download on the official web. I'm using version 3.1.1-0, and it works fine. Also MTP work.

And I'm using MIUI 8 Global Beta 7.7.13.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Pulse686:
Thank you very much exactly what I needed. I had to type "recovery recovery.img" because the name of the img was simply "recovery" in this version !

Cheers man !
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ultrapirate:
What's the difference between the recovery img file in this thread and the one on the official twrp website.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Official one doesn't have f2fs, but the thread one does.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Scarambay:
My Note 4 is currently on Global Stable 8.1.15.0, and the bootloader is unlocked. I would like to flash TWRP, root my phone and install the latest Nougat based AOSP Extended ROM.

1. Is 8.1.15.0 good enough or do I need to update MIUI to the latest 8.2.10.0 before flashing TWRP?

2. Is flashing Lazyflasher mandatory? I'm gonna use only AOSP ROMs, and probably never go back to MIUI.

3. Do I need to flash any firmware (like CM 14.1) before flashing AOSP Extended ROM?

4. What are the odds of bricking the phone? This is my only device, and can't afford to brick it.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
As far as I know, TWRP won't works with 8.1.15.0, get any other Rom and flash it.

Not really, once you boot into twrp for the very first time, swipe to allow modifications and move on. Now, if you wanna boot into MIUI again, just flash lazyflasher.zip, if you just wanna flash any Custom Roms, then backup, wipe everything, flash cm14.1 firmware first, then install Rom followed by gapps, Reboot!

^
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Scarambay:
Hey, thanks for the prompt reply. Where do I find the link for the CM 14.1 firmware?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Here : https://www.androidfilehost.com/?fid=817550096634766008
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] allrockedout:
Question so do I need to flash lazyflasher Everytime I boot into a backup of a miui ROM? Or just flash once with supersu and done thanks.

Another question, in twrp I was backing up like everything data efs bootloader modem firmware. When trying to restore I was getting errors. What's the proper way to backup ROM. System/data/boot?

I used mi flasher and restored to stable Dev ROM. Than restored one of my backups. Ran into encryption issue where lockscreen password was incorrect. Figured out how to delete lockscreen pin in twrp. Just want to make sure I'm using twrp correctly and making proper backups. Thank you
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] teosc:
Hi guys, I have Global stable v8.2.10.0 with bootloader unlocked

This twrp v3.1.1.0 is compatible?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] appman1234:
Yes.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nanchilanto:
Can this be installed in global beta ROM ? Version is 7.7.13 beta . I tried flashing twrp thrh bootloader but it says flag OK but not going in twrp , neither the fastboot boot recovery command works ? Any work around ? Appreciated if any
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Dunno about the compatibility with yours, but once you successfully flash twrp via fastboot mode, then use hardware keys to boot into TWRP of boot to TWRP command won't works.(volume up +power key)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nanchilanto:
I tried that too , it goes in to stock recovery , am i missising something here. Previously i was on RR , flashed the stock miui thrh twrp. It showed some errors and asked to reset my phone after tat i lost twrp , then flashed this beta ROM thrh miflash tool. In fastboot command says twrp recovery is sent to the system but can't able to access it. Do i have to do anything else. ? Will the bootloader relocked automatically ? If the bootloader is locked can't perform fastboot commands right ?

fastboot getvar all - shows bootloader security -- yes . Damn confusing :(:crying:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Go to settings and have a look at mi unlock status, if it's says device is unlocked then goo to go. If it's not, then unlock it first, after that try flashing TWRP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nanchilanto:
Well it says device is unlocked only :D
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Alright, you're good to go naaw!

Listen, once you flash recovery.img via fastboot, do no disconnect the device, just use command boot to recovery.img or use buttons combo (volume up + power key)

Note that I gave you the solution last time too, but this time I'm telling you to "Do not disconnect the device once the recovery flashing is done"
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nanchilanto:
I never disconnected bro , thanks for all ur responses .At work now, will try in the evening and let u know. Thanks again , really appreciate it
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Alright. :good:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] crok.bic:
TWRP 3.1.1.0 - bug with restoring compressed backups:

In TWRP 3.1.1.0 there is a bug with restoring compressed backups:

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/964

The error message during /data restoration is:

extractTarFork() process ended with ERROR: 255

Patch has already been submitted:

https://gerrit.omnirom.org/24146

Cause of the issue is:

twrpTar: Fix uninitialized current_archive_type

* current_archive_type is not properly initialized

leading to a potential random close(fd) in closeTar()

Do anyone of you know when the new TWRP will be released for Mido?

Compressed backup takes 5..6GB, uncompressed takes 11..12GB so

this is a significant difference thus I would like to use this feature.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nanchilanto:
Finally done , had to flash the stable ROM which came with the mobile , strange though. Anyways profit at last. Thanks mate. :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] exodius48:
[MENTION=6070905]abhishek987[/MENTION] Phone won't boot into system if no OS installed. Please fix this important issue.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] pakku90:
No otg support while in recovery. Any body else have this issue?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Mallikarjun Devasani:
open device manager on your pc

search for android device in your driver

click on update driver

go to install from your pc

use usb interface
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
I got a nightly update but I don't know how can I flash because I have a twrp as my recovery....any help would be appreciated ...thank you
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
2 methods for ROM downloaded through "updater" app

Method 1. From updater app

Download ROM through update app

Select update now after download completes.

It will remove custom recovery and flash stock recovery.

User data will be safe and SupurSU app will be there but no root (no binary file for root)

Method 2. TWRP recovery

Download ROM through updater app

Folder location is "downloaded_rom"

(Copy paste ROM somewhere else just for safety)

Boot into recovery

Flash ROM from "downloaded_rom" location

Flash lazy flasher

User data will be safe.

No need to backup anything before flashing ROM.

(If you want keep backup, then take backup of everything except internal storage and SD card)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] SUVRAJITBISWAS:
you can't unless you go back to stock recovery.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
Not right.. :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] SUVRAJITBISWAS:
Wow,didn't know that its possible because previously with custom recovery I wasn't able to install ota update(though not miui rom)

Anyway thanks mate I was in a delima whether to install custom recovery or not because of prior experiences.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TigerKing:
Just give thumbs up if I helped you..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] schlagg:
Hi,

Is there a way to include internal storage in TWRP backup ?

Thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ananthakrshnan10:
Hey i am unable to do that format data. when ever i select format data, it opens up but when i type my password nothing happens. like the screen froze or something. Need help asap.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] GabrielScott:
Have you tried Advance wipe > checked "data" if it works?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sehab084:
I have formatted external sd to NTFS (cause its the fastest)

so its not showing what should do?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Isley_:
It's not showing where? TWRP or in the ROM?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sehab084:
Twrp obviously

in phone it just works fine.. can you help?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhis3k:
Thats quite expected. I do not expect this twrp has NTFS/exFAT support?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dark-Coder:
Getting Error 255 while trying to restore firmware Partition.. :/

[IMG="Error 255"]http://i.imgur.com/GAulQuu.jpg[/IMG]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
That's a bug atm

You restore system, data and boot. Good to go.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] andreymixmax:
Restore system ,data and boot , don't forget flash frimware also , if after wiping..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dark-Coder:
Which Firmware SHould i Flash ..? Firmware Download Link. Because it Formatted Firmware Partition and i don't Have any Firmware file to Flash .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] andreymixmax:
Are you going to restore what rom? SrltoAre you going to restore what rom? Stock or custom Rom?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dark-Coder:
Stock.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] andreymixmax:
I don't know if stock..flash rom again
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dark-Coder:
Flashing Wolfymido Firmware solve the Problem.. :D

Restored System Data and other Partition (Except EFS and Firmware) and then Flashed Firmware wolfymido. Problem solved.

---------- Post added at 02:31 PM ---------- Previous post was at 02:28 PM ----------

Unable to restore efs partition too as well. That's a Bug too.. ? and all these restore bugs exist in RedWolf Recovery too or not.. ? :confused:

[IMG="efs2 Partition error"]https://lh4.googleusercontent.com/IY-i2OnIZ_wrMVr1QOZbrA-VHnZroZEiCfdXI03yfz8nmbsq6Lu9cZ_Uyu5XDF7c-_QwchqQdzTg5SU=w1366-h662-rw[/IMG]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ATG Droid:
Red Wolf is stable as rock. Everything is fixed
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] daddyc:
Not working on my rn4 mido. I have latest stable v 8.4.5.0 . Unlocked bootloader...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] crok.bic:
You must be doing something wrongly.. or your image is corrupted.

The latest stable is not 8.4.5.0 but 8.5.4.0 and this TWRP is working for thousands of people - incl. myself.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hardik0491:
I can not install the miui 9 ota updates with twrp recovery.

is this normal behaviour or something is wrong with my twrp recovery (i have downloaded it from official twrp website) ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shanky0129:
It's normal.....

Ota works only on stock recovery

U have to download full ROM and flash through twrp to update
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hardik0491:
thanks for answering so quickly
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ThisIsRipunjay:
Deleted Post
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Why you posting this in a twrp thread? [emoji33]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ThisIsRipunjay:
Sorry. I Opended Two Tabs On Browser.. By Mistake I Posted On TWRP Forum Instead Of LOS Forum. .. Now Removed
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Oh, alright. LOL
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abdulovic:
Hi, I would like to install TWRP on redmi note 4x miui 9 Global 7.8.18. Can I install it? Is it supported. How TO Install it safely ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mightysidy:
I can't boot into twrp. It just doesn't boot into it. It tries for a time and then boots up again. Can someone help me?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Gamma Ray:
I followed all instructions to install TWRP.

All went well, Installed lineage and got myself up and running. Great!

I then went to install magisk... Rebooted into recovery and twrp is asking me for a password to decrypt.

I did not encrypt in the first place so dont have a password... What has happened and how do i fix it?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] GabrielScott:
Go to twrp and choose Format Data.

Not wipe but FORMAT DATA OPTION
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ashishoffline:
Ask for password and ROM force encryption

I have flash latest twrp.

But it asks for password every time I go to recovery.Which ever custom rom I flash that rom is force fully encrypted, every time I reboot say enter your password to start Android and for that sometime keyboard doesn't come.

Why all this happen, is there any fix?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
It's encrypted, now all you've to do is to FORMAT data via TWRP. otherwise there's no option.

Check attached, backup your data before proceeding this.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] pjrane:
Plzz give me link of latast twrp recovery for redmi note 4 snapdragon. Thank u
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] DAusRon:
You can find it in OP
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] zohaibahd:
ys the recovery so slow to open? i mean i was using it on redmi 2 wt88047 which is a low end device and it took 1/4 the time to open to the splash screen of the recovery as compared to this one lol
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Uxair Khan:
Hi, can someone tell me if the recovery is working fine on RN4 latest Global Stable Rom v.8.5.4.0?

And what about the unknown encryption people getting when they never encrypted anything?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
Official MIUI ROM is encrypted by default.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Uxair Khan:
Thanks for your quick reply. Any fix for it?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
What do you mean fix for it? Its supposed to be encrypted.

When you first flash TWRP you have to format Data partition to remove encryption if you want to flash custom ROM's.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Uxair Khan:
I meant what he said?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
Try to format Data in TWRP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Uxair Khan:
Ok thanks! :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] lyroj0:
Can this recovery be flashed on RN4 latest Global Stable Rom v.8.5.4.0?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Uxair Khan:
Yes.

After flashing recovery, flash lazy flasher to avoid bootloop.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] MayankMathur:
Hi, I just wanted to confirm one thing -- after flashing TWRP, if some system update comes OTA, I've to normally download it from that Updater app and hit the install now, and then, the update will be done. And TWRP will be lost along with su binary, right? I'd reflash them from adb. Does this process looks good? I mean, is it correct?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] astobelix:
will try it thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ferdian14:
cant download link sir
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Link works fine, you should open with a browser.

If you want direct link here : Click me

Open with a browser.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ferdian14:
thx much sir, it is can work for any miui rom global stable?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] t-ara:
The version on 1st page and version on twrp.me official page are the same ?

https://twrp.me/site/update/2017/05/19/twrp-3.1.1-0-released.html
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
Yes it's same.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Nope, the version on twrp official site doesn't have f2f2 support, the one which is linked in the OP ships with f2fs support.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] envirojay:
I flashed RR N ROM and now I can't get to twrp recovery any more. It just always brings me to fastboot. Do I just flash it again from my PC in fastboot mode? Will doing this wipe anything off my phone? I have twrp 3.1.1 downloaded from the play store but tried to flash it from that with no sucess
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
U sure? Power button + volume up for recovery.

Power + volume down for fastboot mode.

If it's still, just fastboot the TWRP, you won't lose anything.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
So my TWRP keeps saving settings file on internal storage instead of SD, and my SD card name is some really weird very long line of random numbers..

I tried to eject the SD and reformat it in MIUI, also reformat it in Windows but it's still the same.

Does anyone know what's the problem? Also how can i force twrp to save settings on SD card instead of internal?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] envirojay:
I flashed it again from the play store app and its working now. Cheers
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] tombraga:
[MENTION=236014]sachin[/MENTION] what is the diference between your recovery link and this recovery https://eu.dl.twrp.me/mido/twrp-3.1.1-0-mido.img.html

the seconde twrp recovery has 26,8 mb and your´s has about 19 mb
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
I gave him the direct link to the thread one. (unofficial)

The one you're linked in here is of official build.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] tombraga:
Thanks, so which one you can suggest to use?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Well, both are same except the thread one has f2fs.

Use latest one from official TWRP site.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ilnanny:
sorry the link for lazyflasher-no-verity-opt-encrypt.zip

is broken .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Nay, it's fine.

Here, I've grabbed direct link for ya : Open this with a good browser like Google Chrome .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sgtgs:
I've restored my backup and now it says wrong PIN. what can I do now?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Here : https://forums.oneplus.net/threads/fix-wrong-pin-pattern-when-restoring-twrp-nandroid-backup.452384/
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] smvsmv:
Did anyone get this to work on MIUI Global 8.5.4.0? Followed all steps and flashed recovery and lazyflasher. Rebooted phone. All good. Went back to reboot into recovery and it's back to stock recovery! Anyway to fix this?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Atharkhan101:
Is this TWRP working on Android N nougat in Xiaomi Redmi Note 4?

Sent from my Xiaomi Redmi Note 4 Indian Version / Mido (Marshmallow+Rooted+TWRP+Xposed+MiUi 8 Tweaks+Gravitybox)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Yeah
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
Thank you
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nazmi28:
sd card does not get data backup. why ?

---------- Post added at 07:27 AM ---------- Previous post was at 07:26 AM ----------

sd card does not get data backup. why ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] viktak:
Is there a way to make twrp permanent?

Hi,

The title says it all.

I am new to this device, although I have flashed many others so far (some with the help of this great community).

I have been able to use the twrp in this thread to install custom ROMs, but I always have to use this command to start twrp:

fastboot boot twrp-3.1.1-0-mido.img

Is there a way to make it permanent? This command seems to have no permanent effect:

fastboot flash recovery twrp-3.1.1-0-mido.img

Thanks for any pointers!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
fastboot flash recovery twrp-3.1.1-0-mido.img is permanent.

You boot to recovery holding vol+ & power, or you can reboot directly from custom ROM (or using app like Quick Reboot but root is required)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] viktak:
I thought so too (based on other devices).

I just did this again, just in case, but the next time I booted to recovery I got back to the old one, where the little dog(?) is performing surgery on Android...

This is the command and its output that I tried:

C:\Users\vtaka\Downloads\Xiaomi Redmi Note 4x (Snapdragon)\platform-tools>fastboot flash recovery twrp-3.1.1-0-mido.img
target reported max download size of 536870912 bytes
sending 'recovery' (26812 KB)...
OKAY [ 0.797s]
writing 'recovery'...
OKAY [ 0.359s]
finished. total time: 1.156s

---------- Post added at 03:04 PM ---------- Previous post was at 02:58 PM ----------

I just noticed that my phone is encrypted (Settings/Security/Encryption). Could this be a problem?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
I think you are pressing wrong volume button and entering fastboot..

volume + & power is recovery

volume - & power is fastboot

Encryption is not problem, TWRP will work either. But if you want to flash custom ROM you have to format DATA in TWRP, it will remove encryption.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Ah yeah.

Once the fastboot flash recoveryname.img done, do not disconnect your device, just use fastboot boot recoveryname.img

Note that, once you're in twrp, flash lazyflasher.zip and reboot. Now TWRP will be stickied.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] viktak:
This is getting more and more interesting...:

No matter what combo I press at the beginning (+ or - with power), I get to the same place, with the Chinese dog.

The phone IS encrypted as LineageOS reports it, AND I run LineageOs without formatting DATA. Shall I format DATA anyway to see if it helps?

---------- Post added at 03:13 PM ---------- Previous post was at 03:12 PM ----------
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Ooops! My bad.

Yeah, it is happened to many users tho, the thing is once you flash twrp using fastboot flash recovery recoveryname.img, then do no disconnect the device, just boot to TWRP by using power button + volume up or the fastboot command fastboot boot recoveryname.img

Next, you'll get into to TWRP menu, you've to swipe to allow modifications! This will prevent over writing TWRP. Makes twrp stickied (permanent)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] k3lcior:
Go to TWRP wipe menu and select data, type yes and format it.

You must format it to remove encryption, I have no idea how you booted into custom Ron without doing it..
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Not really...

Infact, I just installed twrp, then wiped everything and installed Rom + Gapps, Reboot. It didn't ask me to enter any passwords at boot at all. (neither when I boot to TWRP).

But, it was encrypted when I set my fingerprint, then had to FORMAT it to decrypt. Ya know.

PS :You can still flash custom Rom & will boot without even formatting data.