yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Mister Advance:
Do you have an unlocked bootloader?

You can also manually load\start TWRP.

Go to fast boot and type:

fastboot boot twrp.img (i recommend to rename the downloaded TWRP image to: twrp.img)

---------- Post added at 03:28 PM ---------- Previous post was at 03:27 PM ----------

First time takes some time indeed.

Because the partitions are encrypted.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] cichy45:
Hello. My firend phone is currently running latest MIUI9 Global Stable (Android 7). Can I use the same lazyflasher dm-verify disabler that I used on my Redmi 3S or is there special version for Redmi 4X?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] xzy99:
Posting the steps to install the recovery, so everyone knows.

1-Connect your phone into fastboot mode using pc.

2-Open adb tools command prompt.

3-Type fasboot flash recovery recovery.img (recovery.img is the twrp you just downloaded, should be in the same folder from where you opened the command prompt).

4-Type fastboot boot recovery.img

5-TWRP will open. It might not detect your internal storage and ask for a password.

6-Back your storage up.

7-Then, go to wipe and wipe everything. After this your storage will be empty.

8-Since there's no os, install a custom rom and reboot.

:) Cheers
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] spartan 3697:
no option for dm verify disable...not booting after flashing this 3.2.1
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mido2011254:
i cant Download zip file of TWRP 3.2.1-0 for Redmi 4x please help me to download zip file.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ConradB:
Install official TWRP App from Playstore, and flash it true the App.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] leodelacruz:
You dont need to download the file from twrp app. Not from the window of the web browser opened by twrp app. Install the twrp app from the play store yes, but download from here https://sourceforge.net/projects/teamghost/files/santoni_twrp/

And save on sdcard. Skip the "Select device" option, and jump to "Select file to flash" Now youre done. You need must be root for do this
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] XanverSky:
Is it possible to flash the new twrp 3.2.x from 3.1.1-0?

Cuz now im using twrp 3.1.1-0 and using custom rom.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Kecoe:
Hey man , I get that password thing when I boot up the rom asop. so I cant use the rom , now i installed 3.1.1-8.0 twrp and the oreo aospex rom . What should I do ? could you tell me which twrp I need and how to install it properly , and how to make oreo rom work ? Your help would be very helpful since I cant make it work. (how to format date?and "insert 3.2.1-0" ?

Please help me :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lochNESSIE:
I haven't been through this situation but flashing a newer version of TWRP shouldn't affect anything. Do it the traditional way-through your computer, that guarantees 0 issues.

And always, have a backup of your current ROM
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] His Dudeness:
Seems official TWRP website is down...

Another working link anybody?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] carlosmovilla:
Same problem :(

---------- Post added at 11:39 AM ---------- Previous post was at 11:08 AM ----------

TWRP v3.0.3 easily installed this way: https://androidfilebox.com/tool/twrp-v3-0-3-cofface-build-for-redmi-4x/
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] leechseed:
Better go for Red Wolf by Ghost.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] His Dudeness:
Why not, will give it try. Thanks. :good:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] criticallife:
hello, can i ask on how i will flash the twrp 3.2.1
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] funnypc:
facing decrypt data failed problem also

to prevent anyone misunderstood my situation, I want to make it clear first:

what I described is NOT occurred while shift from MIUI to custom ROM but after proceed to the Settings menu and tapping on “Security" with a working custom ROM.

(I unlocked BL, flash TWRP, format data, wide all, flash RR rom with no error, before I facing this decrypt data failed problem I got RR rom running well)

after my phone encrypted, the system it self ask for unlock pattern during boot sequence and after unlock everything is OK.

but when boot to recovery, TWRP ask for unlock pattern to decrypt data, prompt "decrypt failed" with the same gesture.

exit TWRP, the system boot correct with unlock pattern .

problem remains same after I format data, wipe all, flash a clean RR rom.

so I take another test, set "swipe" only for security, then encrypt phone again from a clean system.

now TWRP ask for a password to decrypt data, since I never set a password, I tried "default_password" but decrypt failed.

all these problems does NOT happen ever on my redmi note 4x(mido) with twrp 3.2.1-0 and RR 5.8.5, which is encrypted with same pattern , twrp decrypted data successfully with provided pattern .

so I think this should be a TWRP bug? (tried twrp 3.1.1-0/3.2.1-0, redwolf, all the same)

it seems this occurred on other users :

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

https://github.com/TeamWin/android_device_nextbit_ether/issues/2

tons of... just search issues with encrypt/decrypt
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] funnypc:
after some reading on twrp decryption articles, I think the fact is:

twrp need crypto key to decrypt data

twrp must compiled with correct crypto key per device

crypto key may be removed in porting version of twrp

crypto key related to firmware from vendor

crypto key may change after firmware upgrade

please give right answer if I was wrong
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xpresso38:
Hello.

flashed succefully with app.

Thank you for the team :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] emailofavinash5:
How to flesh new twrp helpp
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] emailofavinash5:
I will flash successfully but storage not showing help
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] :
Wiipe data partion and mount all partition and flash lazy flasher
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mednazim:
Entry password when i go in twrp 3.2.1-0 how i do ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] psychoela:
I can't restore any backup from intenal storege/sdcard using twrp v3.1.1-8,anyone have issue same as me? How to fix? Thanks:)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] funnypc:
Use this oreo release, it works fine for encrypted devices. Verified on my RR 5.8.5 nougat ROM.

https://sourceforge.net/projects/teamghost/files/santoni_twrp/twrp_santoni_oreo.img/download
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] xxibeca:
I flashed my new redmi 4x and works perfect! Thx!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] :
Does it work on stock miui ,the encryption problem?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] funnypc:
never on stock miui, no clue.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rohitsonone:
I have been custom rom user for a long time now but this device confuses me,this mi flash tool thing is a bit new for me.

I'm on MiUi9 Nougat with no data encryption.

I've signed up for unlocking bootloader and still waiting for permission.Meanwhile I'm going through rom threads here and what is lazy flasher?

After unlocking bl do I have to format data and flash lazy flasher and reboot?

Do we have to flash lazy flasher everytime we flash a rom?

Second thing does latest twrp version support all versions of android?

I saw one thread where someone said in order to flash this rom you have to be on nilesh recovery or something.

Sorry if I'm sounding rude but I'm not,ive lot of questions and information is scattered over this forum if someone could point me in right direction that would be of a big help.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] leodelacruz:
Yes

This is the firmware who you need. Lazy flasher is only for downgrade to miui again

https://xdaforums.com/showpost.php?p=73602248&postcount=405

Flash this twrp version for all Android versions. Incluse roms based on asop with Oreo

https://xdaforums.com/showpost.php?p=75938137&postcount=77
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lochNESSIE:
Yes it does. Where the traditional twrp doesn't support pattern encryption, this one does.

---------- Post added at 04:13 AM ---------- Previous post was at 04:08 AM ----------

You'll need the MIunlock tool for unlock the bootloader. The flash tool is for flashing the recovery roms through fastboot.

You can either use your rooted MIUI or flash a custom rom. For rooting you'll have to flash lazy flasher and then flash your required zips because it performs a Verity check which doesn't allow the partitions to be modified.

If you're want a custom rom, you won't have to flash LF. Just queue your ROM, Gapps, root zip, and you're good to go.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MEKCHR:
hello, today i installed twrp using fastboot by the method on redmi 4x page on twrp.me and it worked but when i clicked reboot to system from twrp the phone didn't open (stuck on logo), i couldn't even power it off, i downloaded stock rom and flashed it and now phone is working fine, can anyone tell me how to install twrp correctly ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] busimus:
I just encountered the exact same thing.

What I did to "fix" it: enter fastboot (Power + volume down), boot TWRP temporarily with

fastboot boot twrp-3.2.1-0-santoni.img

command, and then just install LineageOS.

Now the phone boots into the OS properly and works fine.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] intrax:
Hi,

Pattern decryption doesn't seem to work on this version of twrp.

I have entered password based on pattern according to:

1 2 3

4 5 6

7 8 9

but it says wrong password and does not decrypt. I have no pin only pattern and runing miui global stable 9.2.4.0

What is wrong ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MEKCHR:
Hello, Thanks for replying

Is there any method to make it work on MIUI ?

I have asked the same thing on another community and they said that i should use something called LazyFlasher, do you know it or have any idea about it ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] vishalpal555@gmail.com:
can anybody tell me which twrp supports f2fs and can u provide me the link
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lochNESSIE:
Flash it through adb like you do with every other zip. As for the lazyflasher, it's used to disable the dm-verity check.

I've attached the zip here
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lochNESSIE:
Oh I'm sorry I mistook this thread for some other recovery thread.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] sochansam:
Hi. Just have two questions:

1. I am on 3.0.3 cofface, could I just flash this in update and all will be fine?

2. To decrypt my device, do I just wipe DATA? Then install my rom?

Thanks.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
To decrypt click on format data tab in wipe section of twrp
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] jiak:
Thank you for the step by step guide. Where should I download adb tools from?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] badmodder:
Are there any plans for a TWRP Version with f2fs support?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] kraken77:
Easiest way for those who are in latest miui..flash latest twrp here. boot into twrp, it will ask for password, skip it, then go to format data, type yes, flash no verity by lazyflasher(important or else you ll never boot your device, stuck at mi logo) after that reboot your device and wait approximately 10-15 minutes as we are formating our data. It could take some time..
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] love4chat:
i have not flashed "no verity by lazyflasher" yet my phone booted normally on pixel experience oreo rom!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] kraken77:
I said latest "miui" not "aosp" based roms!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] hitecold:
Will this work for Snapdragon Galaxy S8 on Oreo? I want to install magisk
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
No, it's only for redmi4x santoni device
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Sygnomi:
Is it ok if i formatted data first before installing lazyflash?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] toninovak:
HI guys, i can't see zip files on twrp.. I want to flash magisk, but my twrp doesnt see zip files..

RESOLVED, now it works, did adb sideload, installed magisk and now phone sees zip files again :good:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] T3rm1:
I read a lot about formating and installing a custom rom. I'm fine with MIUI though. Can I install TWRP on latest stock rom? I just want to flash SuperSU.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MrBurnGamer:
I need some advice guys, hopefully somebody can help me

I've got a Redmi 4X with unlocked bootloader and I want to flash NitrogenOS along with Clarity Kernel.

As I've read in this thread, when I'll install TWRP I'm going to face that password encryption problem and that dm-verity

So, in order to flash an AOSP ROM I need to perform a Data format from the wipe section? Or just type my phone password when I'm asked to do so.

Also I've read that the dm-verity problem doesn't affect with AOSP based ROMs, only with stock MIUI ROM, so I'm not gonna need to flash the lazy flasher, am I right?

Finally my last question is: In order to flash a custom ROM with a custom Kernel, do I need to wipe everything (cache, dalvik, internal storage, system, etc) and then with no OS installed I would be able to perform the AOSP ROM and Kernel installation? Or I only need to wipe data, cache and system?

Also is this recovery stable after doing all that stuff I mentioned above? I mean, will I be able to install Magisk, or mods like Dolby Atmos, iOS emoji, etc without any problems like that red FAILED message?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] T3rm1:
I just did that and it does NOT work. So now I need help please. I did everything as described on the twrp website. After rebooting I am now in a boot loop. I can only boot into fastboot now. Please help.

There should be a big warning on the TWRP page for Redmi 4X stating that 3.2.1.0 is highly broken and puts your device into a boot loop. I hope I can recover from this. I can go from fastboot into TWRP with fastboot boot twrp.img. What can I do to boot into my MIUI 9.5.4.0 again?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lochNESSIE:
Have your questions been answered?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] adolfmugesh:
Bro redmi 4 an 4x same model ????
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MrBurnGamer:
Yes, thanks
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] angel.adriel:
problem with the installation

Hello everyone

I come to this forum because I had a problem installing TWRP Recovery on my Xiaomi Redmi 4X (santoni). I have an error and I want help from you. I have bootloader and OEM unlocked and the official stable version of Miui in version 9.5.4.0. I made a screenshot so you can see the installation process

https://xdaforums.com/album.php?albumid=14915&pictureid=57421

https://xdaforums.com/picture.php?albumid=14915&pictureid=57422

https://xdaforums.com/picture.php?albumid=14915&pictureid=57423

PD: Si alguien habla español lo agradeceria
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rshbhghelani:
To boot into recovery your command should be:

fastboot boot .....

And not fastboot boot recovery .....
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
Hi all,

I have read thru this whole thread and I'm still confused as to the steps I should be using. I have a 4X with the stock miui ROM version 9.5.4. I want to keep using the miui ROM and not install a custom ROM, at least at this stage, and root the phone so I can use titanium backup.

I downloaded TWRP from here:

https://dl.twrp.me/santoni/twrp-3.2.1-0-santoni.img.html

and now when I boot into TWRP it's asking for a password. What do I do now?

Enter a password or skip it?

Format DATA?

Install LazyFlasher?

Please confirm my next steps so I do not have any issues?

TIA

Greg
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Maximuous:
You can format data.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
So no need for LazyFlasher?

Do I put in a PIN or skip?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Maximuous:
Nope skip it then format data. That should stop twrp from asking the password everytime you open it.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] KKoerli:
You are my Hero! The TWRP from Team Ghost works like a charm (https://xdaforums.com/showpost.php?p=75938137&postcount=77)

I used to get the decryption error with twro 3.2.1.0 and got either "error 7" or if i tried to fix it "invalid zip signature" with twrp 3.1.1.0.

SOLVED!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] leodelacruz:
I'm glad bro :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
Hi all,

Got my new 4X with Miui 9.5.4.0 ROM | installed TWRP 3.2.1.0 | flashed lazyflasher | reboot | flashed SU 2.82 and all working well. Selected the option to not have read-only system in TWRP.

Questions:

1. Will OTA updates now work and if so must I re-flash anything?

2. If I flash a MIUI update via recovery must I re-flash anything?

TIA

Greg
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
Just received update available on phone, so wondering which path I should take. OTA or download the zip and flash via recovery.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] SGE2010:
I'm new to this. Will this work with my new redmi 4x with stock ROM? the only thing I did so far was unlocking the bootloader.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] T3rm1:
It does not work. I tried it. I don't want a custom ROM. The phone goes into a bootloop.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
Yes u can, but need flash lazyflasher.

Flash lazyflasher after install twrp.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xda801:
1. Can I flash lazy flasher BEFORE flashing TWRP ?

2. Do I need flash lazy flasher after every OTA ?

3. Does cofface TWRP need lazy flasher too ?

4. What do I need todo after flashing stock recovery over TWRP ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
1. No, u must flash lazyflasher after flash twrp

2. For miui OTA ? Yes

3. No, u can use disable dm-verity on settings menu, in official twrp here not presented.

4. Just flash lazyflasher if u use official twrp, if u use cofface twrp use disable dm-verity instead.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xda801:
Thanks.

1. Why I can't do this before flash it ? :eek:

5. Do I also need to reflash TWRP itself (cofface or not) after every MIUI OTA ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
1. Because verify boot is checking system and partition is modified or official.

If detected official, ex : normal recovery, system, boot, etc. The boot will successfully.

If modified, ex : twrp recovery and etc. Boot will be unsuccessfully.

5. No, if update from OTA.

If you flash update rom via fastboot you need flash twrp again.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] bootslag:
doesnt have treble support
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xda801:
1. What about the case when we only boot into TWRP, change some file in system, like build.prop and flash lazy flasher without flashing TWRP itself ?

5. Will I need to reflash TWRP after coming in summer MIUI 10 GLOBAL update ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
1. Yes u can

5. Twrp is not support miui OTA, u must download update rom manually from miui website and install manually via twrp, and no need to reflash twrp again, u must install again twrp if u flash update rom via fastboot only

If u need support miui OTA, try redwolf twrp.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xda801:
5. So if I go with Cofface 3.0.3 version I will need to disable dm-verify in its options first plus after every OTA notification I will need download full ROM and flash it via Cofface itself and not from the MIUI interface ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
Yeah, after install twrp u must disable dm-verify first before boot.

And update manually via twrp not automatic from miui updater.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xda801:
There is option in the MIUI updater to update manually too from the downloaded ROM on the sd card. Will it work if it will be full rom or it can be ONLY update from the TWRP itself and nothing else?

If I will face bootloop someday, can I easily enter TWRP in this case to disable dm-verify again ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
I've been reading the past replies on this subject and wondering if having SuperSU installed changes anything?

TIA

Greg
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
Dont use miui updater if u use official twrp not redwolf.

Download full rom from miui web and install manually via twrp.

Bootloop is not fixed by disable dm-verify always, u must see your problem first.

---------- Post added at 07:13 AM ---------- Previous post was at 07:10 AM ----------

Yeah, if already installed supersu or magisk no need to disable dm-verify or lazyflasher because supersu and magisk is already patched disable dm-veritf to your boot image.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
Great, thank you.

So should I therefore only update via TWRP?

TIA

Greg
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] subhi19:
Yes of course if u use miui.

After flash update dont forget to install supersu or magisk again.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] SGE2010:
Maybe a misunderstanding here? I have a new Redmi4x global, so I guess it still has the stock rom installed. I want to have TWRP (bootloader is already unlocked by xiaomi account) and also I want to have an android rom, probably resurrection rmx or lineage.

Do I really need lazyflasher or can I follow the steps by xzy99 above?

I'm really lost and could use a step to step manual.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] aik.nayan:
Is it compatible for treble
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] criticallife:
is there a twrp build for treble ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] newbie_or_not_newbie:
Hi

What should we do if we have a custom treble-recovery & a custom treble-rom, and want to come back to official twrp & non-treble rom ?

If I flash official twrp, then wipe factory, and finally flash non-treble rom, is it ok ?

Thanks for answer !
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lejkabasz:
Hi,

Is there any solution to avoid data formation in twrp after stock Miui uptade?

There is an uptade package which swap recovery to a stock one.

After flash twrp via fastboot i need to make a data formation to get recovery able to mount internal storage. This operation wipes out my ROM which i dont want to.

Any clue?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] otto81709:
how to flash

how to flash i dont have any recovery to install it:confused:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] phreakenstein:
Use adb on a PC to push recovery or twrp app if you have root
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] umartanweer:
Without any loss of internal storage,, how to install twrp recovery??
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] andrejohn:
can I use this twrp for aex 5.8 oreo?