recovery for redmi note 7s - Xiaomi Redmi Note 7 Questions & Answers

All the recovery here... is for REDMI NOTE 7, while i have redmi note 7s. i searched all over xda, but no recovery for REDMI NOTE 7S. is there Any recovery for my device? i flash one of REDMI NOTE 7, recovery but nothing change in recovery ( did not replaced from stock recovery). plz, help...
Also another question, if i flash REDMI NOTE 7 Rom,will my device brick?
THANKS

nishat islam said:
All the recovery here... is for REDMI NOTE 7, while i have redmi note 7s. i searched all over xda, but no recovery for REDMI NOTE 7S. is there Any recovery for my device? i flash one of REDMI NOTE 7, recovery but nothing change in recovery ( did not replaced from stock recovery). plz, help...
Also another question, if i flash REDMI NOTE 7 Rom,will my device brick?
THANKS
Click to expand...
Click to collapse
Recoveries and ROMs for redmi note 7 are compatible with redmi note 7s. When you install the recovery for the first time you have to reboot to recovery with vol+ and power button without reboot to system (if you reboot to system miui overwrite the custom recovery with the stock one). I reccomend to use orangefox as recovery

darhma said:
Recoveries and ROMs for redmi note 7 are compatible with redmi note 7s. When you install the recovery for the first time you have to reboot to recovery with vol+ and power button without reboot to system (if you reboot to system miui overwrite the custom recovery with the stock one). I reccomend to use orangefox as recovery
Click to expand...
Click to collapse
thanks for replay... i thought nobody is going to replay of this thread... ''''(if you reboot to system miui overwrite the custom recovery with the stock one)''''' i try to flash recovery by fastboot and the (cmd) code said its DONE. but when i instantly try to go to recovery and then BAM!!! the f****ing stock recovery again... .i could never saw the face of TWRP.
PLEASE HELP ME

nishat islam said:
thanks for replay... i thought nobody is going to replay of this thread... ''''(if you reboot to system miui overwrite the custom recovery with the stock one)''''' i try to flash recovery by fastboot and the (cmd) code said its DONE. but when i instantly try to go to recovery and then BAM!!! the f****ing stock recovery again... .i could never saw the face of TWRP.
PLEASE HELP ME
Click to expand...
Click to collapse
After flashing the recovery in fastboot mode don't use the command line to reboot in recovery but hold together the vol+ and power buttons until the recovery boot up.

darhma said:
After flashing the recovery in fastboot mode don't use the command line to reboot in recovery but hold together the vol+ and power buttons until the recovery boot up.
Click to expand...
Click to collapse
no i didnt put any comand line, after recovery flashing done. i did tap those button, but no luck. (i may not good at tapping same button together) but for the first time, (after just flash done) i deliver into android home AND then i try again to go to custom recovery but there is just the stock one... what to do?

nishat islam said:
no i didnt put any comand line, after recovery flashing done. i did tap those button, but no luck. (i may not good at tapping same button together) but for the first time, (after just flash done) i deliver into android home AND then i try again to go to custom recovery but there is just the stock one... what to do?
Click to expand...
Click to collapse
Try to flash the recovery in fastboot then disconnect the phone from your pc and reboot to recovery with vol+ and power.
Which recovery are you trying to flash?

darhma said:
Try to flash the recovery in fastboot then disconnect the phone from your pc and reboot to recovery with vol+ and power.
Which recovery are you trying to flash?
Click to expand...
Click to collapse
first i tried TWRP name with Lavender something.... then i also tried orangeFox, all the result same

nishat islam said:
first i tried TWRP name with Lavender something.... then i also tried orangeFox, all the result same
Click to expand...
Click to collapse
From the orangefox thread:
#1. INSTALLING ORANGEFOX RECOVERY FROM STOCK MIUI RECOVERY (adb/fastboot method):
You need a PC for this. If you do not have a PC, or access to a PC, then you are stuck!
1. Install adb, fastboot, and the relevant USB drivers onto your PC
2. Install the Mi Flash tool onto your PC
3. Download the correct OrangeFox zip file to your phone, and to your PC
4. Extract recovery.img from the OrangeFox zip file, and copy recovery.img to your PC’s adb directory
5. Reboot your phone into fastboot/bootloader mode
6. Unlock your bootloader
7. Open up a command line window on your PC
8. Change to the adb directory on your PC
9. “Hotboot” OrangeFox by running the command: fastboot boot recovery.img
** Note: some devices do not like the "fastboot boot ..." command (eg, lavender). You must NOT run this command on those devices. Rather, you should boot into OrangeFox by using the Power+Vol+ hardware key combination.
10. After OrangeFox has booted up, check that everything is working – eg, that it has mounted the data partition successfully, and that the touchscreen works.
11. Select “Install”, then find and select the OrangeFox zip, and swipe to install it
12. After installation, the phone will automatically reboot into OrangeFox
13. Enjoy!
If that doesn't work try to ask directly in the orangefox thread: https://forum.xda-developers.com/re...al-orangefox-recovery-project-t3941822/page39

darhma said:
From the orangefox thread:
#1. INSTALLING ORANGEFOX RECOVERY FROM STOCK MIUI RECOVERY (adb/fastboot method):
You need a PC for this. If you do not have a PC, or access to a PC, then you are stuck!
1. Install adb, fastboot, and the relevant USB drivers onto your PC
2. Install the Mi Flash tool onto your PC
3. Download the correct OrangeFox zip file to your phone, and to your PC
4. Extract recovery.img from the OrangeFox zip file, and copy recovery.img to your PC’s adb directory
5. Reboot your phone into fastboot/bootloader mode
6. Unlock your bootloader
7. Open up a command line window on your PC
8. Change to the adb directory on your PC
9. “Hotboot” OrangeFox by running the command: fastboot boot recovery.img
** Note: some devices do not like the "fastboot boot ..." command (eg, lavender). You must NOT run this command on those devices. Rather, you should boot into OrangeFox by using the Power+Vol+ hardware key combination.
10. After OrangeFox has booted up, check that everything is working – eg, that it has mounted the data partition successfully, and that the touchscreen works.
11. Select “Install”, then find and select the OrangeFox zip, and swipe to install it
12. After installation, the phone will automatically reboot into OrangeFox
13. Enjoy!
If that doesn't work try to ask directly in the orangefox thread: https://forum.xda-developers.com/re...al-orangefox-recovery-project-t3941822/page39
Click to expand...
Click to collapse
THANKS... this Orange will do? https://forum.xda-developers.com/re.../official-orangefox-recovery-project-t3941822
AND but HOW to do numbere 4? (how to put it adb director?)
HOW to do number 8? ( how to change adb directory?)
In NUMBER 9, if i put @fastboot flash recovery (recovery file put here by dragging)@ is it okay?
okay, if i put the COMMAND the orange will be bootup as recovery? because NUMBER 10 AND 11 makes no sense...

Nishat islam
i worked at this folder (SS) and then open CMD by writting cmd on directory line of File explorer. and i drag the recovery file in CMD . code - fatboot flash recovery C:\Users\Home\Downloads\Compressed\platform-tools\recovery.img . IS EVERYTHING LOOKS GOOD?

Try to install this recovery https://androidfilehost.com/?fid=1395089523397954270
Following this guide:
https://telegra.ph/All-In-One-Rooting-GuideLavender-06-22

Related

{One thread} Guide Rooting Redmi note 4 SD twrp/SU (video tutorial)

This vide will guide you how to root REDMI NOTE 4(SNAPDRAGON)
***IMPORTANT***
BACKUPDATA
Make sure you have adb installed and you place the twrp file to adb folder & other files to internal memory
Downloads:
1. TWRP- 3.0.3-0
https://www.androidfilehost.com/?fid=457095661767136323
2. phh's SuperSu
https://superuser.phh.me/superuser.zip
3. no-verity-opt-encrypt
https://build.nethunter.com/android-tools/no-verity-opt-encrypt/no-verity-opt-encrypt-5.1.zip
Steps:
1.unlock bootloader
http://en.miui.com/unlock/
or
Google mi unlock
2.download files
3.enable usb debugging
4.boot to fastboot (volume down+power button)
5.connect to pc run cmd in adb folder .
6.use command (fastboot devices) to check fastboot devices
7.use command (fastboot flash recovery {name of recovery}.img)
8.boot device to recovery (Flash Verity file, su ) ***IMPORTANT***
9.wipe caches
10.reboot
This is not my work all credit to:
XDA:
https://forum.xda-developers.com/re...ecovery-twrp-3-0-3-0-redmi-note-4-sd-t3549970
Video:
https://youtu.be/dV4urAIRKZU
Not working in 8.1.15.0
Unfortunately not working in miui 8.1.15.0.. Eagerly waiting for your response
ashokmor007 said:
This vide will guide you how to root REDMI NOTE 4(SNAPDRAGON)
***IMPORTANT***
BACKUPDATA
Make sure you have adb installed and you place the twrp file to adb folder & other files to internal memory
Downloads:
1. TWRP- 3.0.3-0
https://www.androidfilehost.com/?fid=457095661767136323
2. phh's SuperSu
https://superuser.phh.me/superuser.zip
3. no-verity-opt-encrypt
https://build.nethunter.com/android-tools/no-verity-opt-encrypt/no-verity-opt-encrypt-5.1.zip
Steps:
1.unlock bootloader
http://en.miui.com/unlock/
or
Google mi unlock
2.download files
3.enable usb debugging
4.boot to fastboot (volume down+power button)
5.connect to pc run cmd in adb folder .
6.use command (fastboot devices) to check fastboot devices
7.use command (fastboot flash recovery {name of recovery}.img)
8.boot device to recovery (Flash Verity file, su ) ***IMPORTANT***
9.wipe caches
10.reboot
This is not my work all credit to:
XDA:
https://forum.xda-developers.com/re...ecovery-twrp-3-0-3-0-redmi-note-4-sd-t3549970
Video:
https://youtu.be/dV4urAIRKZU
Click to expand...
Click to collapse
twrp titale say its for mtk
amnv said:
Unfortunately not working in miui 8.1.15.0.. Eagerly waiting for your response
Click to expand...
Click to collapse
Wil update you by tmro on the latest version
vikasb32 said:
Not working in 8.1.15.0
Click to expand...
Click to collapse
I did root my device flash custom recovery (TWRP) while running MIUI 8.1.15.0
whats the issue u had? bootloop?
TechRapt said:
I did root my device flash custom recovery (TWRP) while running MIUI 8.1.15.0
whats the issue u had? bootloop?
Click to expand...
Click to collapse
Most of member says this twrp does not work in miui 8.1.15.0, They say after flashing it mi logo flashes for some time and they could not boot into twrp mode
Honestly i haven't flashed it into my device coz most of people facing bugs only in miui 8.1.15.0..
Im miui 8.1.15.0 stable user hope u can help me.
Thank you
Sent from my Redmi Note 4 using Tapatalk
amnv said:
Most of member says this twrp does not work in miui 8.1.15.0, They say after flashing it mi logo flashes for some time and they could not boot into twrp mode
Honestly i haven't flashed it into my device coz most of people facing bugs only in miui 8.1.15.0..
Im miui 8.1.15.0 stable user hope u can help me.
Thank you
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
I am not sure if this is the same TWRP i used
I used the TWRP version from LA 14.1 thread.
I did face few issues though like long boot time but never had issues with loading TWRP or when the OS booted up completely
I am on 7.3.9 build now let me roll back to stable 8.1.15.0 build tonight and re-try the same flash recovery and root method will let u know the results
Not able to boot to recovery
All the installation went as expected till recovery installation. It is done but using Volume Up & Power button not able to go to recovery. Just MI logo post that nothing.
Everything OK but sim slot 2 does not work after root
chandrash3khar said:
All the installation went as expected till recovery installation. It is done but using Volume Up & Power button not able to go to recovery. Just MI logo post that nothing.
Click to expand...
Click to collapse
Rename your recovery as "recover.img".
After flashing recovery don't disconnect the phone
In fastboot type
"fastboot boot recovery.img"
Your phone will boot into recovery
I have redmi note 4 4g 64gb rom 2017 is not unblock.. plz help
:fingers-crossed:
hadiyalkishan said:
twrp titale say its for mtk
Click to expand...
Click to collapse
I have redmi note 4 4g 64gb rom 2017 is not unblock.. plz help
rajendraDMD said:
:fingers-crossed:
I have redmi note 4 4g 64gb rom 2017 is not unblock.. plz help
Click to expand...
Click to collapse
What do you mean?
Not working on my redmi note 4 sd (stable 8.2.10.0). When i try to flash the img file terminal shows lots of help tips. I installed all drivers carefully, still its happening. Please help..

flash twrp don't overwrite stock recovery

today, i flash Los 13 from Los 14. I tried flash twrp by tool,cmd fastboot but recovery is stock. i tried flash MIUI 7.5.4 and i can boot into TWRP 1 time. And now, i dont flash twrp (twrp dont ovewrite stock recovery). i boot into recovery but it's stuck logo Mi 3,4 times and reboot nomal
can anyone help me flash twrp ?
thank
kirianti94 said:
today, i flash Los 13 from Los 14. I tried flash twrp by tool,cmd fastboot but recovery is stock. i tried flash MIUI 7.5.4 and i can boot into TWRP 1 time. And now, i dont flash twrp (twrp dont ovewrite stock recovery). i boot into recovery but it's stuck logo Mi 3,4 times and reboot nomal
can anyone help me flash twrp ?
thank
Click to expand...
Click to collapse
1.- Boot in fastboot mode (power and vol- buttons until the FASTBOOT logo shows up). Connect the phone with USB cable.
2.- Using Windows file explorer, go into the TWRP installer folder, there press and hold the shift key, and right clic the folder. Then click "open command line here".
3.- In the cmd window that opens, write "fastboot devices". Your phone's serial number and the word "fastboot" will appear. If not, the device is not being detected and you need to install the adequate driver. Look in google.
4.- Write "fastboot flash recovery [the name of the TWRP file inside the folder including the .img extension]". Press enter. You will see the output messages in the window, you must not see any error messages.
6.- After flashing the recovery without errors, DON'T REBOOT OR TURN OFF THE PHONE. THIS WILL ERASE TWRP AND INSTALL STOCK RECOVERY AGAIN.
7.- write "fasbtoot boot recovery [the name of the TWRP file inside the folder including the .img extension]". The phone will boot into TWRP
8.- Inside TWRP go to Advanced > Disable DM-verity
9.- Now you can flash custom roms and stuff. To boot into recovery mode power off the phone, press vol+, vol- and power buttons for 3 seconds, then release buttons and wait.
If none of the above works, maybe your bootloader got re-locked after flashing some MIUI ROM and that's why you can't flash TWRP or another ROM.
If the bootloader gets re-locked? We have to ask the permission again? R directly v can unlock using unlock tool? Is der any chances to relock bootloader? By how? Thank u...
thank for help.i flash miui 8.1.1.0 first, fastboot no re-locked ( I checked my status develop option and MI unlocker ). i flash twrp by flour_mo, it dont work but when i flash twrp-caffe 3.0.1 by fedosis ( LOS 13 ) it work. And i can boot into recovery.
moralesnery said:
1.- Boot in fastboot mode (power and vol- buttons until the FASTBOOT logo shows up). Connect the phone with USB cable.
2.- Using Windows file explorer, go into the TWRP installer folder, there press and hold the shift key, and right clic the folder. Then click "open command line here".
3.- In the cmd window that opens, write "fastboot devices". Your phone's serial number and the word "fastboot" will appear. If not, the device is not being detected and you need to install the adequate driver. Look in google.
4.- Write "fastboot flash recovery [the name of the TWRP file inside the folder including the .img extension]". Press enter. You will see the output messages in the window, you must not see any error messages.
6.- After flashing the recovery without errors, DON'T REBOOT OR TURN OFF THE PHONE. THIS WILL ERASE TWRP AND INSTALL STOCK RECOVERY AGAIN.
7.- write "fasbtoot boot recovery [the name of the TWRP file inside the folder including the .img extension]". The phone will boot into TWRP
8.- Inside TWRP go to Advanced > Disable DM-verity
9.- Now you can flash custom roms and stuff. To boot into recovery mode power off the phone, press vol+, vol- and power buttons for 3 seconds, then release buttons and wait.
If none of the above works, maybe your bootloader got re-locked after flashing some MIUI ROM and that's why you can't flash TWRP or another ROM.
Click to expand...
Click to collapse
when I flash twrp.img but it dont overwrite strock recovery ( fastboot was unlocked)
kirianti94 said:
when I flash twrp.img but it dont overwrite strock recovery ( fastboot was unlocked)
Click to expand...
Click to collapse
What is shown on the cmd window? Is there any error on the phone's screen?
Could you provide a screenshot at least?

Stuck in Fastboot

Hi all!
I have tryed to flash Android Q on my Redmi Note 7 (Global) everything seemed to go smooth till i rebooted and the deviced got stuck in fastboot mode, i tryed to flash TWRP, it goes OKAY but if i reboot i cant access recovery anyway.
I also tryed to use "fastboot boot recovery.img", it does send the image but fails to boot into recovery saying "failed to load/authenticate boot image..."
Am i doing something wrong? How can i solve this?
I thought of MiFlash Tool, but there are many version and some seems not to work properly can anyone provide a working link?
(Ofc, my bootloader is unlocked etc)
Thanks a lot
After you flash TWRP you can't access via command, because MIUI will re-write the recovery again once you restart, first flash the TWRP (fastboot flash recovery the-name-of-the-file.img) after that you must reboot to recovery manually by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, after you are in TWRP, (mount the internal storage (Data) or if you already copied OrangeFox Recovery Zip to device) then just flash OrangeFox R10_2, it will reboot itself after that to the recovery again and that's all, you will have a custom recovery ready.
Now, if you already tried to flash the ROM and everything went wrong, I guess your device is bricked, now you need a FASTBOOT ROM for your device (if it's complete global = PFGMIXM / because there's global europe too, that's PFGEUXM) and the MiFlashTool, unzip the Fastboot ROM, open the MiFlashTool, load the ROM Folder in the tool while the phone is connected to the PC, and then just flash it, steps with images are in Xiaomi site, here's the link Fasboot Method
ps: the tool have below one option to flash and re-lock the bootloader, it will be selected by default, leave it like that if you want to re-lock it, or change it to clean all to leave it unlock it
BlackGarnett said:
After you flash TWRP you can't access via command, because MIUI will re-write the recovery again once you restart, first flash the TWRP (fastboot flash recovery the-name-of-the-file.img) after that you must reboot to recovery manually by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, after you are in TWRP, (mount the internal storage (Data) or if you already copied OrangeFox Recovery Zip to device) then just flash OrangeFox R10_2, it will reboot itself after that to the recovery again and that's all, you will have a custom recovery ready.
Now, if you already tried to flash the ROM and everything went wrong, I guess your device is bricked, now you need a FASTBOOT ROM for your device (if it's complete global = PFGMIXM / because there's global europe too, that's PFGEUXM) and the MiFlashTool, unzip the Fastboot ROM, open the MiFlashTool, load the ROM Folder in the tool while the phone is connected to the PC, and then just flash it, steps with images are in Xiaomi site, here's the link Fasboot Method
ps: the tool have below one option to flash and re-lock the bootloader, it will be selected by default, leave it like that if you want to re-lock it, or change it to clean all to leave it unlock it
Click to expand...
Click to collapse
Thank You!
Unluckly even manual rebooting didnt work so i had to use the MiFlash Tool and the Global Rom provided by your link and everything went good! Thanks Again!
Have a nice day
Regards
Hi dears! Just trying to sum up in case someone end up here just like me: Got stuck on fastboot. What solved was format data partition via orange recovery.
BlackGarnett said:
After you flash TWRP you can't access via command, because MIUI will re-write the recovery again once you restart, first flash the TWRP (fastboot flash recovery the-name-of-the-file.img) after that you must reboot to recovery manually by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, after you are in TWRP, (mount the internal storage (Data) or if you already copied OrangeFox Recovery Zip to device) then just flash OrangeFox R10_2, it will reboot itself after that to the recovery again and that's all, you will have a custom recovery ready.
Now, if you already tried to flash the ROM and everything went wrong, I guess your device is bricked, now you need a FASTBOOT ROM for your device (if it's complete global = PFGMIXM / because there's global europe too, that's PFGEUXM) and the MiFlashTool, unzip the Fastboot ROM, open the MiFlashTool, load the ROM Folder in the tool while the phone is connected to the PC, and then just flash it, steps with images are in Xiaomi site, here's the link Fasboot Method
ps: the tool have below one option to flash and re-lock the bootloader, it will be selected by default, leave it like that if you want to re-lock it, or change it to clean all to leave it unlock it
Click to expand...
Click to collapse
The link you provided says 404 not found.
So here are the links that work:-
Redmi note 7:- https://c.mi.com/thread-2643823-1-0.html
Redmi note 7 pro:- https://forum.xda-developers.com/redmi-note-7-pro/how-to/miui-11-public-beta-violet-t3973921
Hope that helps.
Strange51 said:
The link you provided says 404 not found.
So here are the links that work:-
Redmi note 7:- https://c.mi.com/thread-2643823-1-0.html
Redmi note 7 pro:- https://forum.xda-developers.com/redmi-note-7-pro/how-to/miui-11-public-beta-violet-t3973921
Hope that helps.
Click to expand...
Click to collapse
You have a smart phone! Don't want to accept redmi note 7 pro (violet) rom to be flashed to note 7 (lavender) phone.
Try to find here miui rom for your phone: https://xiaomifirmwareupdater.com/

Phone bricked

I was a running my Redmi note 7 with DerpFest rom and with Ofox custom recovery
The phone suddenly got into a bootloop and now I can only access the fastboot screen (not even the Custom recovery screen)
How can I proceed to reinstall the sistem and the Custom Recovery?
I've already downloaded Minimal ADB and fastboot ulitily to make things faster
Edit: Also, I couldn't get the MiFlash program working, some errors are happening
advanced_gamerBR said:
I was a running my Redmi note 7 with DerpFest rom and with Ofox custom recovery
The phone suddenly got into a bootloop and now I can only access the fastboot screen (not even the Custom recovery screen)
How can I proceed to reinstall the sistem and the Custom Recovery?
I've already downloaded Minimal ADB and fastboot ulitily to make things faster
Edit: Also, I couldn't get the MiFlash program working, some errors are happening
Click to expand...
Click to collapse
Just copy the ZIP file of the ROM and flash, as you dos when you first installed. Maybe just wipe caches
advanced_gamerBR said:
I was a running my Redmi note 7 with DerpFest rom and with Ofox custom recovery
The phone suddenly got into a bootloop and now I can only access the fastboot screen (not even the Custom recovery screen)
How can I proceed to reinstall the sistem and the Custom Recovery?
I've already downloaded Minimal ADB and fastboot ulitily to make things faster
Edit: Also, I couldn't get the MiFlash program working, some errors are happening
Click to expand...
Click to collapse
Try to reflash the recovery with fastboot first. Need to have xiaomi usb drivers installed to can use adb/fastboot connection. When the phone is in fastboot mode connect with a good (original) USB cable and check the connection with "fastboot devices" command in cmd/powershell window. Extract and use "recovery.img" from latest orangefox zip file. Flash to phone using "fastboot flash recovery recovery.img" command then reboot holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery. When you have working orangefox recovery, try to flash new rom. More information about driver/fastboot/recovery here (skip "unlock the bootloader" part): https://forum.xda-developers.com/redmi-note-7/how-to/one-redmi-note-7-unlock-bootloader-t3890751
The MiFlash program issue can be caused by missing/wrong xiaomi usb driver, if you will have answer from "fastboot devices" command (phone detected), can try the MiFlash again, just be careful: DON'T LOCK the BOOTLOADER. Good luck.

XIAOMI REDMI 9T

CAN UH PLEASE TELL ME HOW TO INSTALL TWRP IN REDMI 9T 4/128 SNAPDRAGON 662
I HAVE UNLOCKED BOOTLOADER WHEN I INSTALL TWRP MY MOBILE STUCKS IN FASTBOOT MOD...PLZ HELP ME IF SOMEONE KNOW ABOUT THIS
What adb returns?
If you are in fastboot, try to turn off phone and immediately push vol+ and power on boot for a few seconds.
If that won't work make sure you flashed the correct recovery and phone is detected in adb
Shah65367 said:
WHEN I INSTALL TWRP
Click to expand...
Click to collapse
which twrp you have?
You want to install custom rom or what?
Copy the rom to internal storage.
Reboot to fastboot
install twrp
"fastboot flash recovery nameofrecovery.img"
fastboot reboot with vol +
If the twrp shows the files install the rom and then go to
wipe/format data -- > yes
If not showing the files , first format data
reboot recovery
copy rom to internal (in twrp mode)
then install the rom

Resources