Related
Hey everyone (Again),
So i managed to unlock the bootloader and everything went smoothly but I flashed my recovery i can't get into it now it comes up with an error message everytime i try to get into recovery it says ' Your software cannot be checked for corruption' any way to get rid of this or do i have to re- lock the bootloader just to fix it and get recovery working.
Thanks again.
Anyone?
ZuneYT said:
Hey everyone (Again),
So i managed to unlock the bootloader and everything went smoothly but I flashed my recovery i can't get into it now it comes up with an error message everytime i try to get into recovery it says ' Your software cannot be checked for corruption' any way to get rid of this or do i have to re- lock the bootloader just to fix it and get recovery working.
Thanks again.
Click to expand...
Click to collapse
That's not an error message, that's the message you'll see every bit if you unlock the bootloader. Do NOT relock your bootloader after installing custom recovery. Also to get into recovery (provided you installed it correctly and it wasn't erased after it booted info Android) is to turn your phone off (or pull battery) and then hold volume down & power button, one you see the LG logo let go of the power button only (still hold volume down) for about 1 second and then press the power button again and hope (never let go of volume down). It will ask you if you want to reset your phone, select yes two times and you will enter TWRP. If it actually resets your phone, TWRP isn't installed. Usually after installing TWRP you need to pull battery then use above method to boot into recovery, mount system partition and use TWRP file manner to delete come named "recovery from boot.p". You can also go ahead and install SuperSU or magisk (use magisk if you need to be able to pass safety net). Hopefully this helps you, also next time please include what model phone you have and what steps exactly you did as it's easier for others to attempt to help you.
Mines a H850 running nougat as well but thats the only thing it wont boot to recovery because when i hold down the volume down button and the power button the lg logo shows up but then after 4 seconds that google message will pop up and that gets in the way of doing the method to get onto recovery thats my problem
ZuneYT said:
Mines a H850 running nougat as well but thats the only thing it wont boot to recovery because when i hold down the volume down button and the power button the lg logo shows up but then after 4 seconds that google message will pop up and that gets in the way of doing the method to get onto recovery thats my problem
Click to expand...
Click to collapse
You have to follow exactly what I posted earlier. If you do that, it will show the factory reset screen which is you have TWRP installed, it will not into TWRP.
1) Power off phone
2) Press and hold volume down (do not let go until you see factory reset screen)
3) Press and hold power button, when you see LG logo, let go of power button for 1 second and then press and hold again.
If you do not follow step 3, you'll never be able to boot to recovery using button combo, it will just go to that message and then boot into Android.
jeffsga88 said:
You have to follow exactly what I posted earlier. If you do that, it will show the factory reset screen which is you have TWRP installed, it will not into TWRP.
1) Power off phone
2) Press and hold volume down (do not let go until you see factory reset screen)
3) Press and hold power button, when you see LG logo, let go of power button for 1 second and then press and hold again.
If you do not follow step 3, you'll never be able to boot to recovery using button combo, it will just go to that message and then boot into Android.
Click to expand...
Click to collapse
Thanks for that! I got it working cheers
I'm actually having a similar issue too.
To clarify, I'm using a LG G5 (h830 variant) that is running resurrection remix.
I remember getting into recovery just to flash the updated modem and bootloader zips so I can fix the issue with powering off the device.
Now I noticed after doing that, I cannot get into recovery either with rebooting or with the button combo.
Thankfully I am rooted with magisk and this is probably the first time that I encountered this issue.
I don't want to further risk anything (because my phone is set up and don't want to lose any data) but would flashing twrp through the official app work just fine?
jeffsga88 said:
That's not an error message, that's the message you'll see every bit if you unlock the bootloader. Do NOT relock your bootloader after installing custom recovery. Also to get into recovery (provided you installed it correctly and it wasn't erased after it booted info Android) is to turn your phone off (or pull battery) and then hold volume down & power button, one you see the LG logo let go of the power button only (still hold volume down) for about 1 second and then press the power button again and hope (never let go of volume down). It will ask you if you want to reset your phone, select yes two times and you will enter TWRP. If it actually resets your phone, TWRP isn't installed. Usually after installing TWRP you need to pull battery then use above method to boot into recovery, mount system partition and use TWRP file manner to delete come named "recovery from boot.p". You can also go ahead and install SuperSU or magisk (use magisk if you need to be able to pass safety net). Hopefully this helps you, also next time please include what model phone you have and what steps exactly you did as it's easier for others to attempt to help you.
Click to expand...
Click to collapse
YOU SAVE MY LIFE!!!
i ran fastboot oem lock with custom firmware and the phone did not boot anymore and also does not enter in recovery mode
after 3 days installing many types of firmwares with this simple reset metod the phone boot again! :good::good::good::good:
jeffsga88 said:
You have to follow exactly what I posted earlier. If you do that, it will show the factory reset screen which is you have TWRP installed, it will not into TWRP.
1) Power off phone
2) Press and hold volume down (do not let go until you see factory reset screen)
3) Press and hold power button, when you see LG logo, let go of power button for 1 second and then press and hold again.
If you do not follow step 3, you'll never be able to boot to recovery using button combo, it will just go to that message and then boot into Android.
Click to expand...
Click to collapse
I know this is old,Just wanted to say thank it worked for me...
Been a while since I used LG and never with official bootloader unlock so I was thrown off by resetting to recovery as at first i never had the lg screen just the bootloader warning start
For those T-Mo G5 (H830) with unlocked bootloader, you will not see any LG logo. Once you see the lcd backlight comes on, immediately release the power button and press it again, all the while holding down the vol down button.
When you see the bootloader unlocked phone is unsafe msg by LG on the screen, it will already be too late and past the stage where you can boot to recovery. Simply power down and redo in that case.
(Needed to do the above as the latest Magisk 20.0 broke root and adb on H830, thus there was no way to get into recovery other than using the physical buttons. The Magisk Canary version of 20.1 works though.)
hey, i've got a problem.
i'm running on Oreo 20r and installed Magisk using TWRP.
after rebooting, my device stucks in a bootloop.
is there any solution for my problem?
flashed magisk 17?
yes...
okay, actually I am currently stucked with the same issue too.
But I just got back my TWRP by doing following :
1) Boot into download mode (https://www.youtube.com/watch?v=_mycJDiFUPk)
2) Still in download mode, press and hold "vol down + power" (this time USB cable is still connected to PC and phone), it will reboot the phone, hold both button till you get in fastboot mode
3) once in fastboot mode, flash back TWRP as per unlocking guide
Now I am still in TWRP, hesitating what to do next. lol
Hope it helps a bit
it's not possible for me.
my device reacts to nothing... no keys, no recovery, no download mode
bootlooping like no tomorrow
maybe you can install KDZ-file using LGUP
or try to flash ZIP-file
https://forum.xda-developers.com/lg-v30/development/rom-eu-lg-h930-21a-rom-t3830169
mrmojoman said:
it's not possible for me.
my device reacts to nothing... no keys, no recovery, no download mode
bootlooping like no tomorrow
maybe you can install KDZ-file using LGUP
Click to expand...
Click to collapse
I just clean flashed back Boombox 1.3 with magisk 16.0, so far booting up good.
I think you need to try again.
The download mode is a bit tricky, need to very fast hold long power button till off, once off, hold the vol up and connect the USB cable to PC. it should trigger the download mode
The bootloop that you have now, is just "LG V30 ThinQ" and the "unlocked bootloader" msg right? same as me I think
maybe you can install KDZ-file using LGUP
I just clean flashed back Boombox 1.3 with magisk 16.0, so far booting up good.
I think you need to try again.
The download mode is a bit tricky, need to very fast hold long power button till off, once off, hold the vol up and connect the USB cable to PC. it should trigger the download mode
The bootloop that you have now, is just "LG V30 ThinQ" and the "unlocked bootloader" msg right? same as me I think
Click to expand...
Click to collapse
it's not possible to turn my device off. i hold power button for minutes and nothing happend. i tried also in combinations with volume keys.
mrmojoman said:
it's not possible to turn my device off. i hold power button for minutes and nothing happend. i tried also in combinations with volume keys.
Click to expand...
Click to collapse
okay, let me try describe my steps in details :
1) Phone is bootlooping, USB cable is connected to Phone, NOT to PC
2) Hold down power button only till the screen becomes "black"
3) Once "black", quickly hold the "vol UP" and connect the USB cable to the PC
4) Now it should show the "download mode"
5) Without removing the USB cable, hold "power + vol DOWN"
6) Once screen becomes "black", release the "power" button, hold the "vol DOWN"
7) Until you see the "fastboot mode"
8) Now you can flash TWRP back using fastboot command from the PC
9) Boot back to TWRP
p/s : yes, the phone cannot be turned off, for long time, but it can be for a very short time. Need to use that short time to trigger all the keys
I have the same problem after flashing Magisk 17. I am in a bootloop between LG black start and root/unlocked bootloader warning screen.
I followed your steps 1-7 in a command line screen (as administrator) and it works but it seems that recovery flash is not working because the command line screen show me a very short time in the recovery flashing work (see attached image).
"fastboot reboot" returns me to the bootloop.
"Power Off" and "Restart" options in the phone returns to me to the bootloop again.
If I unplug the USB cable in the fastboot screen, the phone goes to the splash black screen and does nothing.
WTF!!! it's working.
i tried it one more time like you described it.
think i did it too slow before. booted into TWRP and the rest will be no problem (i hope so).
thank you sooo much!
I have the same problem after flashing Magisk 17. I am in a bootloop between LG black start and root/unlocked bootloader warning screen.
I followed your steps 1-7 in a command line screen (as administrator) and it works but it seems that recovery flash is not working because the command line screen show me a very short time in the recovery flashing work (see attached image).
"fastboot reboot" returns me to the bootloop.
"Power Off" and "Restart" options in the phone returns to me to the bootloop again.
Click to expand...
Click to collapse
you have to reboot directly into TWRP after flashing it!
fastboot boot TWRP***.img
How do you booted into TWRP??
trekminal said:
How do you booted into TWRP??
Click to expand...
Click to collapse
use this description to enter download mode and flash TWRP using fastboot.
but after you flashed TWRP, you have to boot into TWRP via fastboot using this command fastboot boot TWRP-3.2.1-joan-v0.1.img
1) Phone is bootlooping, USB cable is connected to Phone, NOT to PC
2) Hold down power button only till the screen becomes "black"
3) Once "black", quickly hold the "vol UP" and connect the USB cable to the PC
4) Now it should show the "download mode"
5) Without removing the USB cable, hold "power + vol DOWN"
6) Once screen becomes "black", release the "power" button, hold the "vol DOWN"
7) Until you see the "fastboot mode"
8) Now you can flash TWRP back using fastboot command from the PC
9) Boot back to TWRP
Click to expand...
Click to collapse
Yeah! I booted into TWRP, I restored a nandroid from last week and all works fine again. THANK YOU!!
mrmojoman said:
WTF!!! it's working.
i tried it one more time like you described it.
think i did it too slow before. booted into TWRP and the rest will be no problem (i hope so).
thank you sooo much!
Click to expand...
Click to collapse
Hey glad that it works for you too
Sent from my LG-H930 using Tapatalk
mrmojoman said:
use this description to enter download mode and flash TWRP using fastboot.
but after you flashed TWRP, you have to boot into TWRP via fastboot using this command fastboot boot TWRP-3.2.1-joan-v0.1.img
Click to expand...
Click to collapse
how did you reflash Magisk 16 after?
@ChazzMatt HAve you looked at this? Some of are having issues after Magisk updated the Magisk app and then lost root...I guess we shouldnt have flashed 17, but when I try and reflash 16 I get the "updater process error" does that mean my only option is to format SD again, or do I have to start from scratch?
islandfever said:
how did you reflash Magisk 16 after?
@ChazzMatt HAve you looked at this? Some of are having issues after Magisk updated the Magisk app and then lost root...I guess we shouldnt have flashed 17, but when I try and reflash 16 I get the "updater process error" does that mean my only option is to format SD again, or do I have to start from scratch?
Click to expand...
Click to collapse
No, see the last few posts of WTF thread. You just have to uninstall 16 first.
Guys I have a huge problem.....
I uninstalled magical 16 using the official uninstaller.....the device went into a bootloop I was able to boot to recovery but the data is now decrypted.....so tried to use OTG to restore a android backup and now I have a "the backup may not boot unless you change back to ext4"
I am at my wits end kindly help
Edit: came out of it. Thanks
creezalird said:
okay, let me try describe my steps in details :
1) Phone is bootlooping, USB cable is connected to Phone, NOT to PC
2) Hold down power button only till the screen becomes "black"
3) Once "black", quickly hold the "vol UP" and connect the USB cable to the PC
4) Now it should show the "download mode"
5) Without removing the USB cable, hold "power + vol DOWN"
6) Once screen becomes "black", release the "power" button, hold the "vol DOWN"
7) Until you see the "fastboot mode"
8) Now you can flash TWRP back using fastboot command from the PC
9) Boot back to TWRP
p/s : yes, the phone cannot be turned off, for long time, but it can be for a very short time. Need to use that short time to trigger all the keys
Click to expand...
Click to collapse
I am stuck with the same kinda issue. By mistake restarted the Phone after wiping the phone for a fresh rom install. now i can see only the LG boot logo. There is no way to power off the phone. Pressed the power button alone for couple of minute but no use. Tried pressing the Vol Down and power to restart. I get a 1 sec window when the phone is off between the restarts but your method does not work in that short time. Is there a way to power off the phone ?
basically there is no Rom on it and does not detect on the PC when plugged in
Please help if you know anything
rupeshrudy9 said:
I am stuck with the same kinda issue. By mistake restarted the Phone after wiping the phone for a fresh rom install. now i can see only the LG boot logo. There is no way to power off the phone. Pressed the power button alone for couple of minute but no use. Tried pressing the Vol Down and power to restart. I get a 1 sec window when the phone is off between the restarts but your method does not work in that short time. Is there a way to power off the phone ?
basically there is no Rom on it and does not detect on the PC when plugged in
Please help if you know anything
Click to expand...
Click to collapse
Try going to TWRP
1. hold vol down + power till it off
2. Once it shows the first on screen, release the power button and press back the power button (vol down hold)
3. A menu for factory reset will be shown, agree to it 2 times
4. Then it will boot to TWRP ( no data will be deleted )
Sent from my LG-H930DS using Tapatalk
I accidently flashed the lineage 16 recovery instead of lineage 17.1 recovery. I tried to install the 17.1 update through updater but my phone stuck into recovery mode. Neither I can boot into bootloader nor to android. I can''t flash anything. Power + volume down and connect the cable also not working to go into bootloader. Even bootloader option within the recovery also brings me back to recovery mode. ...adb devices command is also showing "device offline". Any help will be appreciated.
you should start from the beginning
is your bootloader still unlocked?
stukka2006 said:
you should start from the beginning
is your bootloader still unlocked?
Click to expand...
Click to collapse
I can't go into fastboot mode. Is there any other way to check it?
Thank you @stukka2006 for replying me. I guess I saved my phone. So here what I did-
1. Extracted the stock firmware (Luckily I had one but can be found in the forum) and copied the dload folder to sdcard (as I was not able to access internal storage). (@stukka2006 your hint to start from the beginning)
2. Power off the phone and pressed Both volume buttons + power button simultaneously. After the vibration I left the power button while still holding both vol buttons till software update screen appears. But software update failed. So I just touched the reboot now option. The phone rebooted to fastboot mode.
3. I installed TWRP but was not able to reboot to recovery through commands and system reboot command brings me back to fastboot mode. So I again power off the device with cable connected and pressed both vol buttons. This time phone showed recovery screen (Should have worked with normal button shortcuts also, I guess) and I flashed the rom and rebooted normally.
Everything is working fine now except that I lost the data.
Happy you got all clear my friend !!!
[email protected]@wk said:
Thank you @stukka2006 for replying me. I guess I saved my phone. So here what I did-
1. Extracted the stock firmware (Luckily I had one but can be found in the forum) and copied the dload folder to sdcard (as I was not able to access internal storage). (@stukka2006 your hint to start from the beginning)
2. Power off the phone and pressed Both volume buttons + power button simultaneously. After the vibration I left the power button while still holding both vol buttons till software update screen appears. But software update failed. So I just touched the reboot now option. The phone rebooted to fastboot mode.
3. I installed TWRP but was not able to reboot to recovery through commands and system reboot command brings me back to fastboot mode. So I again power off the device with cable connected and pressed both vol buttons. This time phone showed recovery screen (Should have worked with normal button shortcuts also, I guess) and I flashed the rom and rebooted normally.
Everything is working fine now except that I lost the data.
Click to expand...
Click to collapse
You are quite lucky to have the stock ROM.
methuselah said:
You are quite lucky to have the stock ROM.
Click to expand...
Click to collapse
Yeah...who knows when you need it.
I have been installing Magisk to my Motorola Moto G Power 2021, using the patched image method (non-TWRP). Everything seemed to be accomplished, but now that it is time to reboot (and voila!), I keep getting this message:
Android Recovery
motorola/borneo_retail/borneo
11/RZBS31.Q2-143-27-7/3f699
user/release_keys
Use volume up/down and power.
Can’t load Android system. Your data may be corrupt. If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on this device.
I have tried multiple tries, including fastbooting and trying to start it up normally from fastboot mode.
Can someone please help me get past this message and get my phone functional again?
Thanks for any help!
NH Exit said:
I have been installing Magisk to my Motorola Moto G Power 2021, using the patched image method (non-TWRP). Everything seemed to be accomplished, but now that it is time to reboot (and voila!), I keep getting this message:
Android Recovery
motorola/borneo_retail/borneo
11/RZBS31.Q2-143-27-7/3f699
user/release_keys
Use volume up/down and power.
Can’t load Android system. Your data may be corrupt. If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on this device.
I have tried multiple tries, including fastbooting and trying to start it up normally from fastboot mode.
Can someone please help me get past this message and get my phone functional again?
Thanks for any help!
Click to expand...
Click to collapse
Not sure exactly but twrp would make flashing new images along easier if it's the case that you simply aren't flashing the right image to it.
I'm not sure on these moto devices but did you factory reset the device now that the new image is installed. Well before or after? This usually disables the encryption set by the system to /user .
I'm probably not the right person to ask this but it's worth a shot. Try booting into recovery now that your image is flashed and perform factory reset.
PsYk0n4uT said:
Not sure exactly but twrp would make flashing new images along easier if it's the case that you simply aren't flashing the right image to it.
I'm not sure on these moto devices but did you factory reset the device now that the new image is installed. Well before or after? This usually disables the encryption set by the system to /user .
I'm probably not the right person to ask this but it's worth a shot. Try booting into recovery now that your image is flashed and perform factory reset.
Click to expand...
Click to collapse
Thanks for your response.
Yes, I did do a factory reset. This was all after I had already tried the TWRP method and couldn’t get past the lock icon on TWRP. And after installing Magisk. That was the point at which I got that error message.
The factory reset got the phone operational again – and it took me half the day to go through all the apps to revoke permissions and download alternatives to the stock apps, like messaging.
Can you please suggest how to boot into recovery, or would that do another factory reset?
I am new to all this and don’t want to inadvertently get back to having to do another reset.
I haven't started working on this phone yet. I have one sitting on my desk.
I'm more familiar with samsung devices.
But that being said.
Power and volume down from completely off.
Not sure if you have to hold those buttons from power off state while plugging USB cord into computer but if the button combo alone doesn't work try powerring off again and hold the two buttons while plugging in the USB cable.
Simply entering recovery mode won't factory reset it. But. Pay attention to the button information it should be listed somewhere once u boot into recovery indicating what each of your physical buttons do.
Be careful if your not trying to factory reset. I had a device the other day I accidentally pressed volume up on and booted into a mode I didn't mean to boot into. I don't think it was a moto but I can't remember which device it was.
Please take my advice with a use at your own risk warning because I'm simply a power user that's learning about these devices myself
PsYk0n4uT said:
I haven't started working on this phone yet. I have one sitting on my desk.
I'm more familiar with samsung devices.
But that being said.
Power and volume down from completely off.
Not sure if you have to hold those buttons from power off state while plugging USB cord into computer but if the button combo alone doesn't work try powerring off again and hold the two buttons while plugging in the USB cable.
Simply entering recovery mode won't factory reset it. But. Pay attention to the button information it should be listed somewhere once u boot into recovery indicating what each of your physical buttons do.
Be careful if your not trying to factory reset. I had a device the other day I accidentally pressed volume up on and booted into a mode I didn't mean to boot into. I don't think it was a moto but I can't remember which device it was.
Please take my advice with a use at your own risk warning because I'm simply a power user that's learning about these devices myself
Click to expand...
Click to collapse
OK, I booted into fastboot (via adb).
The default screen offers the option to “START” next to the power button, plus arrows next to the volume up and down buttons.
The volume up button, when pressed, shows “BARCODES” next to the power button.
The volume down button, when pressed, returns to “START” next to the power button.
These are the only options showing in fastboot mode. (Is fastboot the same as what you referred to as recovery?)
Shall I press “BARCODES” next?
NH Exit said:
OK, I booted into fastboot (via adb).
The default screen offers the option to “START” next to the power button, plus arrows next to the volume up and down buttons.
The volume up button, when pressed, shows “BARCODES” next to the power button.
The volume down button, when pressed, returns to “START” next to the power button.
These are the only options showing in fastboot mode. (Is fastboot the same as what you referred to as recovery?)
Shall I press “BARCODES” next?
Click to expand...
Click to collapse
Well, I did that and just got four barcodes, which don't seem to have anything helpful to offer.
You may be able to press vol up more down more than once.
I know that sounds silly but give it a try if u haven't already. So fastboot IS a recovery mode but it's not the one you normally use as an end user to recover your system. Fastboot is a mode intended for use with adb fastboot commands from another device linked through your cable. You can issue commands for various things or use fastboot to flash Roms and system images. Boot images and such. I think most devices I've run across recently need to be issued the" fastboot reboot fastboot " command from terminal or command to reboot the phone into fastbootd when flashing. I honestly would just have to recommend reading up on fastboot and fastboot commands to get an idea of how you can use fastboot and the difference in fastboot and fastbootd. You have to have adb and fastboot installed on your computer to make use of fastboot mode/s. You should be able to either select recovery or enter recovery from the fastboot menu with your physical buttons. If your looking for the regular recovery menu it's probably accessed through a different button combo and you should be able to factory reset from there assuming your recovery partition is intact and functioning normally. You can definitely use fastboot to flasha new image thereby recovering your system but your definitely gonna lose anything you have on the device at that point. Flashing a new image whether it's stock or not is going to remove the encryption key your system uses to read your user data so after flashing a new image you will have to use the built in recovery menu to wipe/factory reset for the system to even boot BECAUSE it won't be able to read /data where your user data is stored
I meant to add that you have to issue fastboot reboot fastboot command WHILE IN fastboot mode to get to fastbootd
The start option is to boot your system normally, barcodes gives you info about your device such as IMEI AND SERIAL NUMBER
Try powering ur phone off and holding power and vol up and vol down or power and vol up until you see the boot logo. Or may even be power and vol down. Try these without the cable plugged in.
You shouldn't need the cable plugged in to get into the regularl recovery mode
Flash your system image. Reboot to recovery mode and factory reset
I flashed an unofficial Evolution X v6.5 Rom For my Poco F1 today,
it was working fine but then I tried to Reboot into MY Custom Recovery( OrangeFox ) using the Advance Restart Option Exist in Rom.
OrangeFox Recovery Opening Image was Showing but it didn't opened, My phone shut down and rebooted again into the Same OrangeFox Opening Image and then shut down again.
It stuck into Recovery Opening Bootloop.
I tried holding the power button to reboot into system but noting is happening, It is showing same Recovery Opening Image and then shutting down,
I tried holding the power button + Volume UP Button, Same thing was happening Recovery Opening Image and then shutting down.
Luckily when I tried holding the power button + Volume down Button, It opened the bootloader.
So I thought Something happened to the OrangeFox recovery file So I installed the TWRP Recovery with My PC.
BUT Now It showing TWRP Opening Image and then shutting down. Same Recovery Bootloop.
Something( Maybe the Rom ) preventing me from rebooting into any recovery.
I should mention that I didn't installed any new app or anything, I just flashed the rom and then finished the Google setup.
I managed to shut down the phone by holding all 3 button for about 20sec.
But it's not charging anymore, if I plug the to phone to charger it start the whole Recovery Bootloop again.
Please Let me know if you know of any possible solutions.
I managed to fix that issue, In Future if anyone else got same problem in any phone, Then Follow this,
At First Hold all three button for about 25sec to shut down your phone,
at this situation your phone won't charge, if your battery completely drained then your phone might get hard brick, so shut down it at first.
Then download a stable & trustable rom and put that in SD Card or Pendrive( in this case you will be needed an OTG to plug the perdrive into your phone )
Then download the latest TWRP or any other Recovery in your PC. You really need the latest custom Recovery( 0 - 3 Months Old ).
I should let you know, You need to install ADB & Fastboot Drivers on your PC to perform any normal rooting process on your phone, And Download "Android Platform Tools".
Open CMD in "Android Platform Tools" Folder
Connect your phone to your PC in bootloader mode by holding down Power + Volume Down Button.
Then Type in CMD - fastboot devices
To check your device is properly connected or not. If your phone is connected properly then CMD will show a random number and fastboot. If not then connect the phone properly and check the driver.
Then Type - fastboot erase userdata
It will erase all your internal and data.
Then Type - fastboot flash recovery "PUT HERE THE LATEST CUSTOM RECOVERY FULL PATH"
It will flash the custom recovery, IN above command after writing recovery give a space then write the full path or hold and drag the latest custom recovery to command prompt, it will automatically write the full path for you.
After flashing the recovery now you can open the recovery.
Now Open the custom recovery immediately by holding down Power + Volume UP Button.
Then Wipe the Old Rom and flash the new downloaded rom from SD Card or Pendrive.
AND there you go, Now you can reboot into your new system or recovery.