Hey guys so I'm a complete noob when it comes to this sort of stuff but I've been following a guide to root my phone which I can't link here because newbie.
But after trying to boot the phone into recovery mode with "fastboot boot twrp.img" the phone gets stuck on the TWRP splash screen.
I'm kind of stuck here guys and any help would be appreciated, thanks in advance.
stefinho said:
Hey guys so I'm a complete noob when it comes to this sort of stuff but I've been following a guide to root my phone which I can't link here because newbie.
But after trying to boot the phone into recovery mode with "fastboot boot twrp.img" the phone gets stuck on the TWRP splash screen.
I'm kind of stuck here guys and any help would be appreciated, thanks in advance.
Click to expand...
Click to collapse
Just popping in right quick, but your command is wrong.
It should be "fastboot flash recovery recovery.img" (no ") The 2nd recovery in that string is going to be the name of your recovery. If it is twrp.img, then use that. If it is Mondaysux, then it'll be mondaysux.img.
Woody said:
Just popping in right quick, but your command is wrong.
It should be "fastboot flash recovery recovery.img" (no ") The 2nd recovery in that string is going to be the name of your recovery. If it is twrp.img, then use that. If it is Mondaysux, then it'll be mondaysux.img.
Click to expand...
Click to collapse
Yeah I already input that command first as the guide said followed by the command that I stated to boot it, thanks though
What version of TWRP are you using?
I'm assuming you're on OOS 4.0+ and are still encrypted? If so, use the latest unreleased official version.
Anova's Origin said:
What version of TWRP are you using?
I'm assuming you're on OOS 4.0+ and are still encrypted? If so, use the latest unreleased official version.
Click to expand...
Click to collapse
I tried using an older version first as that was the one that the guide linked me to but after it didn't work I found that version you linked myself and tried it but I'm getting the same result
Also, the command to reboot to recovery is "fastboot reboot recovery"
Putting boot into anything is making the fastboot drivers think you are trying to flash a kernel (boot.img)
Edit: Also what root version (specifically) did you use?
Try using fastboot to wipe the recovery partition before flashing twrp again.
The commands are:
fastboot erase recovery
fastboot flash recovery [twrp file name].img
Then reboot to recovery
stefinho said:
Hey guys so I'm a complete noob when it comes to this sort of stuff but I've been following a guide to root my phone which I can't link here because newbie.
But after trying to boot the phone into recovery mode with "fastboot boot twrp.img" the phone gets stuck on the TWRP splash screen.
I'm kind of stuck here guys and any help would be appreciated, thanks in advance.
Click to expand...
Click to collapse
Why not use the volume keys from bootloader to go to recovery
And using system in f2fs format twrp takes time to reach main menu
So I suggest after flashing latest recovery as suggested by other members wait for 5 to 7 minutes
Anova's Origin said:
Try using fastboot to wipe the recovery partition before flashing twrp again.
The commands are:
fastboot erase recovery
fastboot flash recovery [twrp file name].img
Then reboot to recovery
Click to expand...
Click to collapse
Tried that but still getting the same result
How long are you waiting while on the splash screen and how much of the phone's internal storage have you used? As mentioned above, TWRP will take longer to boot while you use the phone's default f2fs storage system. The more space you use on the phone, the longer it takes to boot.
kunal1540 said:
Why not use the volume keys from bootloader to go to recovery
And using system in f2fs format twrp takes time to reach main menu
So I suggest after flashing latest recovery as suggested by other members wait for 5 to 7 minutes
Click to expand...
Click to collapse
Okay so going into recovery with the volume buttons instead actually worked and I feel really dumb, thanks you very much though
Related
Hello. I recently got an HTC One from CSpire. I had no trouble unlocking the bootloader. When I try to go into a custom recovery so that I can root, I get the message "Entering Recovery...". However, this screen only lasts a few seconds then my phone boots up like normal, completely skipping the recovery. I've tried multiple versions of TWRP and CWM. Any ideas? I'm not that experienced with android devices. I haven't been able to root because of the recovery issue I am having. Please help!
richard_325 said:
Hello. I recently got an HTC One from CSpire. I had no trouble unlocking the bootloader. When I try to go into a custom recovery so that I can root, I get the message "Entering Recovery...". However, this screen only lasts a few seconds then my phone boots up like normal, completely skipping the recovery. I've tried multiple versions of TWRP and CWM. Any ideas? I'm not that experienced with android devices. I haven't been able to root because of the recovery issue I am having. Please help!
Click to expand...
Click to collapse
what instructions are you using to flash the recovery ?
do you have the all in one kit ?
Reboot on fastboot with Power volume down.
Once you are in fastboot you enter the following command:
fastboot erase chache
After this you should be able to reboot in recovery without any problem
Good luck
imurg said:
Reboot on fastboot with Power volume down.
Once you are in fastboot you enter the following command:
fastboot erase chache
After this you should be able to reboot in recovery without any problem
Good luck
Click to expand...
Click to collapse
Clearing the cache didnt work. I just tried again using TWRP 2.5.0.0. I know its not the latest, but the latest doesn't work either.
Also sometimes when I try to go into recovery, my device freezes on the "Entering Recovery..." screen.
clsA said:
what instructions are you using to flash the recovery ?
do you have the all in one kit ?
Click to expand...
Click to collapse
I've tried a couple different all in ones. None of them work. And I can push the recovery to the phone no problem. Its when I actually try to go into Recovery from the boot menu that I have this issue.
richard_325 said:
I've tried a couple different all in ones. None of them work. And I can push the recovery to the phone no problem. Its when I actually try to go into Recovery from the boot menu that I have this issue.
Click to expand...
Click to collapse
Have you tried the following command in fastboot?, fastboot flash recovery (name of your recovery file).img
Make sure you have the right recovery file for your device, example: openrecovery-twrp-2.6.3.0-m7.img
farang4u said:
Have you tried the following command in fastboot?, fastboot flash recovery (name of your recovery file).img
Make sure you have the right recovery file for your device, example: openrecovery-twrp-2.6.3.0-m7.img
Click to expand...
Click to collapse
Yes. Multiple times. I've done everything I can find on the web so far. It's almost like the recovery isn't sticking (Not sure if thats possible.) Maybe I need to try and get S-Off?
SOLVED!! I had to use the Sprint Version of TWRP. It worked the first try!
Hello.
I was in the process of upgrading my HTC One from 4.2 and successfully unlocked the bootloader. But thereafter my phone just constantly reboots. It shows the HTC splash screen for about 10 seconds and the reboots again.
I am able to go into the fastboot screen (see screen shot). But when I select Recovery, the phone gors to the next screen - displays "Entering Recovery" - and nothing else happens thereafter.
Can anyone please help? Have looked at other such questions and tried but nothing has helped.
Thanks
sjgoel said:
Hello.
I was in the process of upgrading my HTC One from 4.2 and successfully unlocked the bootloader. But thereafter my phone just constantly reboots. It shows the HTC splash screen for about 10 seconds and the reboots again.
I am able to go into the fastboot screen (see screen shot). But when I select Recovery, the phone gors to the next screen - displays "Entering Recovery" - and nothing else happens thereafter.
Can anyone please help? Have looked at other such questions and tried but nothing has helped.
Thanks
Click to expand...
Click to collapse
I'm not sure you did ever flash a custom recovery!
1. Put your phone in fastboot from the bootloader meny. You already did this while rooting, so you got it already!
2. In your "SDK-tools" folder that you used while unlocking the device, put [nameofyourrecovery].img I recommend you to install TWRP 2.6.3.3, as it is the best one for flashing kitkat and lets you do this if you wish I cannot give you a link as I am a new member, but search google for TWRP 2.6.3.3 and you will find it. Make sure it is .img and not .zip!
3. While in fastboot, open a command prompt in the ADB folder.
4. To flash your custom recovery, type
fastboot flash recovery [nameofyourrecovery].img
Click to expand...
Click to collapse
Now give it another go
THeHopelessPainter said:
I'm not sure you did ever flash a custom recovery!
1. Put your phone in fastboot from the bootloader meny. You already did this while rooting, so you got it already!
2. In your "SDK-tools" folder that you used while unlocking the device, put [nameofyourrecovery].img I recommend you to install TWRP 2.6.3.3, as it is the best one for flashing kitkat and lets you do this if you wish I cannot give you a link as I am a new member, but search google for TWRP 2.6.3.3 and you will find it. Make sure it is .img and not .zip!
3. While in fastboot, open a command prompt in the ADB folder.
4. To flash your custom recovery, type
Now give it another go
Click to expand...
Click to collapse
Does not help. Used 2.6.3.3, the flash process went fine, then Recovery displays "Entering Recovery" - and then again bot loop.
sjgoel said:
Does not help. Used 2.6.3.3, the flash process went fine, then Recovery displays "Entering Recovery" - and then again bot loop.
Click to expand...
Click to collapse
You have an M7CDWG, twrp is for M7_U & M7_UL models, if i'm not mistaken. Start googling for M7CDWG, it's a completely different phone than the U / UL phones.
and you need to "fastboot erase cache" after flashing recovery
nkk71 said:
You have an M7CDWG, twrp is for M7_U & M7_UL models, if i'm not mistaken. Start googling for M7CDWG, it's a completely different phone than the U / UL phones.
and you need to "fastboot erase cache" after flashing recovery
Click to expand...
Click to collapse
Dear nkk71
Many thanks. I used your suggestion and rooted as per #9 in this post:
http://forum.xda-developers.com/showthread.php?p=45427332
I installed Chinese recovery followed by TWRP recovery. I was abe to Recover and reach TWRP manager 2.6.0.0.
Can you please suggest what next to instal?
If I reboot I still go into reboot loop, but can now reach TWRP manager.
Thanks
sjgoel said:
Dear nkk71
Many thanks. I used your suggestion and rooted as per #9 in this post:
http://forum.xda-developers.com/showthread.php?p=45427332
I installed Chinese recovery followed by TWRP recovery. I was abe to Recover and reach TWRP manager 2.6.0.0.
Can you please suggest what next to instal?
If I reboot I still go into reboot loop, but can now reach TWRP manager.
Thanks
Click to expand...
Click to collapse
Not really, don't know much about your model. You'll need to find a ROM compatible with your device; if it doesnt specifically say it's for your device, then most likely it isn't!!
I think there's a Maximus HD ROM for your version, but i have no idea where.
Did you..
Aside from flashing a recovery and rooting your phone, did you make any other modifications or flash any other partitions?
If no, then wipe Dalvek cache from TWRP. Boot into TWRP and select Wipe. Select advanced. Select Dalvek and Cache. Wipe power down. then power on and see if it will boot.
nkk71 said:
Not really, don't know much about your model. You'll need to find a ROM compatible with your device; if it doesnt specifically say it's for your device, then most likely it isn't!!
I think there's a Maximus HD ROM for your version, but i have no idea where.
Click to expand...
Click to collapse
Dear nkk71
Yes, Maximus has a ROM for dual SIM, Flashed, all went well, but the reboot loop still exists.
Thanks
Jcc1dls said:
Aside from flashing a recovery and rooting your phone, did you make any other modifications or flash any other partitions?
If no, then wipe Dalvek cache from TWRP. Boot into TWRP and select Wipe. Select advanced. Select Dalvek and Cache. Wipe power down. then power on and see if it will boot.
Click to expand...
Click to collapse
Dear Jcc1dls
Did as you mentioned - all went fine. But the reboot loop simply does not go away.
Thanks
sjgoel said:
Dear Jcc1dls
Did as you mentioned - all went fine. But the reboot loop simply does not go away.
Thanks
Click to expand...
Click to collapse
i had a similar problem last week with a One, a friend bricked his One by flashing "???" Dont know exactly whar he has done.
The phone had boot loops all the time.
my solution was:
- connecting the phone with the usb cable to my pc.
- started the phone into fastboot usb mode
- started cmd at my notebook
- change to the directory which contains adb and fastboot
- execute: fastboot erase cache
- restarted the phone
the phone starts normally into ARHD 40.3
perhaps it works ...
So I came from a stock lollipop Tmobile h811 non rooted
To stock MM v20i.
Ive tried flashing twrp 3.0 for cm13, and no matter what,
I get failed: (remote unknown command at the end after it sends recovery.
Its already unlocked(bootloader)
Thanks.
[email protected] said:
So I came from a stock lollipop Tmobile h811 non rooted
To stock MM v20i.
Ive tried flashing twrp 3.0 for cm13, and no matter what,
I get failed: (remote unknown command at the end after it sends recovery.
Its already unlocked(bootloader)
Thanks.
Click to expand...
Click to collapse
Type: fastboot boot (path goes here)
You can drag and drop the twrp img into the command window. This will ensure you have the correct path
[email protected] said:
So I came from a stock lollipop Tmobile h811 non rooted
To stock MM v20i.
Ive tried flashing twrp 3.0 for cm13, and no matter what,
I get failed: (remote unknown command at the end after it sends recovery.
Its already unlocked(bootloader)
Thanks.
Click to expand...
Click to collapse
Follow this instruction
http://forum.xda-developers.com/tmobile-g4/development/stock-h811-20i-images-kdz-flashable-t3308227
mingkee said:
Follow this instruction
http://forum.xda-developers.com/tmobile-g4/development/stock-h811-20i-images-kdz-flashable-t3308227
Click to expand...
Click to collapse
That link doesn't really solve the OP's issue. I have the same issue. BUT - your link did show me that I can BOOT the .img file, I can't flash the .img file. I've verified the bootloader is unlocked by the fastboot getvar command.
I'm not sure what to do next. Installing OpenGapps causes a boot loop and the only thing I can do at this point is a factory reset with the OEM recovery since in the boot loop adb is unresponsive.
joesee said:
That link doesn't really solve the OP's issue. I have the same issue. BUT - your link did show me that I can BOOT the .img file, I can't flash the .img file. I've verified the bootloader is unlocked by the fastboot getvar command.
I'm not sure what to do next. Installing OpenGapps causes a boot loop and the only thing I can do at this point is a factory reset with the OEM recovery since in the boot loop adb is unresponsive.
Click to expand...
Click to collapse
The instruction shows how to flash recovery.img with TWRP though I have no clue how to do it.
I got that error the first time I did it, it was because of a misspelling of the command.
If you already unlocked the bootloader, while in fastboot, you only type "fastboot boot" + "path to twrp img on computer" OR instead of typing out the path, you may drag and drop the file into the command window.
Once it boots to twrp, flash twrp from within the booted img. That ensures you have permanent twrp.
If you were able to unlock your bootloader, the only thing stopping you from loading twrp is improper spelling and path to the img. Almost every error I have seen is from not following the directions.
Vseprz said:
If you already unlocked the bootloader, while in fastboot, you only type "fastboot boot" + "path to twrp img on computer" OR instead of typing out the path, you may drag and drop the file into the command window.
Once it boots to twrp, flash twrp from within the booted img. That ensures you have permanent twrp.
If you were able to unlock your bootloader, the only thing stopping you from loading twrp is improper spelling and path to the img. Almost every error I have seen is from not following the directions.
Click to expand...
Click to collapse
OK, just so I understand correctly, the proper sequence of events is to use fastboot to boot TWRP (which I can do) then, once in TWRP, I can then flash the twrp .zip file, right? Does anyone know if the LG's bootloader overwrites the recovery partition upon boot (in other words, do I have to boot straight to recovery after I flash to ensure it sticks?)
Sorry for the obtuse questions, I've got a lot of experience with Samsung flashing back in the KK and LP days, but not MM.
Thanks in advance!!
joesee said:
OK, just so I understand correctly, the proper sequence of events is to use fastboot to boot TWRP (which I can do) then, once in TWRP, I can then flash the twrp .zip file, right? Does anyone know if the LG's bootloader overwrites the recovery partition upon boot (in other words, do I have to boot straight to recovery after I flash to ensure it sticks?)
Sorry for the obtuse questions, I've got a lot of experience with Samsung flashing back in the KK and LP days, but not MM.
Thanks in advance!!
Click to expand...
Click to collapse
So you have flashed 20i which overwrites twrp with the stock recovery.
You then go through the steps for unlocking the boot loader.
After the boot loader is unlocked, you may boot into twrp with the fastboot boot command.
When that boots into twrp, flash twrp from within that to have it stick.
Have a question and maybe someone can help. Me getting carried away installed twrp from external partition. Now i cannot boot into recovery. Tried flashing using flashify and twrp manager. but flashify does not install after reboot and there is no option for h811 in twrp manager. Anyway to fix this?
Sent from my LG-H811 using Tapatalk
Vseprz said:
So you have flashed 20i which overwrites twrp with the stock recovery.
You then go through the steps for unlocking the boot loader.
After the boot loader is unlocked, you may boot into twrp with the fastboot boot command.
When that boots into twrp, flash twrp from within that to have it stick.
Click to expand...
Click to collapse
Yes, that's exactly the steps I do. I've flashed 20i. I used fastboot to boot into twrp. I then "install" the twrp zip file. Says it flashes with no issues. I then reboot the phone. Still has stock recovery.
I've confirmed my bootloader is unlocked with the fastboot getvar all. I've also tried all three versions of twrp available (.1, .2 and .3) and still doesn't work. Yet twrp works fine if I boot it.
joesee said:
Yes, that's exactly the steps I do. I've flashed 20i. I used fastboot to boot into twrp. I then "install" the twrp zip file. Says it flashes with no issues. I then reboot the phone. Still has stock recovery.
I've confirmed my bootloader is unlocked with the fastboot getvar all. I've also tried all three versions of twrp available (.1, .2 and .3) and still doesn't work. Yet twrp works fine if I boot it.
Click to expand...
Click to collapse
How did you confirm you have stock recovery? Did you use adb reboot recovery? Or did you use hardware keys to boot to it? Because if you use hardware keys you still get the initial confirm factory reset. You just have to accept then it boots to twrp.
---------- Post added at 10:44 AM ---------- Previous post was at 10:22 AM ----------
99problemz said:
Have a question and maybe someone can help. Me getting carried away installed twrp from external partition. Now i cannot boot into recovery. Tried flashing using flashify and twrp manager. but flashify does not install after reboot and there is no option for h811 in twrp manager. Anyway to fix this?
Sent from my LG-H811 using Tapatalk
Click to expand...
Click to collapse
If boot loader is unlocked you should load twrp from fastboot.
Vseprz said:
How did you confirm you have stock recovery? Did you use adb reboot recovery? Or did you use hardware keys to boot to it? Because if you use hardware keys you still get the initial confirm factory reset. You just have to accept then it boots to twrp.
---------- Post added at 10:44 AM ---------- Previous post was at 10:22 AM ----------
If boot loader is unlocked you should load twrp from fastboot.
Click to expand...
Click to collapse
Hahaha now that's funny!! I bet I've been through 50 blog posts on various sites to try to figure this out. Having successfully installed Viper I didn't want to take the chance and pass that confirm wipe factory question.
I feel like a complete tool. Seriously, thank you for taking the time to respond to me!
joesee said:
Hahaha now that's funny!! I bet I've been through 50 blog posts on various sites to try to figure this out. Having successfully installed Viper I didn't want to take the chance and pass that confirm wipe factory question.
I feel like a complete tool. Seriously, thank you for taking the time to respond to me!
Click to expand...
Click to collapse
I'm glad it all worked out! :good:
finding I have to re-flash with flashify each time
using twrp-2.8.7.1, I get only the first reboot from there with hardware keys letting me into twrp after accepting the first factory reset prompt and denying the second. After that cant do it again unless I re-flash. Same thing happens if I flash it from within twrp. Can use terminal, su, boot recovery and I am in., or ADB/fatsboot Primarily worried about a soft brick condition. H-811, v1 20i stock, unlocked bootloader and rooted. DE-bloated,
Any Ideas, Thanks
jdoebean said:
using twrp-2.8.7.1, I get only the first reboot from there with hardware keys letting me into twrp after accepting the first factory reset prompt and denying the second. After that cant do it again unless I re-flash. Same thing happens if I flash it from within twrp. Can use terminal, su, boot recovery and I am in., or ADB/fatsboot Primarily worried about a soft brick condition. H-811, v1 20i stock, unlocked bootloader and rooted. DE-bloated,
Any Ideas, Thanks
Click to expand...
Click to collapse
You drop the twrp file
In fastboot folder open command prompt and flash twrp first just rename it simply to recovery.img while in the fastboot folder
Type fastboot flash recovery recovery.img
Or just fastboot flash recovery.img
Then it should boot you into twrp
Once booting into twrp flash the supersu zip in your internal sd
Once you have root and reboot all you have to do is use flashify app and download twrp from the app and flash it Twrp sticks from there.
Sent from my LGMS631 using XDA Free mobile app
I am stuck in TWRP because when I go to reboot it gives a warning that no Operating System is installed. What should I do?
"fastboot flash recovery (drop twrp image here)" did not work on the terminal window so I did it on the watch bootloader. I got stuck at points 11-12.
http://forum.xda-developers.com/wat...everything-urbane-root-how-tos-files-t3243975
Can you help please?
I have just left my watch in twrp recovery charging because I do not know what to do next. Please help
droyjul said:
I am stuck in TWRP because when I go to reboot it gives a warning that no Operating System is installed. What should I do?
"fastboot flash recovery (drop twrp image here)" did not work on the terminal window so I did it on the watch bootloader. I got stuck at points 11-12.
http://forum.xda-developers.com/wat...everything-urbane-root-how-tos-files-t3243975
Can you help please?
I have just left my watch in twrp recovery charging because I do not know what to do next. Please help
Click to expand...
Click to collapse
I haven't read through the thread but when flashing a rom its usually fast flash system "
drop name in here". Since you already have and are in twrp why are you flashing recovery? Also you could look into side loading the rom from twrp
My phone keeps getting stuck on fastboot mode.
I'll flash the standard MIUI ROM using the MiFlash Tool, then I flash a custom recovery and a custom ROM(EvolutionX in this case), everything works and I can set up my phone, but as soon as I reboot I can no longer boot into android or recovery. i've tried flashing multiple recoveries using fastboot and straight up booting a recovery using "fastboot boot recovery.img" but it still always go to fastboot. The only solution is to start the process all over again, and obviously that's just not an option since I can never turn my phone off after that.
Any tips?
I think I got it solved, at least I got it to reboot into Android and TWRP.
I used this guide, but I'll write the steps I took here in case you're having the same issue. I wound up using xiaomi.eu MIUI rom, but it shouldn't matter what you use, I'll assume you're stuck in fastboot.
Do "fastboot flash vendor vendor.img", you get this vendor.img from the fastboot version of the official MIUI ROM, after you decompress the .tar.gz it should be in the "images" folder
Do "fastboot flash recovery twrp.img" then "fastboot boot twrp.img", this should flash twrp as your recovery and then boot into it, for some reason it only worked with the official twrp, not orange fox.
Assuming you got into TWRP you should now flash the latest firmware(I got mine from xiaomifirmwareupdater.com) make sure you download just the firmware not the entire rom, mine was named something like fw_raphael_miui... .zip
Format data (not wipe, format, it's a separate option in TWRP), it should ask you to type yes, so do that.
Flash whatever ROM you want
Hopefully this helps you, I hate finding forum posts marked "solved" but with no instructions. I also tried the "vbmeta_dv_shivsom.img" method some threads mentioned but it didn't work
Here's a pastebin of the guide I used in case the original link goes down
You can get all the files I mentioned from xiaomifirmwareupdater.com and the official TWRP site
Out of all that, the one instruction that solves it is the format data step. This is the magic step required. You always need to do this when flashing over MIUI.
Flashing vendor was totally irrelevant.
This will tell you what you need to do.
Simple Guide to flashing successfully
Here's a quick guide to some of the basics. Which recovery. ---------------------------- Use the latest from here. https://forum.xda-developers.com/k20-pro/development/recovery-unofficial-twrp-xiaomi-redmi-t3944363/post79823568 Do not use Orange...
forum.xda-developers.com
Thanks a lot man! I'm having this issue and it is beyond annoying. I've lost so much time with this BS.
Edit: Does not help actually
I just had the same problem with my Lamentablet.
I was trying stuff up and restarted it in fastboot mode and got stuck there.
So, ways to deal with it:
adb reboot recovery
rebooted the tablet in recovery mode. All I had then was to press the power button to activate Reboot. Solved! From now on it boots normally.
Meanwhile I had discovered that by typing
fasboot continue
the tablet would resume, but at the next reboot cycle, power down + up cycle or reboot after a crash, the tablet would reboot into fastboot mode...
And I found this out when it crashed (it's not called a Lamentablet for nothing!).
Luckily I had a PC with Linux around. It didn't have the software installed but drivers were already in the Kernel and installing adb and fastboot was a matter of mere seconds. If I didn't have an easily ready PC at hand, this tablet would have become a brick until plugged in and rebooted...
OMG Thanks dude.... I'm literally working to installing custom rom on redmi 7a from stock rom but I don't know what reason that make my phone always stuck on fastboot when format data, before this was fine.
Osga21 said:
I think I got it solved, at least I got it to reboot into Android and TWRP.
I used this guide, but I'll write the steps I took here in case you're having the same issue. I wound up using xiaomi.eu MIUI rom, but it shouldn't matter what you use, I'll assume you're stuck in fastboot.
Do "fastboot flash vendor vendor.img", you get this vendor.img from the fastboot version of the official MIUI ROM, after you decompress the .tar.gz it should be in the "images" folder
Do "fastboot flash recovery twrp.img" then "fastboot boot twrp.img", this should flash twrp as your recovery and then boot into it, for some reason it only worked with the official twrp, not orange fox.
Assuming you got into TWRP you should now flash the latest firmware(I got mine from xiaomifirmwareupdater.com) make sure you download just the firmware not the entire rom, mine was named something like fw_raphael_miui... .zip
Format data (not wipe, format, it's a separate option in TWRP), it should ask you to type yes, so do that.
Flash whatever ROM you want
Hopefully this helps you, I hate finding forum posts marked "solved" but with no instructions. I also tried the "vbmeta_dv_shivsom.img" method some threads mentioned but it didn't work
Here's a pastebin of the guide I used in case the original link goes down
You can get all the files I mentioned from xiaomifirmwareupdater.com and the official TWRP site
Click to expand...
Click to collapse
thanks bro. flashing vendor after a format from twrp did the good