Hi I've been trying to flash a new recovery image over the recovery that I'm currently using ("cyanogemod recovery" (I understand that this is purely for CM updating)) but I can find no way of doing it. Via fastboot this happens (using mac terminal) after typing "fastboot flash recovery recovery.img:
sending 'recovery' (11044 KB)...
OKAY [ 0.693s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.696s
Do I need to delete the cyanogemod recovery and run this command?
Cheers in advance! (if laymans terms could be used as much as poss that'd be appreciated too!!)
. . I have an old One X here, unused for a looong time. Recently I tried to update it and started the process by updating my Recovery (to TWRP 2.6.3.0). Soon after that I found out that most new ROMs have a new partitioning schema and I needed to switch. When trying to update the recovery, I used the fastboot flash and it went ok:
Code:
$ ./fastboot flash recovery /d/twrp2853-BiG.img
sending 'recovery' (8090 KB)...
OKAY [1.134s]
writing 'recovery'...
(bootloader) Format partition SOS done
OKAY [0.687s]
finished. total time: 1.820s
. . After that I did the "fastboot erase cache":
Code:
$ ./fastboot.exe erase cache
erasing 'cache'...
OKAY [ 0.213s]
finished. total time: 0.213s
. . Then I rebooted into recovery directly--I know about ROMs that flash the stock recovery when first booting, but this is not applicable to this case since I'm in a custom ROM and booting directly to recovery--, but it is still the old recovery (2.6.3.0). I tried flashing older recoveries (2.6.1.0) and repeating the process every way I could think of (more "erase caches", more "flash recovery"ies etc) but I'm stuck in this 2.6.3.0 version. The weird thing is that I flashed this version yesterday and it went all smoothly, no problems at all (flash recovery, erase cache, reboot).
. . Any tips or ideas why it is not working anymore? I want to update it to change to the new layout so I can flash new ROMs, but this it really blocking the process.
Did you try to wipe your HOX including /data as well as /system partition? This - in the guide if how to achieve new storage layout - is one of the important prerequisites and done prior to flashing the TWRP.BIG
Send by the swarm intelligence of my coffee machine (AKA HTC One M9).
dsnunes said:
. . I have an old One X here, unused for a looong time. Recently I tried to update it and started the process by updating my Recovery (to TWRP 2.6.3.0). Soon after that I found out that most new ROMs have a new partitioning schema and I needed to switch. When trying to update the recovery, I used the fastboot flash and it went ok:
Code:
$ ./fastboot flash recovery /d/twrp2853-BiG.img
sending 'recovery' (8090 KB)...
OKAY [1.134s]
writing 'recovery'...
(bootloader) Format partition SOS done
OKAY [0.687s]
finished. total time: 1.820s
. . After that I did the "fastboot erase cache":
Code:
$ ./fastboot.exe erase cache
erasing 'cache'...
OKAY [ 0.213s]
finished. total time: 0.213s
. . Then I rebooted into recovery directly--I know about ROMs that flash the stock recovery when first booting, but this is not applicable to this case since I'm in a custom ROM and booting directly to recovery--, but it is still the old recovery (2.6.3.0). I tried flashing older recoveries (2.6.1.0) and repeating the process every way I could think of (more "erase caches", more "flash recovery"ies etc) but I'm stuck in this 2.6.3.0 version. The weird thing is that I flashed this version yesterday and it went all smoothly, no problems at all (flash recovery, erase cache, reboot).
. . Any tips or ideas why it is not working anymore? I want to update it to change to the new layout so I can flash new ROMs, but this it really blocking the process.
Click to expand...
Click to collapse
I use this program and it works well. http://we.tl/8gYJ8tgcer
Hi !
I'm trying to install the custom recovery TWRP on my LG G4, the "fastboot flash recovery (file)" command works :
Sending 'recovery' (6002 KB) OKAY [ 0.166s]
Writing 'recovery' OKAY [ 0.067s]
Finished. Total time: 0.292s
But then the "fastboot boot (file)" command doesn't ! It says :
Sending 'boot.img' (6002 KB) OKAY [ 0.144s]
Booting FAILED (remote: 'unknown command')
By the way when I try to enter into recovery mod using the power+volume down method it asks If I want to do a factory reset, If I say yes it does it, if I say no it just boot normally, no recovery mod.
By bootloader is unlocked, I checked using the "fastboot getvar unlocked" command, and I have the "your device software cannot be checked for corruption, lock the bootloader" screen.
Do you guys know what's the problem ?
Read the official TWRP thread (also linked in my signature)
Sent from my OnePlus 6T using XDA Labs
Thank you for your help, I managed to make it work
I wiped my device and flashed the latest factory image. I am now trying to install TWRP but fastboot returns the following:
Code:
./fastboot flash recovery ./twrp.img
Sending 'recovery' (65536 KB) OKAY [ 1.860s]
Writing 'recovery' FAILED (remote: 'Not allowed to flash (recovery)')
fastboot: error: Command failed
The bootloader is unlocked, and I have tried relocking and unlocking it to no effect.
pismosi said:
I wiped my device and flashed the latest factory image. I am now trying to install TWRP but fastboot returns the following:
Code:
./fastboot flash recovery ./twrp.img
Sending 'recovery' (65536 KB) OKAY [ 1.860s]
Writing 'recovery' FAILED (remote: 'Not allowed to flash (recovery)')
fastboot: error: Command failed
The bootloader is unlocked, and I have tried relocking and unlocking it to no effect.
Click to expand...
Click to collapse
twrp doesn't work for android 10. please be specific about versions of android and twrp you are using
pismosi said:
I wiped my device and flashed the latest factory image. I am now trying to install TWRP but fastboot returns the following:
Code:
./fastboot flash recovery ./twrp.img
Sending 'recovery' (65536 KB) OKAY [ 1.860s]
Writing 'recovery' FAILED (remote: 'Not allowed to flash (recovery)')
fastboot: error: Command failed
The bootloader is unlocked, and I have tried relocking and unlocking it to no effect.
Click to expand...
Click to collapse
As already noted, TWRP has never worked with 10. If you are on 9 then head over to the dedicated TWRP thread and get yourself up to speed.
if on android 9 it would be fastboot boot twrp. img. (if on Pie)
A/B slot devices don't have a dedicated recovery partition. (reason why flashing to recovery didn't work)
Android 10 doesn't have working TWRP yet. ( can't decrypt data or something)
Dear all,
I'd like to install LineageOS on my Xiaomi Mi 10 Lite (monet).
I'm following the instructions here : https://wiki.lineageos.org/devices/monet/install.
Everything is going well until step "fastboot flash recovery <recovery_filename>.img".
I type "fastboot flash recovery <recovery_filename>.img" and everything seems to be good.
Sending 'recovery' (131072 KB) OKAY [ 4.907s]
Writing 'recovery' OKAY [ 0.571s]
Finished. Total time: 5.484s
But my phone does not power down. And when I try to reboot into the recovery mode (Volume Up + Power), the fastboot screen appears instead of recovery mode.
I also try with "fastboot boot <recovery_filename>.img".
Sending 'boot.img' (131072 KB) OKAY [ 5.044s]
Booting OKAY [ 0.154s]
Finished. Total time: 5.266s
The phone turns off and I reboot into recovery mode with success. I apply "Wipe Data" and go back to Main Menu after, as described.
But I don't find the "Apply Update" option.
Thank you for your help.
Stephane
Windows 10
stephane_p said:
Dear all,
I'd like to install LineageOS on my Xiaomi Mi 10 Lite (monet).
I'm following the instructions here : https://wiki.lineageos.org/devices/monet/install.
Everything is going well until step "fastboot flash recovery <recovery_filename>.img".
I type "fastboot flash recovery <recovery_filename>.img" and everything seems to be good.
Sending 'recovery' (131072 KB) OKAY [ 4.907s]
Writing 'recovery' OKAY [ 0.571s]
Finished. Total time: 5.484s
But my phone does not power down. And when I try to reboot into the recovery mode (Volume Up + Power), the fastboot screen appears instead of recovery mode.
I also try with "fastboot boot <recovery_filename>.img".
Sending 'boot.img' (131072 KB) OKAY [ 5.044s]
Booting OKAY [ 0.154s]
Finished. Total time: 5.266s
The phone turns off and I reboot into recovery mode with success. I apply "Wipe Data" and go back to Main Menu after, as described.
But I don't find the "Apply Update" option.
Thank you for your help.
Stephane
Windows 10
Click to expand...
Click to collapse
Use platform tools instead of Minimial adb and use the flash recovery command, it should work. and be careful if you need to disable
dm verity, i don't know Mi 10 Lite but yup
Spuffyffet said:
Use platform tools instead of Minimial adb and use the flash recovery command, it should work. and be careful if you need to disable
dm verity, i don't know Mi 10 Lite but yup
Click to expand...
Click to collapse
Thank you for your help.
I downloaded and used platform tools as described in LineageOS Wiki. And then, I used windows cmd for the adb and the fastboot commands.
stephane_p said:
Thank you for your help.
I downloaded and used platform tools as described in LineageOS Wiki. And then, I used windows cmd for the adb and the fastboot commands.
Click to expand...
Click to collapse
However, it's still not working. I have the same issue.
stephane_p said:
However, it's still not working. I have the same issue.
Click to expand...
Click to collapse
well use "fastboot reboot recovery"
Spuffyffet said:
well use "fastboot reboot recovery"
Click to expand...
Click to collapse
I used reboot recovery. I got:
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.000s
But the fastboot screen is still here
stephane_p said:
I used reboot recovery. I got:
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.000s
But the fastboot screen is still here
Click to expand...
Click to collapse
Use this brother: https://developer.android.com/studio/releases/platform-tools
you probably used Minimial ADB, it's the same but just use Platform tools (The one's i just sent)
Spuffyffet said:
Use this brother: https://developer.android.com/studio/releases/platform-tools
you probably used Minimial ADB, it's the same but just use Platform tools (The one's i just sent)
Click to expand...
Click to collapse
I downloaded platform-tools zip file (r33.0.0 for windows) and extract it in C:\Android\platform-tools
Then, I retry
C:\Android\platform-tools>fastboot flash recovery recovery.img
Sending 'recovery' (131072 KB) OKAY [ 5.415s]
Writing 'recovery' OKAY [ 0.586s]
Finished. Total time: 6.017s
C:\Android\platform-tools>fastboot reboot recovery
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.000s
But, I still get the fastboot screen instead of recovery mode.
Thank you for your help.
Have you tried with another recovery image, like TWRP ?
mgkdv said:
Have you tried with another recovery image, like TWRP ?
Click to expand...
Click to collapse
well i have and it worked for me
mgkdv said:
Have you tried with another recovery image, like TWRP ?
Click to expand...
Click to collapse
I've tried with twrp but I get:
C:\Android>fastboot boot twrp_recovery.img
Sending 'boot.img' (131072 KB) OKAY [ 4.944s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
stephane_p said:
I've tried with twrp but I get:
C:\Android>fastboot boot twrp_recovery.img
Sending 'boot.img' (131072 KB) OKAY [ 4.944s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
Click to expand...
Click to collapse
You are using the wrong command bro, don't use boot. Use "fastboot flash recovery twrp_recovery.img". Why are you flashing recovery.img as boot bro?
OK guys I've found my mistake. I thought the model of my phone was Monet. But it's not. It's Toco... A stupid error showing that I have to be more rigorous.
I thank you again for your help. All the best for xda.
See you