Question I messed up my android recovery - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Yesterday i was trying to flash a pixel experience rom on my poco f3 but i was stupid enough to flash it while still in my custom rom. When i tried to flash the pixel recovery it didn't work so i tried doing it again and my phone didn't boot.
It was completely dead , i tried numerous ways but all of them failed .But when i tried holding down both power volume and power button it somehow turned on straight to arrow os. But now when i try booting into recovery mode it straight up boots into the system .I figured that my recovery was messed up so i tried installing twrp through fast boot mode. My phone goes into fastboot mode fine but it doesnot get recognized by my pc .

Get Mi Flash, and install the USB drivers in there.
Then you should be able to do "fastboot boot twrp.img" or the equivalent for OrangeFox.
Make sure to use TWRP or OrangeFox that support Android 12/13 !!!
If you use Windows PowerShell instead of CMD, do "./fastboot boot twrp.img" so basically add "/." before command.
Once in Custom Recovery, install the RamDisk.
Get Full MIUI Recovery ZIP from xiaomifirmwareupdater.com and flash it in Recovery, and then wipe data.
Boot system, then boot back into TWRP/OF and flash your Custom ROM of choice and wipe data afterwards.

Thanks seems like i had some drivers missing i installed twrp and it is working great. Thank you for your time

Related

My OP3 won´t boot into recovery even after flashing stock image via fastboot

Hello everyone,
i think my OP3 is bricked, cuz after i wanted to install new custom ROM with TWRP it went south. When I swiped to install the ROM it showed, it´s corrupt so i wanted so i wanted to push some other .zip to the phone through adb, but no device showed after adb devices or fastboot devices in fastboot. So I tried restore phone from backup i had via TWRP and the phone just wouldnt boot. Oneplus logo showed for a few seconds then it disappears and phone goes dark. Have to hold start button for 10 sec for hard restart phone and then i can go only to fastboot (now it will show fastboot devices in command line). Recovery won´t boot. Tried flashing stock recovery, some versions of TWRP and still just OP logo and dark.
Thanks for every help.
I think for:
fastboot -w
fastboot flash recovery recovery_of_ur_choice.img
on flashboot mode obviously ^^
With that, u must have access to twrp

How can I keep MIUI from overwrite TWRP with stock recovery after a ROM flash?

I'm on fw Global 9.6.6.0.
(Bought the phone 'bogus' unlocked with "fake" 9.6.4.0, bricked it while trying to restore chinese fw and re-lock bootloader using miflash - I'm not doing that again
brought it back to life using the steps from Omer919's thread - thanks Omer919 and Nijel8)
I deleted install-recovery.sh from system/bin using TWRP's file manager before first boot, but it still overwrites MIUI recovery.
It's not a huge deal because I guess I can always fastboot flash twrp before flashing any new ROM, but does anyone have a solution? Much appreciated!
You have to boot to twrp right after flashing.
Go to twrp official site, choose your device and follow exactly instruction to the end.
It wouldnt harm your device if you reboot it to twrp twice.
Thanks, I tried but it reverts to stock recovery. After flashing TWRP in fastboot, I either try Fastboot boot twrp.img or disconnect the cable and hold power and vol+.
Either way, it goes into TWRP, and I make it boot back into TWRP several times with no problem.
But as soon as I boot to System, it reverts to stock.
TWRP site gives me this info (but it didn't work):
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
OMG I found it - Google really is a friend. All I had to do was install Magisk before booting to System.
Below are my exact steps, if that helps someone.
Preliminary:
Download Magisk 17.1 zip, place it on a USB flashdrive.
Install latest magiskmanager apk from Play store (or sideload it if not on the store)
1- In Fastboot:
fastboot flash recovery twrp.img
fastboot boot twrp.img (If all goes well, this boots to TWRP; if prompted for a code, hit cancel)
2- Disconnect the cable.
Reboot to recovery once more (just to make sure, this is probably redundant; hit cancel if prompted for a code)
3- Mount USB-OTG, connect your flashdrive.
Install Magisk.
During the installation, you'll see some red fail lines, but Magisk seems to work around the encryption, just be patient.
4-Reboot System. You're done! Launch MagiskManager. Device is rooted in the process, too. (Verify with a root checker app).
Power Off. Hit Power + volume Up - You should boot to TWRP.
thanks a million McNoob. I was lost, but due to your hints I managed to install Magisk
Hi i cant boot to twrp and it keeps reverting to stock recover..
already tried this "fastboot flash recovery twrp.img
fastboot boot twrp.img (If all goes well, this boots to TWRP; if prompted for a code, hit cancel) "
after sending the last command line the phone reboot but its just black screen.. i try to reboot the phone again and boot it to recovery but still stock recovery is preset.. thanks
Thanks man! It worked for me as well!
Lamantin001 said:
Thanks man! It worked for me as well!
Click to expand...
Click to collapse
How did it work for you
thanks but.... the twrp for nitrogen is corrupted apparently and nothing work

No OS is installed. Moreover recovery cannot be accessed. Nor can flash it via adb.

Previously I was using Ressurection Remix treble rom which is based on android 9 pie. I went to TWRP and wiped the OS. Then I tried to install a new rom called Dot OS. But it showed error 7. So I flashed Vendortofactory zip within twrp and without rebooting again into TWRP I flashed a new TWRP image within TWRP by selecting Recovery mode. After that I cant boot into TWRP and as already my OS is gone I also cannot boot into any system. Moreover my device is not getting detected in my PC. I cannot install TWRP by writing commands in cmd, while the phone is in fastboot mode as the device is not getting detected in my pc. Really it is urgent. I will be glad if someone helps me. Thanks in advance.
What is the present booted state of your device? Are you in twrp, or bootloader. Most of the time you can keep on pressing the power button. When it boots into a message about unlocked bootloader, press volume button to select recovery and it will boot into twrp
You should be able to boot in fastboot mode without recovery nor os, maybe your drivers are not working on windows? Try different usb ports, check if the display says "bootloader" or something. If nothing works try the usb shunt, this device is literally 'unbrickable' if it's working properly.
Watch this video(https://www.youtube.com/watch?v=DexLELi04XY) and then you will be able to detect your phone in your pc in qcom 9008 mode , then use qfil to flash ZUI firmware ,there are plenty of tutorials on the internet for that ,then follow the proper procedure mentioned in DotOs thread for flashing the new rom .
Hope it helped .
If you don't want to flash the firmware and all long process just follow the following steps
Enter in to the boot loader make sure you installed all the drivers in to pc then open cmd windows in adb fastboot folder and enters the following cmd into the cmd
Fastboot -i 0x2b4c devices this will detect your device
After that enter
Fastboot -i0x2b4c flash recovery recovery name.img
And boom you are good to go flash the rom of your choice and enjoy
For this process you need following files
Adb and fastboot devices
Drivers of zuk z2
Latest recovery and place revovery image file into the adb and fastboot folder if you are confused about anything pm me i am not the expert but i faced simillar problem and solved by this method
yashpatel1221 said:
If you don't want to flash the firmware and all long process just follow the following steps
Enter in to the boot loader make sure you installed all the drivers in to pc then open cmd windows in adb fastboot folder and enters the following cmd into the cmd
Fastboot -i 0x2b4c devices this will detect your device
After that enter
Fastboot -i0x2b4c flash recovery recovery name.img
And boom you are good to go flash the rom of your choice and enjoy
For this process you need following files
Adb and fastboot devices
Drivers of zuk z2
Latest recovery and place revovery image file into the adb and fastboot folder if you are confused about anything pm me i am not the expert but i faced simillar problem and solved by this method
Click to expand...
Click to collapse
This assumes u have upgraded bootloader to 4.4 kernal.
U can still boot into twrp.. When the phone is booting up press vol up key and select recovery.. From there boot into twrp. There select f2v or v2f .. Then flash twrp which u want to flash.. Reboot to recovery.. U will get promp no os installed.. Ignore and reboot to recovery . Then again d9 f2v or v2f depending on what rom to install.. Again reboot to recovery... Then flash rom of ur choice.
This procedure is needed when changing from vendor to factory and vice versa.
sanjay.2704 said:
This assumes u have upgraded bootloader to 4.4 kernal.
U can still boot into twrp.. When the phone is booting up press vol up key and select recovery.. From there boot into twrp. There select f2v or v2f .. Then flash twrp which u want to flash.. Reboot to recovery.. U will get promp no os installed.. Ignore and reboot to recovery . Then again d9 f2v or v2f depending on what rom to install.. Again reboot to recovery... Then flash rom of ur choice.
This procedure is needed when changing from vendor to factory and vice versa.
Click to expand...
Click to collapse
I don't understand what you are talking about as i say i am not some kind of technical expert i am here help regarding this i faced similar situation where i am not able to enter into recovery and also not able to enter into the os and when i restart the phone it automatically boot into fast boot mode what ever option i select and i solved my problem by this method

Can't boot in recovery anymore after flashing a recovery in recovery

Hello
I wanted to flash Orange Fox 9 on my redmi note 5 pro, i was on orange fox R10 (because impossible to do a simple factory reset on this recovery don't know why, the dev tried to help me but even him don't know why it don't work)
I flash it trough the recovery R10 (by flashing the recovery.img and check recovery partition in orangefox) , because in fastboot it say "anti rollback failed" but after that, my phone won't boot in recovery mode anymore.
Even if i use "fastboot boot recovery.img" it doesn't work, i tried this command with twrp (who work before but password issue) and the stock recovery miui. It won't start in recovery mode
So i tried the command "fastboot erase recovery" but it also doesn't work the "anti rollback failed" error show out.
The good news is i can still use my phone, but without recovery i can do nothing so i'm looking for a solution to recover the stock recovery of my phone
After all of that, i tried to flash twrp trough the app of the playstore, but it does nothing also. Its seems that my recovery part is corrupted and it can't be replaced by another. .
So what can i do with that, it's a pretty annoying issue..
Thanks in advance
Solution founded :
After i flashes orange fox 9, it was impossible to boot on third party recovery i think.
Because i tried one more time to boot on stock recovery and it work. But after I boot in my stock recovery i was not able to boot in my system
So I tried to go back on orangefox 10 butthere is big issue with the anti rollback and many errors in fastboot like (too many links) (file limit error). It's very hard to perform a simple fastboot because of that.
To bypass it, the phone need to be unplugged, I type the fastboot command (fastboot boot recovery.img) I press enter and fastboot show "waiting for device" and then I plug my phone.
90% of time it work. But I don't know if I let the phone plugged and I do it, it will show me an error.
Anyway, after I just format all partition on the phone then I flashed the stock rom and the phone reboot.
But impossible to factory reset in orange fox which was the original issue and don't Kno Ho to do it

Wiped everything using TWRP and need help restoring.

Hi.
So I was messing around with the twrp custom recovery and (without thinking much of it) wiped everything in the advanced wipe menu :crying: (System, data, EVERYTHING)
I knew I had removed my OS and that I could just use the twrp recovery to install a new rom onto my phone BUT little did I know, when I tried to boot into the custom recovery, it would just loop the screen with the redmi logo
I am still able to boot into fastboot mode, and I have tried to flash the same twrp recovery but with no avail (It still loops the redmi logo screen)
So now I'm here to ask if there is any advice that you could give me to try and fix this problem that I have gotten myself in (I am not worried about deleting any of my personal files. I would just like to get twrp to boot so that I can install another rom)
Thanks in advance to anyone who can help me with this problem :highfive:
Hi, which rom are you trying to install? for android 9 use this recovery https://forum.xda-developers.com/re...overy-unofficial-twrp-recovery-redmi-t4002397, for android 10 this one... https://forum.xda-developers.com/showpost.php?p=82062075&postcount=7...
If what nuvulet said doesn't work, in fastboot, flash the exact same stock ROM you had before, let it boot and then flash TWRP.
nuvulet said:
Hi, which rom are you trying to install? for android 9 use this recovery https://forum.xda-developers.com/re...overy-unofficial-twrp-recovery-redmi-t4002397, for android 10 this one... https://forum.xda-developers.com/showpost.php?p=82062075&postcount=7...
Click to expand...
Click to collapse
Hi, thanks for the fast reply.
The stock android I had before I wiped everything was android 9, MIUI 11. I tried againt to flash the recovery through fast boot but (like before) when I try to boot into the recovery (by holding the volume up button as it reboots), the redmi logo keeps appearing and disappearing and doesn't go to the twrp recovery. At the current moment I don't have any OS installed (since it got deleted when I wiped everything)
Any other leads I could try?
wang1chung said:
If what nuvulet said doesn't work, in fastboot, flash the exact same stock ROM you had before, let it boot and then flash TWRP.
Click to expand...
Click to collapse
I'm not sure how I can flash the stock ROM without the twrp recovery. I had the impression that you needed twrp recovery in order to install ROMs in the first place.
If there is a method to flash a ROM using fastboot, please explain since my unexperienced self has no idea how to do this. :laugh:
Thanks for the fast reply too
Sqorpz said:
I'm not sure how I can flash the stock ROM without the twrp recovery. I had the impression that you needed twrp recovery in order to install ROMs in the first place.
If there is a method to flash a ROM using fastboot, please explain since my unexperienced self has no idea how to do this. :laugh:
Thanks for the fast reply too
Click to expand...
Click to collapse
MiFlash works through fastboot mode. It's also safer to flash with MiFlash, just make sure you have the correct ROM.
I can't find the guide right now, I'm at work
Ok, do you know adb fastboot... if not, follow this guide...
https://forum.xda-developers.com/showthread.php?t=2317790
Install usb adb drivers for RN8P if you don't have, try this for w10...
https://forum.xda-developers.com/redmi-note-8-pro/help/usb-drivers-t4035617
Download twrp for android 9 or android 10 from here...
https://forum.xda-developers.com/showpost.php?p=82115341&postcount=2
Put the recovery (*.img format) into installed adb folder...
Open cmd and navigate to inside adb folder...
Put the phone into fastboot mode (press volume- and power) connect usb and type in console...
adb devices (this start adb server)
Type...
fastboot devices (this return a device number, if not, something is wrong)
Type...
fastboot flash recovery *.img (change * for the name of the recovery file)
Disconnect the phone and press volume+ and power at the same time and now you have twrp intalled...
When start if the data is encrypted, push cancel, go to wipe, go to format data, type "yes", and confirm slide...
Now connect the phone to usb (if not recognize the phone, go to mount, and enable MTP)
Copy the rom in to internal storage for your android twrp version... search here
https://forum.xda-developers.com/redmi-note-8-pro/how-to/redmi-note-8-pro-android-10-public-t4072795
You have several versions... for eu, search in my post...
And the rest, install, select, etc. etc....
nuvulet said:
Ok, do you know adb fastboot... if not, follow this guide...
https://forum.xda-developers.com/showthread.php?t=2317790
Install usb adb drivers for RN8P if you don't have, try this for w10...
https://forum.xda-developers.com/redmi-note-8-pro/help/usb-drivers-t4035617
Download twrp for android 9 or android 10 from here...
https://forum.xda-developers.com/showpost.php?p=82115341&postcount=2
Put the recovery (*.img format) into installed adb folder...
Open cmd and navigate to inside adb folder...
Put the phone into fastboot mode (press volume- and power) connect usb and type in console...
adb devices (this start adb server)
Type...
fastboot devices (this return a device number, if not, something is wrong)
Type...
fastboot flash recovery *.img (change * for the name of the recovery file)
Disconnect the phone and press volume+ and power at the same time and now you have twrp intalled...
When start if the data is encrypted, push cancel, go to wipe, go to format data, type "yes", and confirm slide...
Now connect the phone to usb (if not recognize the phone, go to mount, and enable MTP)
Copy the rom in to internal storage for your android twrp version... search here
https://forum.xda-developers.com/redmi-note-8-pro/how-to/redmi-note-8-pro-android-10-public-t4072795
You have several versions... for eu, search in my post...
And the rest, install, select, etc. etc....
Click to expand...
Click to collapse
Yes, this is the method I used to flash the twrp recovery.
My problem was that even after installing it (using this method), i would still not be able to boot into the recovery.
However, it is fixed now. I used the Mi Flash tool in order to install the stock rom and then installed twrp after that. :good:
wang1chung said:
MiFlash works through fastboot mode. It's also safer to flash with MiFlash, just make sure you have the correct ROM.
I can't find the guide right now, I'm at work
Click to expand...
Click to collapse
I tried this method and IT WORKED!!
After installing Mi flash I was able to download the stock rom and install it through the program without any errors.
I was then able to finally boot into the OS and install twrp recovery, then install the custom rom! :laugh:
Thanks for this method. I would probably still be stuck on the Redmi logo if it weren't for this

Categories

Resources