Question How to install ofox/twrp using PE recovery? - Redmi Note 10

The fastboot method for flashing ofox/twrp is not working but i was able to install PE recovery.

DarkMatrix204 said:
The fastboot method for flashing ofox/twrp is not working but i was able to install PE recovery.
Click to expand...
Click to collapse
1) flash any another rom which doesn't have recovery moved to vendor_boot then you can flash twrp/ofox but i'm not sure about that
2) flash miui through MiFlash and then boot into TWRP and flash it
i personally used the 2nd way

alonsoj636 said:
1) flash any another rom which doesn't have recovery moved to vendor_boot then you can flash twrp/ofox but i'm not sure about that
2) flash miui through MiFlash and then boot into TWRP and flash it
i personally used the 2nd way
Click to expand...
Click to collapse
Mi flash gives me an unhandled exception error when I select the firmware folder. I can press the continue button and my device is shown, but not sure if such a good idea to try flashing without resolving prior message??

Spaceboy60 said:
Mi flash gives me an unhandled exception error when I select the firmware folder. I can press the continue button and my device is shown, but not sure if such a good idea to try flashing without resolving prior message??
Click to expand...
Click to collapse
Use this MiFlash Tool... it always worked flawlessly for me everytime i need to go back to miui
Link : MiFlash Tool 2021.2.26
Also , make sure that you have drivers installed

Try to flash original vendor_boot. Extract it from latest fastboot rom
fastboot flash vendor_boot vendor_boot.img
Then try to boot twrp
fastboot boot twrp.img
If it boots go to advanced and select flash current twrp

Related

OK so bootloader unlocker now what to do ? Help needed.

So, after unlocking the bootloader (officially) of my redmi note 3 pro i am willing to do the following:
first, i am wanting to backup my full miui rom and everything including data,system,etc.-SO THE QUESTION IS HOW DO I DO IT? CAN I USE TWRP OFFICIAL TO BACKUP AND RESTORE MY MIUI ROM AND HOPE NOTHING WILL HAPPEN???????
second,if i want to flash twrp which one should be appropriate for me (I think twrp offcial?) and also how to flash the twrp recovery??????
that's all i need for now ANY HELP WILL BE ACCOMPANIED(please anyone i am really excited now!!!!!!!)
Thanks in advance.
Download ZCX ....
https://m.youtube.com/watch?v=V7-UZpgwW5E
ZCX TWRP by BY~XM: http://www.miui.com/thread-5317106-1-1.html
Download the img file down in forum op and rename it to TWRP.img for ease
Install Minimal ADB
Boot your phone to the Fastboot mode
Open cmd.exe and execute the command to flash recovery
fastboot flash recovery TWRP.img
execute the command to boot twrp (If you don't MIUI will ocerwrite It)
fastboot boot TWRP.img
I recommend you to backup every partition first.
Open Backup and choose everything
Brkge said:
ZCX TWRP by BY~XM: http://www.miui.com/thread-5317106-1-1.html
Download the img file down in forum op and rename it to TWRP.img for ease
Install Minimal ADB
Boot your phone to the Fastboot mode
Open cmd.exe and execute the command to flash recovery
fastboot flash recovery TWRP.img
execute the command to boot twrp (If you don't MIUI will ocerwrite It)
fastboot boot TWRP.img
I recommend you to backup every partition first.
Open Backup and choose everything
Click to expand...
Click to collapse
So I planned to install a custom kernel that is GUYVER kernel. So will zcx twrp be able to flash the custom kernel on miui rom. Please also let me know if this kernel is for stable or developer rom?.?!
Androbots said:
So I planned to install a custom kernel that is GUYVER kernel. So will zcx twrp be able to flash the custom kernel on miui rom. Please also let me know if this kernel is for stable or developer rom?.?!
Click to expand...
Click to collapse
Yes , zcx can flash anything you want. Guyver kernel for miui marshmallow (both stable and dev.). But why you want to flash Guyver kernel. There are many stable kernel available.
Brkge said:
ZCX TWRP by BY~XM: http://www.miui.com/thread-5317106-1-1.html
Download the img file down in forum op and rename it to TWRP.img for ease
Install Minimal ADB
Boot your phone to the Fastboot mode
Open cmd.exe and execute the command to flash recovery
fastboot flash recovery TWRP.img
execute the command to boot twrp (If you don't MIUI will ocerwrite It)
fastboot boot TWRP.img
I recommend you to backup every partition first.
Open Backup and choose everything
Click to expand...
Click to collapse
Rameshwar Choudhary said:
Yes , zcx can flash anything you want. Guyver kernel for miui marshmallow (both stable and dev.). But why you want to flash Guyver kernel. There are many stable kernel available.
Click to expand...
Click to collapse
Because this kernel provides quick charge 2.0 suppprt
Androbots said:
So, after unlocking the bootloader (officially) of my redmi note 3 pro i am willing to do the following:
first, i am wanting to backup my full miui rom and everything including data,system,etc.-SO THE QUESTION IS HOW DO I DO IT? CAN I USE TWRP OFFICIAL TO BACKUP AND RESTORE MY MIUI ROM AND HOPE NOTHING WILL HAPPEN???????
second,if i want to flash twrp which one should be appropriate for me (I think twrp offcial?) and also how to flash the twrp recovery??????
that's all i need for now ANY HELP WILL BE ACCOMPANIED(please anyone i am really excited now!!!!!!!)
Thanks in advance.
Click to expand...
Click to collapse
I'm using TWRP official
It works perfectly but remove password/pin from ROM before backing it up

Update LineageOS

Hello,
some weeks ago I installed LinegeOS on my Redmi Note 4. I unlocked bootloader and tried flash TWRB but when i reboot my phone to recovery, MI recovery appear. So I somewhere in XDA found that it is normal and I must boot to recovery via terminal using fastboot. So I booted to recovery using this command
Code:
fastboot boot twrp.img
and flashed LineageOS.
Now when I open Settings->Updates (or something like this) and click on Install updates, it just prepare updates, reboot (probably try reboot to recovery) and nothing happen. I found that I can update it manually but I cannot found downloaded updates in my phone and also I am worried that I loose all my data using this way.
So my question is: How can I update my phone without resetting and loosing all data? My current version of LineageOS is 14.01-NIGHTLY. I have Redmi note 4 global version, Snapdragon.
Just go to lineage official downloads site and dwnld latest nightly and then flash manually ...i think open recovery script that alloow automatic flash isn't stable ...so do it manually ....
try erasing the recovery and reflash it.
fastboot erase recovery
fastboot flash recovery recovery(choosen by you or redwolf).img
fastboot erase cache
fastboot reboot
Sectorian said:
try erasing the recovery and reflash it.
fastboot erase recovery
fastboot flash recovery recovery(choosen by you or redwolf).img
fastboot erase cache
fastboot reboot
Click to expand...
Click to collapse
I have done it but now I got Error 7 when I try to flash update.
Thanks for reply!
achjaj said:
I have done it but now I got Error 7 when I try to flash update.
Thanks for reply!
Click to expand...
Click to collapse
Update your TWRP (3.2.1.0) and update your firmware. There's a thread with different firmwares in the development section
Noter2017 said:
Update your TWRP (3.2.1.0) and update your firmware. There's a thread with different firmwares in the development section
Click to expand...
Click to collapse
I updated TWRP and flashed firmware from: https://forum.xda-developers.com/redmi-note-4/xiaomi-redmi-note-4-snapdragon-roms-kernels-recoveries--other-development/firmware-firmwares-mido-global-beta-t3746333(stable global) but I still got error 7.
achjaj said:
I updated TWRP and flashed firmware from: https://forum.xda-developers.com/redmi-note-4/xiaomi-redmi-note-4-snapdragon-roms-kernels-recoveries--other-development/firmware-firmwares-mido-global-beta-t3746333(stable global) but I still got error 7.
Click to expand...
Click to collapse
Use redwolf recovery.
achjaj said:
I updated TWRP and flashed firmware from: https://forum.xda-developers.com/re...re-firmwares-mido-global-beta-t3746333(stable global) but I still got error 7.
Click to expand...
Click to collapse
Please share the file names of your ROM zip file and TWRP .img file.

Successfully unbricked mi 9t

I would like to share my experienced how to unbricked my phone that stock on fastboot mode.why my phone is brick? The reason why my phone brick just because i restore the wrong system with the other vendor from china to miuimix and after restore it, it stock on fastboot mode unable to recover backup or to load in recovery mode. It didn't also turn off. l try to use miflash tool but it didn't work because of authorization not match to my phone, i tried other fastboot rom but it didnt work.. Try to boot twrp using fastboot boot but it didn't show any. I came up with the idea to flash. Img using cmd into the system that i restore, begin with the boot.img nothing will happen. Until i flash the vbmeta.img, then it begin to show boot img and eventually access twrp. I wiped everything and flash again a brandnew rom miui12 and it works well now.. Hope it will help to others to have an idea to unbrick there phone. ☺☺☺
flamedrops said:
I would like to share my experienced how to unbricked my phone that stock on fastboot mode.why my phone is brick? The reason why my phone brick just because i restore the wrong system with the other vendor from china to miuimix and after restore it, it stock on fastboot mode unable to recover backup or to load in recovery mode. It didn't also turn off. l try to use miflash tool but it didn't work because of authorization not match to my phone, i tried other fastboot rom but it didnt work.. Try to boot twrp using fastboot boot but it didn't show any. I came up with the idea to flash. Img using cmd into the system that i restore, begin with the boot.img nothing will happen. Until i flash the vbmeta.img, then it begin to show boot img and eventually access twrp. I wiped everything and flash again a brandnew rom miui12 and it works well now.. Hope it will help to others to have an idea to unbrick there phone.
Click to expand...
Click to collapse
Could you explain? My phone is stuck at fastboot and my pc doesn't detect the phone.
if u could access your phone via fastboot / adb then it wasn't a hardbrick , just a softbrick
TahmidZee said:
Could you explain? My phone is stuck at fastboot and my pc doesn't detect the phone.
Click to expand...
Click to collapse
You should check first the driver of your computer. Make sure you have the driver of your phone to your computer. After that you can check your device via adb by using commnd on cmd "adb devices".
instructions to flash:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase recovery
fastboot flash recovery twrp-3.3.1-0-davinci.img
link: https://dl.twrp.me/davinci/twrp-3.3.1-0-davinci.img
w595shubham said:
instructions to flash:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase recovery
fastboot flash recovery twrp-3.3.1-0-davinci.img
link: https://dl.twrp.me/davinci/twrp-3.3.1-0-davinci.img
Click to expand...
Click to collapse
VERY VERY THANX A LOT MAN...THX THX THX:highfive:
flamedrops said:
I would like to share my experienced how to unbricked my phone that stock on fastboot mode.why my phone is brick? The reason why my phone brick just because i restore the wrong system with the other vendor from china to miuimix and after restore it, it stock on fastboot mode unable to recover backup or to load in recovery mode. It didn't also turn off. l try to use miflash tool but it didn't work because of authorization not match to my phone, i tried other fastboot rom but it didnt work.. Try to boot twrp using fastboot boot but it didn't show any. I came up with the idea to flash. Img using cmd into the system that i restore, begin with the boot.img nothing will happen. Until i flash the vbmeta.img, then it begin to show boot img and eventually access twrp. I wiped everything and flash again a brandnew rom miui12 and it works well now.. Hope it will help to others to have an idea to unbrick there phone.
Click to expand...
Click to collapse
Can u please explain it. I am stuck with the same problem. I got success in flashing fastboot rom via miflash tool but it's still stuck in fastboot.
Thanks God Bless You.
---------- Post added at 05:01 PM ---------- Previous post was at 04:36 PM ----------
Deaddo6 said:
VERY VERY THANX A LOT MAN...THX THX THX:highfive:
Click to expand...
Click to collapse
This Helped You guys are angel
w595shubham said:
instructions to flash:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase recovery
fastboot flash recovery twrp-3.3.1-0-davinci.img
link: https://dl.twrp.me/davinci/twrp-3.3.1-0-davinci.img
Click to expand...
Click to collapse
I have the same problem. I tried also this one, but nothing.
Everything goes ok in CMD, but when I type:
fastboot boot twrp.img
I get:
FAILED (remote: Failed to load/authenticate boot image: Load Error)
I still can't go in Recovery, neither turn off the phone. How solve this?!
dix93 said:
I have the same problem. I tried also this one, but nothing.
Everything goes ok in CMD, but when I type:
flash boot twrp.img
I get:
FAILED (remote: Failed to load/authenticate boot image: Load Error)
I still can't go in Recovery, neither turn off the phone. How solve this?!
Click to expand...
Click to collapse
flash boot twrp.img?
What do you wanna do?
If you want to boot into TWRP it should be
Code:
fastboot boot recovery "name-of- recovery.img"
If you want to flash TWRP it should be
Code:
fastboot flash recovery "name-of-recovery.img"
Your command
fastboot flash boot twrp.img should flash the recovery image over the boot image?
If you want to boot into twrp you should use the command above.
As far as I know not every device/firmware is able to boot into TWRP. It seems other users were able to do so with a mi 9t so my advice would be:
- Try another usb port / cable.
- Check twice if you renamed the twrp image correctly
- Try another twrp version (older one or unofficial)
w595shubham said:
instructions to flash:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase recovery
fastboot flash recovery twrp-3.3.1-0-davinci.img
link: https://dl.twrp.me/davinci/twrp-3.3.1-0-davinci.img
Click to expand...
Click to collapse
Wolfcity said:
flash boot twrp.img?
What do you wanna do?
If you want to boot into TWRP it should be
Code:
fastboot boot recovery "name-of- recovery.img"
If you want to flash TWRP it should be
Code:
fastboot flash recovery "name-of-recovery.img"
Your command
fastboot flash boot twrp.img should flash the recovery image over the boot image?
If you want to boot into twrp you should use the command above.
As far as I know not every device/firmware is able to boot into TWRP. It seems other users were able to do so with a mi 9t so my advice would be:
- Try another usb port / cable.
- Check twice if you renamed the twrp image correctly
- Try another twrp version (older one or unofficial)
Click to expand...
Click to collapse
Thank you. Actually I was confused in the transcript here, I meant fast boot instead of flash.
But I figured out to use XiaomiFlash Tool to install a ROM via fastboot, and then reinstall a recovery.
The popup camera is not working good with the XIAOMI official rom (It tries to close the cam even if it is already closed). Now I'm trying to install Havoc OS to try to solve those problem, but it demands me the miui v11.0.4 or new (error in twrp), even if I have the miui v12.... trying to figure out why
for the guys whome are stuck on fastboot, you may try "XiaoMiTool V2". this bought my Mi9T from fastboot to life.
make sure all the drivers are installed as well. what's better is install usb drivers, reboot computer, enable usb debugging, connect the phone to computer, select transfer data, wait till the computer completely setup your phone, turn off phone and connect to computer, wait till computer detects and setup, put the phone on fastboot mode and connect, check whether computer shows android device... once everything are confirmed then proceed with flasing.. :good::good:
w595shubham said:
instructions to flash:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase recovery
fastboot flash recovery twrp-3.3.1-0-davinci.img
link: https://dl.twrp.me/davinci/twrp-3.3.1-0-davinci.img
Click to expand...
Click to collapse
This command - fastboot flash vbmeta worked.
(using a version from Redispade for Grus - mi9se)
Unbricked my bootloop (recovery) after upgrading from miui 12 (android 10) to 12.5 android 11.
thanks!

Cannot enter Recovery any more - maybe switched too hastily between android 9 and 10?

I have a problem that i never make it into recovery again. I am used to adb/fastboot, this is my 5th device and i happily used different custom roms as lineage, havoc, crdroid for about 7 years and thus am familiar with the concepts of a/b, recovery, adb/fastboot and so on.
Now, when i "flash_all" with stock from here (V10.3.17.0.PFQEUXM) on my a3, i suppose both slots a and b are overwritten with stock. interestingly this stock rom only boots in a-slot, not in b-slot.
when i now just "fastboot flash recovery twrp...." with 3.3.1.2 and hit the manual enter to recovery (power + vol up), i just get a "no command" error - no twrp in sight.
i also tried this with flash_all V11.0.2.0.QFQEUXM rom (a10) and fastboot flash recovery twrp 3.3.1-17 Q from mauronofrio - same result.
anyone knows what i did wrong?
basically i didnt enter team win recovery for some good amount of tries which slightly terrifies me at this point. (help)
Should i use the global versions instead of the europe ones? Do i need to use "fastboot flash BOOT twrp.." instead of "fastboot flash recovery twrp.."?
I am also happy for suggestions where i could pose this issue more appropriate.
//update: i am now in stock rom and could root it with flashing a magisked boot.img but still cannot enter twrp recovery (-> "no command").
Ya you entered the wrong command it's
Code:
fastboot flash boot twrp.img
When you boot to twrp make sure to flash stock boot.img of the firmware which you are currently running and then flash twrp installer.zip flash both of these in twrp and do not reboot between flashes
thanks @garylawwd
garylawwd said:
Ya you entered the wrong command it's
Code:
fastboot flash boot twrp.img
Click to expand...
Click to collapse
So to be sure: i have stock 11.0.3.0 europe from here installed and i am in slot a now and i cannot go into twrp because it says "no command".
i go to fastboot now, then
Code:
fastboot flash boot twrp.img
with a recent twrp that can run android 10 from here and then power + vol up without switching slots.
garylawwd said:
When you boot to twrp make sure to flash stock boot.img of the firmware which you are currently running and then flash twrp installer.zip flash both of these in twrp and do not reboot between flashes
Click to expand...
Click to collapse
how can i flash a boot.img from twrp? i thought, i can only flash .zips from twrp? Also do i need to take spacial measures to be able to read internal memory in twrp?
//edit: i tried to flash named twrp but it wouldnt boot up into recovery, instead went straight into fastboot. so i flashed boot with stock boot again. no solution in sight.
Just FYI - "no command" is default welcome page of stock recovery. If you see it, you don't have TWRP installed.
_mysiak_ said:
Just FYI - "no command" is default welcome page of stock recovery. If you see it, you don't have TWRP installed.
Click to expand...
Click to collapse
Thank you. Still i would expect twrp to open.
Am i using a/b wrong? When i am on slot a and go into fastboot anf fastboot flash boot twrp.img, then i expect twrp to be installed in a, is that correct? Or is it always installed in the inactive slot and thus i had to switch to slot b before i install twrp to have it on a?
tutankpusch said:
Thank you. Still i would expect twrp to open.
Am i using a/b wrong? When i am on slot a and go into fastboot anf fastboot flash boot twrp.img, then i expect twrp to be installed in a, is that correct? Or is it always installed in the inactive slot and thus i had to switch to slot b before i install twrp to have it on a?
Click to expand...
Click to collapse
No idea with TWRP, never used it on this phone, Magisk is enough for me. But I would follow one of the available guides if you need to have TWRP installed.
_mysiak_ said:
No idea with TWRP, never used it on this phone, Magisk is enough for me. But I would follow one of the available guides if you need to have TWRP installed.
Click to expand...
Click to collapse
Thanks @mysiak_d
I used for example this method with this recovery bc it should work with android 10.
straight into fastboot instead recovery :/

Question Unable to mount storage when trying to ADB sideload

I can't install any rom, ADB sideload fails with this error:
Unable to mount storage.
Devices on super may not mount until rebooting recovery.
To flash additional zips, please reboot recovery to switch to the updated slot.
I already tried to switch the slots many times.
I also tried to format data, but it tells me:
E: unable to check merge status
Updating partition details...
...done
Unable to mount storage
I can access the recovery and the factory-reset android, but i can't do anything more.
I think the problem is relative to encryption but I can't even format data, so I don't know how to escape this...
Now I can't even access the rom, I can only access TWRP and fastboot. The problem is that format data does not work, with the same error:
E: unable to check merge status
I tried repairing and changing filesystem, now I don't really know what to do...
just install rom using fast boot tool and
format data after that
muneeb rizwan said:
just install rom using fast boot tool and
format data after that
Click to expand...
Click to collapse
I have never used fastboot tool. I'm on linux. Is this the program i must install?
And also, do I need a fastboot rom?
[Tool] Flash Custom ROMs through Fastboot [mojito / sunny]
Are you struggling to install custom roms on this device? Lots of recovery errors? Can't boot to any rom? Don't worry. Fastboot is a good way to avoid such nonsense... Install any custom rom & miui recovery rom through fastboot Steps: 1...
forum.xda-developers.com
USE THIS TOOL AND YOU DONT NEED FASTBOOT ROM
Ok, i installed CrDroid with fastboot tool, then format data and then re-flashed the rom with adb, but the phone starts just on the CrDroid recovery (slot b) or on fastboot (slot a)...
What is the correct process to install a ROM? This A/B thing gets me mad
Now I managed to install an old MIUI fastboot rom from this link with XiaomiADBFastbootTools (a kind of mi flash tool for linux) and this rom now it is working, so I think I had some problems with the fastboot tool you suggested. But I don't really know what was the problem, the installation process seemed to work, It restarted to recovery, I rebooted to system but then it kept returning to recovery or to fastboot without entering in the system...
Switching slots directly in recovery is not functional. Just look after switching what the active slot is and you will see that it has not changed. Do the slot switching with the fastboot command from the PC.
fastboot --set-active=a
fastboot --set-active=b
StaryMuz said:
Switching slots directly in recovery is not functional. Just look after switching what the active slot is and you will see that it has not changed. Do the slot switching with the fastboot command from the PC.
fastboot --set-active=a
fastboot --set-active=b
Click to expand...
Click to collapse
yes, I was using these commands to switch slots. but when it is necessary to switch slots in the flashing process? I mean, what is the correct order? format - flash rom with adb - reboot to fastboot - switch slot - reboot to system...is this correct?
Slot swapping may not be required. Do it only when it is requested or when the boot crashes into recovery.
StaryMuz said:
Slot swapping may not be required. Do it only when it is requested or when the boot crashes into recovery.
Click to expand...
Click to collapse
OK, so is this the correct order?
Format - flash rom with adb - reboot to system
Now I have a problem with fastboot...I don't know why but it can't boot any recovery...
"fastboot boot recovery.img" remains stuck at:
Sending 'boot.img' (131072 KB)
Click to expand...
Click to collapse
and nothing happens! I tried with TWRP and OrangeFox.
I also tried to change slot but it fails:
fastboot --set-active=a
Setting current slot to 'a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Click to expand...
Click to collapse
The command 'Fastboot reboot' gives me a black screen with a white message: 'any key to shutdown', then the phone reboots to system...
What is the full designation of your phone?
StaryMuz said:
What is the full designation of your phone?
Click to expand...
Click to collapse
what is the designation?
Xiaomi Redmi Note .....
All of it, exactly.
StaryMuz said:
Xiaomi Redmi Note .....
All of it, exactly.
Click to expand...
Click to collapse
Redmi Note 10 64GB/4GB, I think the codename is sunny because I have the global/european version. Do you need more?
I think the best step is to upload the original Miui using MiFlash with the "clear all" setting.
Use this version of MiFlash.
You can get the right Miui here.
Before using MiFlash, I recommend loading the boot.img included in the downloaded Miui into your phone in fastboot mode.
Use the command:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
Then use MiFlash and don't play Miui. Wait until the phone starts itself, then you can disconnect it.
If anything is not clear, ask questions.
StaryMuz said:
I think the best step is to upload the original Miui using MiFlash with the "clear all" setting.
Use this version of MiFlash.
You can get the right Miui here.
Before using MiFlash, I recommend loading the boot.img included in the downloaded Miui into your phone in fastboot mode.
Use the command:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
Then use MiFlash and don't play Miui. Wait until the phone starts itself, then you can disconnect it.
If anything is not clear, ask questions.
Click to expand...
Click to collapse
Actually I'm already in a original MIUI and it is working. My pc is on linux so I can't use MiFlash but I used XiaomiADBFastbootTools (a kind of MiFlash tool for linux). Can I start from here or I have to install the MIUI version you linked?
The only thing is that I didn't specifically load the boot.img
Unfortunately I don't know the Linux version of MiFlash. They may not work equivalently. It needs to properly clean all the partitions of the phone and load all the files supplied in the ROM.
I recommend to use the Miui listed by me.

Categories

Resources