yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] FloorFox:
i flashed recovery and lazyflasher. Now i need supersu. Do i just go ahead and flash the systemless one?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] 1marcelfilms:
On my redmi note 4 global i can no longer connect it to usb with my computer with android running. but it connects fine in twrp.

What could be the issues?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Bowan2016:
Xiaomi Redmi note 4 3/64 mtk

Oficial twrp???

On my device is the official TvRP of the recovery ??
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] jodo_c:
Usb debugging is not working for me after I install TWRP. And MTP only works when I add those three lines in build prop.

I am on MIUI 8.2.4 and official TWRP 3.1.0.0.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Kronos_4:
I am on MIUI 8.2.4.0 and recently unlocked bootloader and my question is that this recovery will work on my 8.2.4 stable version , right ? No bootloops ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] JackSparrow17:
After flashing TWRP directly boot in to Recovery without rebooting phone....
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] itsmedRb:
twrp unable to mount data partition
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nikkee16:
I am using redmi note 4 snapdragon on miui global beta 7.4.2. I flashed this recovery properly with the adb tool but when I am trying to go to the recovery, it is taking me back to the miui recovery not the twrp. can you please help ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Eh, it's your fault.

Follow my steps to boot to TWRP ~

Fastboot flash recovery <whatevertherecoceryname.img>

Once you get the successful flashing, then - do not reboot your phone, keep it connected then -

Fastboot boot <whatevertherecoceryname.img >

^^
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nikkee16:
thankyou so much sachin... that method worked out. ???
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ala_mo:
congratulations!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] pranjal71:
Can you help us to install ota updates just like zxc twrp [MENTION=6070905]abhishek987[/MENTION]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] RSBluee:
USB OTG is not recognizable after flashing TWRP. I am using MIUI 8.2.4.0 Global Stable ROM.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vence.andersen:
I'm not able to unlock the bootloader since I said something I tried to do it but I find a pop in Chinese which I don't understand....
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] arjunknair:
update to developer rom by flashing the latest build through updater app.

then try this

its common error
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vence.andersen:
Sorry I don't know how to do it..??
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
That's a common error, ignore it.

No need to flash either dev rom or whatever the Miui rom,, just wait few days you'll get it unlocked on stable rom too.

No need to flash dev rom dude, wait another 4-5 days, do no try every now and then, let Xiaomi servers sync up your device's details, try few days later.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] arjunknair:
may be you can wait 4-5 days as per another suggestion here.

i did it by moving to developer rom. you can check youtube, there are many tutorials
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PITERQ:
After flashing twrp on my note 4, the device not boot. Only "mi" logo appear for 1 sec and than black screen. I cant enter fastboot, recovery or download mode... Just great...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Happened to me, read this thread , you'll find the fix.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PITERQ:
But i cant go to fastboot mode with volume down + power key. It looks like the phone is always on wiht this black screen - i must hold power for 10sec to restart it, but then it vibrates and logo show up only for half second and again black.

No key combination is working.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Hmm, it does work for me.

Long press power + volume down, it'll boot to fastboot mode.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PITERQ:
It works now, thank you! Flash xiaomi.eu and it boot :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
wew, i'm glad you fixed it. :good:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] kn1g:
I don't get why I need lazyflasher... I actually just put the TWRP on it and rebooted. It still works. I can boot my MIUI 8.1.15.0.

Do I still need lazyflasher?

Actually I just want to install the xposed framework and that's all
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
You've to, but dunno you got your device booted without it.

Anyway, if you flash super su, then you've to flash lazy flasher at least, otherwise device won't boots.

Flash su, then lazyflasher.zip, reboot.

Boot to TWRP again, flash xposed framework.zip, reboot.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] JackSparrow17:
I have never flashed lazyflasher, But every time booted MIUI successfully....
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
kek, I think we've to flash lazyflasher.zip only if we flash super super zip. otherwise no need of it.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Ankan53:
Hello everyone.

I have problem rebooting to TWRP after successful flash is says: FAILED. (remote: dtb not found)

My phone is Redmi Note 4 international sd625

And I have unlocked bootloader with miui 8.2.4.0 global stable. What I'm doing wrong?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ForgottenDude:
<deleted>
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] JackSparrow17:
Why u deleted? It was very good thought....:highfive: Lol
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] syl0n:
Do i need to always boot into recovery from fastboot ? I can't seem to be able to boot with volume up + power. I have flashed the lazyflasher but hasn't helped at all.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ForgottenDude:
Because he already did that. See his ss.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] pritzzy:
No need to flash lazy flasher even for SuperSU, it works without doing so
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Alright, alright...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] teosc:
Halp me please.

Note 4 Global (SD) with MIUI 8.1.15.0.

I was in TWRP and flashed lazyflasher and supersu. I clicked reboot but phone did not go on. If I hold power on long enough (7 sec or so) it just shows Xiaomi logo for a split of second and then go off.

I also clear cache/dalvick without result.

How do I resolved it?

I do not care about flash custom room and I want to stay with my MIUI 8.1.15.0 with only the root

Thanks so much
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Here I come.

So, did you tried what I said in pm?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] teosc:
Hi sachin n, thank you so much for your willingness and kindness.

I read the pm but i have 2 questions:

1. I do not know where to find this firmware.zip file

2. To unlock my phone I need to flash to custom rom? Mandatory? Can i not stay with the MIUI 8.1.15.0 Global Stable?

Thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
OK -

1. Your device isn't booting, it's just pops up mi logo when we long press Power button.

2 . You said you've flashed super super su and lazyflasher.zip via twrp, means you've already twrp installed + running on an unlocked bootloader.

So, the solution?

I'm telling you one thing that, I don't know about flashing Miui roms, I'll suggest you to flash custom rom, there after you can flash Miui once you gets your device booted successfully.

Now, download these files ~

*. Firmware.zip

*. LineageOS 14.1 latest build

*. Gapps

And Put em' all inside your SD card, Insert your SD Card to your device. Booting into fastboot mode? - Use this combination ~ Power key + volume down.

Then, go to fastboot mode and type fastboot boot <whatevertherecoveryname.img> give it some time, it'll boot to TWRP.

Once you gets twrp, from twrp choose wipe > advanced wipe > wipe everything except internal and SD card > then go back to main menu of twrp choose install» choose downloaded firmware.zip flash it, once it's done, locate unofficial LineageOS rom.zip and let it flash, it done? Then at last choose gapps.zip, flash it.

After this process, hit reboot.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] devilhunter47:
Twrp is not compatible with 8.1.15 miui version. You can flash another miui version of miui zip available in official website and lazy flasher and you'll get your miui back. Any version other than 8.1.15. And next time do some research before flashing
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Android-UK:
Sorry forgive me for asking. But does mido mean a certain version of android or can I just go ahead to flash this to my redmi note 4 global version? Thanks

Just don't want to brick it in error
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] devilhunter47:
Mido is the codename for redmi note 4 snapdragon version
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Android-UK:
OK thanks for explaining that to me. I just check and can see I can't flash this using my current rom version. Will any other version on? Or do you have a particular one to recommend?

It's a shame MIUI great in many ways but it's notifications and phone app are useless. Prefer to get something better :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] h0LLe:
hey guys, i just unlocked my bootloader officially and flashed twrp. as i entered twrp, i couldnt wipe anything because nothing could be mounted. so in twrp i reflashed the same recovery.img via flash image ... now i successfully flashed rr nougat rom. now i wanted to backup but i always have an error at the end of the backup. i checked every partition to backup, at the end the message occurs:

Backing up hyp...

Error opening: '' (No such file or directory)

Backup failed. Cleaning Backup Folder.

whats wrong?

partitions which i wanted to backup:

system

data excl. sotage

cache

cust

recovery

boot

EFS(6mb)

firmware

persist

bootloader

EFS (1mb)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
That's a bug with twrp atm, wait for an update.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] h0LLe:
So no backup possible at the moment? Because there are files in the backup folder.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
I tried backing up Miui rom while flashing custom rom, it gave me error, so I took efs backup only, didn't tried taking a nandroid backup on any Custom roms yet. Will let you know about it.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] h0LLe:
Tried it again, I choose the above mentioned partitions plus both EFS partitions and had no error during backup. Dunno which partition let the process fail but now it works.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ForgottenDude:
The bootloader partition makes it fail.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] h0LLe:
Yeah that worked. Excluded only the bootloader partition and the backup was possible.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] xiaomengyy:
thanks
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Marvinpatel38:
Due to a bug in twrp i can only backup if i exclude bootloader.

Now let's say i messed up my device doing something....now if i restore my backup(bootloader excluded) would the ROM boot?

Will excluding bootloader from backups affect anything while restoring those backups?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Mr.Crucial:
Yes it will boot
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Green Denny:
Nice share, like always for Kenzo in epic Rom.. now move on to Mido.. thank a lot
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhishek987:
ohk guys time for update :p

CHANGELOG

Updated to nougat encryption Blobs

Fixed Partition Backup Issue

Fixed minor lags...

..what else you expect from recovery :confused:

Links are up in op enjoy ;)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] itsmedRb:
How to update in TWRP?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Kuttoosssan:
Select Install Img in twrp and select this recovery.img file.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] earl520:
guys. i want to ask. Im in Los right now. What if I want to try Miui 8, can i flash the Miui 8 Rom in twrp?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] jazzh:
What is the version number?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] alokt27:
I'm running global stable 8.2.2 and apparently I am not able to flash twrp recovery here is my admission command list.. there is no recovery directory .. can anyone help me what I am doing wrongView attachment 4136082
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] cletusarrarr:
recovery is successfully flashed, power off your device , hold volue up n power till it vibrates and you will be in twrp
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Mr.Crucial:
If after installing twrp i flash supersu, then is there any need to flash lazyflasher
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ForgottenDude:
No. Chainfire SuperSU does the job of Lazyflasher.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] tiberio1972:
I have redminote 4 mido with miui global stable8. 2.4.0, can i use this guide for root e twrp? There's a problem?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] suhaild:
Yes. If ur phone is unlocked u can use this guide
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] abhipanthi:
Thanks [MENTION=6070905]abhishek987[/MENTION]...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] tiberio1972:
I can use the recovery. Img of 1 post? Is it the version 3.1? Excuse me for the bad english
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
This - https://www.androidfilehost.com/?fid=673368273298951793 & yea, it's.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] harisbudi:
Does this work in rom MIUI Global Dev 7.4.27?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] suhaild:
Yeah.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] iamnuub:
Flashing miui from twrp gave bootloop.

Flash fastboot image via miflash tool.

---------- Post added at 10:30 PM ---------- Previous post was at 10:27 PM ----------

Try fastboot boot recovery.img
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] thb2602:
Hi jazzh,

when I boot only temporary into TWRP in order to backup and install magiskSU, do I still have to unlock bootloader in advance or is this only required for installation of a new ROM?

If unlocking is required: Older posts say I have to go to DEV Rom 7.2.16 (due to MM) and later upgrade to latest DEV Rom (on nougat) and then unlock.

Some recent posts say that unlocking is also possible with latest stable Rom. So I assume this latest Information is valid (unlock even stable ROM)?

Thanx!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gaki25252:
I have a question: why all the custom rom for redmi note 4 refuse to boot to recovery via shutdown menu and had to press power an vol up manually?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Was a bug with custom rom. Still running LineageOS 0423 build, working fine here.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] jazzh:
Yes, unlocked bootloader is required. I don't know anything more about unlocking i got mine already unlocked.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Atharkhan101:
Not working on 8.2.4.0

Hello to the awesome team,

I'm on TWRP 3.1.0.0 on my Xiaomi Redmi Note 4 with MiUi 8.1.10.0 and there are 3 updates already released and the latest is 8.2.4.0. I really want to upgrade my phone to latest version but i can't because the TWRP will not work as people are reporting. Could you please release an update of TWRP so that it can work on 8.2.4.0.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] karungrover:
TWRP is working fine. I also bought the RN4 with 8.1. It got Auto Upgraded to 8.2.4.

Latest TRWP release is working fine. Only issue was, Phone not booting in Recovery Mode by Using Volume Up Button. So i used below command in fastboot mode only in Command Prompt.

"fastboot boot recovery-mido.img"

phone will boot in recovery after few sec.

Then you can install lazyflasher and SuperSu.

Wipe Dalvik and Cache also.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mospies:
thanks :D:D
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] _dweee:
So I've just unlocked bootloader and flashed TWRP, I also used the LazyFlasher thing people have linked in this thread, I tried restarting and it comes up with the normal MI logo for less then a second and then shuts down, I can get into fastboot and then boot into TWRP. Is there anyway to fix or should I just reflash MIUI? Also I have MIUI encrypted so I don't know if that was the problem.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Plz read this thread - https://xdaforums.com/redmi-note-4/help/bricked-device-t3589298
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] _dweee:
Is it not possible to remove the LazyFlasher thing so I can just boot back in? I'd rather not lose my things.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Never really know, you cant just get rid of lazyflasher, all I suggest you to recover your phone first then you can flash Miui again.

About your data, it won't get wiped, you just follow the thread I've linked a while ago and recover your phone with yo data as well.

Guide to recover your phone [MENTION=5032875]dwee[/MENTION]e ~

OK -

1. Your device isn't booting, it's just pops up mi logo when we long press Power button.

So, the solution?

I'm telling you one thing that, I don't know about flashing Miui roms, I'll suggest you to flash custom rom, there after you can flash Miui once you gets your device booted successfully.

Now, download these files ~

*. Firmware.zip

*. LineageOS 14.1 latest build

*. Gapps

And Put em' all inside your SD card, Insert your SD Card to your device. Booting into fastboot mode? - Use this combination ~ Power key + volume down.

Then, go to fastboot mode and type fastboot boot <whatevertherecoveryname.img> give it some time, it'll boot to TWRP.

Once you gets twrp, from twrp choose wipe > advanced wipe > wipe everything except internal and SD card > then go back to main menu of twrp choose install» choose downloaded firmware.zip flash it, once it's done, locate unofficial LineageOS rom.zip and let it flash, it done? Then at last choose gapps.zip, flash it.

After this process, hit reboot.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] _dweee:
Well I had to wipe it and start from fresh MIUI Dev Rom but now it's restoring the Google and MIUI device backups so hopefully it's fine *phew*
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Ahhh alright lel
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] besnaglista:
Hey guys, has anyone had problem with backup? I cant seem to back up current rom, RR. But for some reason, i could back up miui global dev with 3.0.2.0 ver. And also, with that ver i couldnt back up this RR, i flashed 3.1.0.0 thinking it would help but no.

Also, i tried backing it up to otg micro sd 16gb, and internal storage 10gb free. Im backing up everything except data, and it should be arround 2gb backup.

Tried with and without compression, with and without MD5

Below are screenshots

View attachment 4143038View attachment 4143039
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Android-UK:
Hi,

The camera appears to be broken. Just states "Can't connect to the camera"

I can't be the only one with this issue?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PriPhaze:
It seems that you checked all the boxes to do the backup... usually you just back up system, data and boot (they are checked by default)

And then do a backup of EFS and the rest separately and ONLY restore them in case you need and have problems, is just a safety measure .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] besnaglista:
Yes, i checked all. I had free sd card and wanted to be sure so i tried to back up everything, just in case.

I tried now with system, data and boot and its done.

But, is that enough to restore rom, in case of emergency? Or do i need to back up rest also?

Thanks in advance.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ForgottenDude:
Don't backup Bootloader. That causes the issue.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] kn1g:
Hey, the TWRP version for the Redmi Note 3 had OTA support. Is this also possible for the Redmi Note 4 or are there technical limitations? :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] luminouche:
Hi

Received today my RN4 Global

Bootloader unlock, TWRP installed, data wiped, supersu installed too, ready to root... But it fails.

When rebooting MIUI screen appears less than 1 sec, then black screen, and no boot.

What's wrong in my procedure ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Wew. You got me there.... Lemme link you my post.. Wait

Edit :- try this, it'll fix the issue.

OK -

1. Your device isn't booting, it's just pops up mi logo when we long press Power button.

So, the solution?

I'm telling you one thing that, I don't know about flashing Miui roms, I'll suggest you to flash custom rom, there after you can flash Miui once you gets your device booted successfully.

Now, download these files ~

*. Firmware.zip

*. LineageOS 14.1 latest build

*. Gapps

And Put em' all inside your SD card, Insert your SD Card to your device. Booting into fastboot mode? - Use this combination ~ Power key + volume down.

Then, go to fastboot mode and type fastboot boot <whatevertherecoveryname.img> give it some time, it'll boot to TWRP.

Once you gets twrp, from twrp choose wipe > advanced wipe > wipe everything except internal and SD card > then go back to main menu of twrp choose install» choose downloaded firmware.zip flash it, once it's done, locate unofficial LineageOS rom.zip and let it flash, it done? Then at last choose gapps.zip, flash it.

After this process, hit reboot.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Aniket21B:
Did you flash lazy flasher?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] luminouche:
No, i flashed TWRP in fastboot, using command "Fastboot flash recovery..."

I was in Global MIUI 8.1.15.0, is that rom the cause of bootloop ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
One guy flashed the twrp on global 8.1.15 rom and faced the same issue. And yeah, users reporting that it's not actually compatible with the global rom.

But, he followed the instructions I provided up above and was able to get device booted without an issue, so give a try.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Aniket21B:
If u want to run miui with twrp you must flash lazy flasher through twrp before booting into miui again

Correct me if im wrong cause im just waiting for my device

Right now im just gathering info
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Yes, you're right.

Once you flash twrp, wanna boot back to Miui then lazyflasher is must.

BTW, in some cases even flashing lazyflasher zip failed to boot to Miui, device just splash mi logo for a second and phone shutsoff.

So, the reason might be older super they've used or so.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] JackSparrow17:
If flashed SuperSU than no need of lazy flasher zip....