recovery missed when i try to flash wiith twrp - Miscellaneous Android Development

hello everyone
i unlocked my redmi 4 prime in official way
then flash twrp and after that try to flash global rom that i download from here
but now my phone stuck on mi logo(bootloop)
official recovery and twrp recovery are missed now and just fastboot mode are available please give me a way to directly use fastboot command (without mi- flashtools) to flash china or global rom
in fact i dont know which files( files that is in tgz file) must select to flash with fastboot flash command
thanks.

fastboot flash recovery FILENAME.img
The file must be in the root folder of ADB, the filename could be recovery.img or twrp.img too.

Related

Honor 6x stuck in Recovery

Hey Guys,
I've tried to root my phone and while falshing the TWRP Recovery an Error occured.
Code:
C:\adb>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.754s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 0.763s
So I thought I could exit the menu by typing "fastboot reboot". Now I'm stuck in in that startup window "Your device has been unlocked and can´t be trusted" and have 3 options:
(1) Press Power Key to continue.
(2) Press Vol...
(3) ...
If I press the power button its just rebooting and everything starts from beginning and if I'm trying to recover it my phone cant connect to the wifi "Getting package info failed".
HiSuite and usb debugging aren´t working.
Did I broke my Phone or is there a way to fix it?
Sorry for my bad englich ^^.
Thank you! Musark.
Hi,
Musark said:
fastboot boot twrp.img
Click to expand...
Click to collapse
this is the wrong command for flashing a recovery. You should type: "fastboot flash recovery twrp.img".
In case you still get this error then:
Musark said:
FAILED (remote: Command not allowed)
Click to expand...
Click to collapse
It's usually because your bootloader is still or again locked.
LinuxKernel said:
Hi,
this is the wrong command for flashing a recovery. You should type: "fastboot flash recovery twrp.img".
In case you still get this error then:
It's usually because your bootloader is still or again locked.
Click to expand...
Click to collapse
I followed the tutorial "How to Root Honor 6X [100% Working]" from CyberKey (can't post links at the moment).
Everything was fine until I wanted to boot my phone.
At least i want to use my Phone.
I rode a lot about dload but I've only found tutorials where i need access to my phone.
Could someone give me a link for a tutorial?
Musark said:
I followed the tutorial "How to Root Honor 6X [100% Working]" from CyberKey (can't post links at the moment).
Everything was fine until I wanted to boot my phone.
Click to expand...
Click to collapse
It's because the tutorial you followed is wrong when it comes to flashing the twrp recovery. It seems like you flashed the recovery image to the wrong partition (boot).
If you want to install a custom rom:
1. Put your phone into fastboot mode
2. Use the command: fastboot flash recovery twrp.img
3. Flash any custom rom
If you want to get the stock rom running again:
Way1:
1. Download the right stock recovery for your phone (marshmallow recovery if you want to flash marshmallow and nougat recovery if you want to install the nougat stock rom)
2. Put your phone into fastboot mode
3. Use the command: fastboot flash recovery recovery.img
4. Download the right firmware for your phone and extract the files
5. Create the "dload" folder on your external sd card
6. Put the update.app from the extracted files into your "dload" folder
7. Power off your phone
8. Hold volume up + volume down + power button until the honor logo appears. Wait until the phone boots into stock recovery and installs the stock rom.
Way2.
1. If you know which version of stock rom you had installed, e.g. B360 you can download the same firmware version again.
2. Use huawei firmware extractor to extract recovery.img and boot.img
3. Put your phone into fastboot mode
4. Use the command: fastboot flash recovery recovery.img
5. Use the command: fastboot flash boot boot.img
6. Reboot your phone (fastboot reboot)
In general you can also install any rom via fastboot:
fastboot flash boot boot.img
fastboot flash cust cust.img
fastboot flash system system.img
fastboot flash recovery recovery.img
LinuxKernel said:
If you want to get the stock rom running again:
Way1:
1. Download the right stock recovery for your phone (marshmallow recovery if you want to flash marshmallow and nougat recovery if you want to install the nougat stock rom)
2. Put your phone into fastboot mode
3. Use the command: fastboot flash recovery recovery.img
4. Download the right firmware for your phone and extract the files
5. Create the "dload" folder on your external sd card
6. Put the update.app from the extracted files into your "dload" folder
7. Power off your phone
8. Hold volume up + volume down + power button until the honor logo appears. Wait until the phone boots into stock recovery and installs the stock rom.
Click to expand...
Click to collapse
Wow Thanks, I've only 1 question. My computer isnt noticing that my phone is connected with him via usb.
How can i access my sd card without HiSuite or usb debugging? I could also put my sd card in a diffrent phone, but i think thats not the usual way.
Musark said:
Wow Thanks, I've only 1 question. My computer isnt noticing that my phone is connected with him via usb.
How can i access my sd card without HiSuite or usb debugging? I could also put my sd card in a diffrent phone, but i think thats not the usual way.
Click to expand...
Click to collapse
If you have no running rom on your phone, then as far as I know only via TWRP or as you already mentioned by another phone.
My phone is working fine now thanks.
Musark said:
My phone is working fine now thanks.
Click to expand...
Click to collapse
Good, next time, try installing it through TWRP app (if you are rooted) it's easier
LinuxKernel said:
It's because the tutorial you followed is wrong when it comes to flashing the twrp recovery. It seems like you flashed the recovery image to the wrong partition (boot).
If you want to install a custom rom:
1. Put your phone into fastboot mode
2. Use the command: fastboot flash recovery twrp.img
3. Flash any custom rom
If you want to get the stock rom running again:
Way1:
1. Download the right stock recovery for your phone (marshmallow recovery if you want to flash marshmallow and nougat recovery if you want to install the nougat stock rom)
2. Put your phone into fastboot mode
3. Use the command: fastboot flash recovery recovery.img
4. Download the right firmware for your phone and extract the files
5. Create the "dload" folder on your external sd card
6. Put the update.app from the extracted files into your "dload" folder
7. Power off your phone
8. Hold volume up + volume down + power button until the honor logo appears. Wait until the phone boots into stock recovery and installs the stock rom.
Way2.
1. If you know which version of stock rom you had installed, e.g. B360 you can download the same firmware version again.
2. Use huawei firmware extractor to extract recovery.img and boot.img
3. Put your phone into fastboot mode
4. Use the command: fastboot flash recovery recovery.img
5. Use the command: fastboot flash boot boot.img
6. Reboot your phone (fastboot reboot)
In general you can also install any rom via fastboot:
fastboot flash boot boot.img
fastboot flash cust cust.img
fastboot flash system system.img
fastboot flash recovery recovery.img
Click to expand...
Click to collapse
i tried all previous mensioned method
i got stock firm ware and some custom rom from huawei support and xda developers
i tried dload method saying system update failed
itried fastboot flash recovery twrp.img
done
but i tried adb reboot recovery saying device not found
tried fastboot reboot done
my previous version was BLN-L22C675B360
please provied me with suitable firm ware and way to flash it
or tell me atleast how to go to twrp on fastboot mode when adb reboot recovery saying device not found
Thanks in advance
rom link plz
Musark said:
My phone is working fine now thanks.
Click to expand...
Click to collapse
give me rom link please on message or how did u get access to twrp tell me

Z3 Dual [D6633] - Don't boot in to recovery

Hello guys, I don't have no more idea to fix it.
Today I unlocked my bootloader, all was Stock and no Root. I want try This Lineage OS 15 and is mandatory flash the TWRP to install the Rom.
OK, I unlocked my bootloader and downloaded TWRP Dual Version, extracted the img file from zip and flashed in fastboot mode like the tutorial says: fastboot flash FOTAKernel recovery.img
the flash was donne fine but I can't enter in recovery mode, I tryed in adb adb reboot recovery but isn't work too, anyone have an idea?
Attached some images to explain...
Sorry for my bad english.
Forget, xkeita give me a tip and I can now enter in recovery, I suppose that the Stock kernel don't boot it, just flashed the Kernel rom that I want to use and in sequence, flahsed the TWRP and it worked.
Sumary:
1. I extracted the Boot.img from ROM ZIP and flashed it with: fastboot flash boot boot.img
2. I Extracted the TWRP IMG and flashed it with: fastboot flash FOTAKernel recovery.img
reboot the phone, and turn on pressing vol key down ultil boot in TWRP.
Maybe this is usual to someone.
Thanks a lot @xkeita and @serajr for all the help and suport, I Learned a lot, thanks.
Moderators, can Lock this tread please....

Any way to install TWRP on mix 3?

I have Mix 3, unlocked bootloader. I made a flash of the latest TWRP 3.5 perseus for Mix 3 with the command:
fastboot flash revovery twrp.img
Later I used the command:
fastboot boot twrp.img
the phone is rebooting and there is only a black screen. When I restart it manually and enter recovery, there is only a stock version (MiRecovery)
I have exactly the same problem. It only works when I execute the command
fastboot flash revovery twrp.img
twice.
However it I try to install any custom ROM via TWRP it ends up in a bootloop...
illballer said:
It only works when I execute the command
fastboot flash revovery twrp.img
twice.
Click to expand...
Click to collapse
Thanks for the hint, i was desperate, it wouldn't boot into twrp at all, even with "fastboot boot twrp.img". Now let's flash some custom rom hoping it won't bootloop...

How To Guide Xiaomi 12S Ultra TWRP(unofficial)

12S Ultra unofficial TWRP - link MEGA
Credit - UnofficialTWRP
They released TWRP under 12S Pro, but the code name is Thor which stands for 12S Ultra, and after flashing, I do confirm this is for 12S Ultra.
now they have a proper 12S Ultra section!
Download the image and rename as recovery.img for simplicity.
fastboot boot recovery.img (or full file name)
in TWRP, go to "Advanced" and "flash this twrp."
edit: the recovery image file is too large to be flashed directly via fastboot, so you need to boot first then flash using twrp!
edit2: backup and restore function may not be working properly on this version of twrp! I get boot loops everytime I do a full system backup and full restore after bricking the device, especially on the data partition. Clean installing rom then restoring data only still get boot loops. so use it with caution.
I suggest you to use 3rd party backup apps to do backups on apps and data, and stick to the flashing and other functions only for twrp.
original source unofficialtwrp.com
Nabicook said:
12S Ultra unofficial TWRP - link MEGA
Credit - UnofficialTWRP
They released TWRP under 12S Pro, but the code name is Thor which stands for 12S Ultra, and after flashing, I do confirm this is for 12S Ultra.
Download the image and rename as recovery.img for simplicity.
fastboot boot recovery.img (or full file name)
in TWRP, go to Advanced and flash this twrp.
original source unofficialtwrp.com
Click to expand...
Click to collapse
Awesome thanks. But why not Fastboot flash recovery recovery.img?
No. You must type fastboot flash boot recovey. img
dungnghien said:
No. You must type fastboot flash boot recovey. img
Click to expand...
Click to collapse
No I'm pretty sure it's:
fastboot flash recovery twrp.img
However my question was why the method outlined by @Nabicook vs this method. Is it because of the dual partition?
GodKingKnight said:
Awesome thanks. But why not Fastboot flash recovery recovery.img?
Click to expand...
Click to collapse
Because not only it is the method unofficialtwrp suggested, but also the size of the recovery img file is too large to be flashed via fastboot.
I already tried
fastboot flash recovery recovery.img
fastboot flash recovery_a recovery.img
and so on, but all failed.
only way to properly install this version of twrp is to boot first then let twrp to install itself to both a/b partitions.
Hi!
I'm following your guide...and after uploading recovery nothing happens
rebooting into recovery through ADB or just using buttons...still sends me into fastboot mode
What can I do?
joiliko said:
Hi!
I'm following your guide...and after uploading recovery nothing happens
rebooting into recovery through ADB or just using buttons...still sends me into fastboot mode
What can I do?
Click to expand...
Click to collapse
are you sure you did
fastboot boot (your recovery file name).img
it should automatically boot into twrp without touching anything from fastboot mode.
then install twrp through the advanced option in twrp
Nabicook said:
are you sure you did
fastboot boot (your recovery file name).img
Click to expand...
Click to collapse
Great many thanks! I was actually doing flash boot
Nabicook said:
then install twrp through the advanced option in twrp
Click to expand...
Click to collapse
Still having issues:
After flashing twrp + magisk, reboot sends me into fastboot mode ..
As I get it, previously I've messed up with boot image, flashing recovery into that partition
So question is:
Do I need to reflash stock boot.img (need help with getting it, stock recovery rom is packed into .bin and I'm unable to extract boot image
Or can I simply reflash stock ROM (in recovery or fastboot mode?)
*my phone is unlocked already
joiliko said:
Still having issues:
After flashing twrp + magisk, reboot sends me into fastboot mode ..
As I get it, previously I've messed up with boot image, flashing recovery into that partition
So question is:
Do I need to reflash stock boot.img (need help with getting it, stock recovery rom is packed into .bin and I'm unable to extract boot image
Or can I simply reflash stock ROM (in recovery or fastboot mode?)
*my phone is unlocked already
Click to expand...
Click to collapse
yeah you can try flashing stock boot img, and if that doesnt work, you can download fastboot rom and flash stock rom using flash all without wiping data(there is .bat file that says something like install without formatting).
That will fix any kind of brick issues of xiaomi device, and you just redo the twrp part.
joiliko said:
Still having issues:
After flashing twrp + magisk, reboot sends me into fastboot mode ..
As I get it, previously I've messed up with boot image, flashing recovery into that partition
So question is:
Do I need to reflash stock boot.img (need help with getting it, stock recovery rom is packed into .bin and I'm unable to extract boot image
Or can I simply reflash stock ROM (in recovery or fastboot mode?)
*my phone is unlocked already
Click to expand...
Click to collapse
How to Extract payload.bin and get stock boot image file
To extract the payload.bin file from Android stock firmware and get stock boot image file, you should refer to the instructions given in here.
www.droidwin.com
My idea worked!
I used the method above to extract boot.img & flashed it successfully
Can someone tell me why wipe data and settings dosent work on my 12s ultra every time reboots the twrp after i press the icon... Im try at 7.5 version the same and on 7.2

Cubot X30 successfully rooted

Probably not many people are using this phone but I just want to share my experience of doing this. Hope this can help anyone who needs it.
Fisrt of all, you need this wonderful tool: https://github.com/DeadPo01/android_device_cubotx30_twrp_tree.
This is the only twrp recovery I found works on my device. Thank DeadPo01 for sharing it with us.
Here're the steps:
Go to the bootloader: adb reboot bootloader;
Flash the recovery img: fastboot flash recovery <filename>.img;
Flash vbmeta: fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img (make sure you use the right vbmeta.img, go to cubot's website to download the right version of firmware and find the vbmeta.img in it);
Reboot to recovery directly: fastboot reboot recovery (I tried to reboot to system and then adb reboot recovery but it didn't work);
Change the language to English unless you can read Russian;
Files are encrypted if you look at the storage but this doesn't matter;
Turn on adb sideload in twrp recovery and use your PC to sideload Magisk.zip;
Done.
* My device is running CUBOT_X30_A031C_V27_20211206.
** Another way to flash recovery.img is to use the flash tool provided by cubot. But I'm not sure if this works.
Good luck!
Thank you for this
please help me
how to get .img
from this link
only comress it or what can i do?
Thanks. Have you heard about any ROM alternative for it? Stock ROM hasn't been updated since waaaay long.

Categories

Resources