How To Guide How to recover from bootloop after flashing custom ROMs via fastboot

Search This thread

kishore1998

Senior Member
Jun 15, 2016
123
26
Xiaomi Poco F1
Xiaomi Poco F3
Hey guys! So as the title suggests, I recently flashed a Custom ROM (CrDroid) after unlocking my bootloader, but I ended up in a boot loop with no solution in sight! Here's what I did that resulted in the bootloop:

1) Unlock bootloader
2) Flash TWRP
3) Try flashing ROM via TWRP, but it failed because the ROM is a Fastboot flashable ROM, not recovery ROM.
4) Followed the instructions and ran the flashing script

On Boot, I ended up with a bootloop, with the phone booting up to CrDroid logo for a few seconds and then rebooting. I didn't think much about it, and decided to go back to stock and try again. However, the issue is that the TWRP alpha that we currently have (It will mostly change in future with updates and hopefully official support) doesn't support flashing ROMs yet. Worse yet, ADB sideload didnt work either, I tried flashing MIUI Recovery zip without success.

I was stuck with a formatted phone without an OS, a recovery that can't help at all, and no way to read internal storage via PC to paste any file (not that it would matter, TWRP can't flash it anyway). I finally decided to go with the fastboot route, downloaded the latest fastboot MIUI recovery file, extracted it, ran the flash all script, but since a simple solution would be too easy to end a story, the script did absolutely nothing, it flashed a few lines of text on cmd (most probably some error code) for a microsecond and exited. I was really desperate at this point, so I tried going through the script and seeing what it actually does.

Since I'm desperate enough at this point, I ignored the checks that the script first run to verify the device (because I downloaded my device specific file so I had no worries), and proceeded to execute the fastboot flash commands one by one as seen below:

1620555781131.png


(I have a feeling the issue might have been the first line of the product name, as my device is Mi 11x AKA aliothin not alioth, but I couldn't care less about these checks, because I downloaded the Indian version only so mostly its an issue from Xiaomi)

So I went to the images folder in cmd, and ran fastboot commands one by one to flash the relevant images, carefully following the order above (FileName: flash_all.bat if anyone wants to know). Since I'm in the images folder, I can just write "fastboot flash crclist crclist.txt" instead of adding directory path and other variables. After 15 mins of painstaking typing and waiting, my device finally booted to the setup page of MIUI 12!

I hope this long rant/pseudo-guide can help anyone else in the future in case they screw up while flashing Custom ROMs. Mostly, once TWRP supports flashing, then this won't be an issue as people can directly flash MIUI ROM, but this is still a helpful guide in case that isn't an option.
 

metalspider

Senior Member
Jun 24, 2015
61
26
if you are sure you want to skip all the device and version checks you can just add "rem" with a space after for the first 2 lines.
"rem" is a was to turn commands in a batch file to comments so they dont run at all.
 

malick186

Senior Member
Jan 16, 2013
360
237
Karachi
I also ended up in a similar scenario with my new POCO F3 but it was a little bit different but eventually resulted in bootloop. So I just unlock the bootloader after waiting patiently for almost around 168 hours 7 days to be exact before messing with my phone. I rejoined xda after a long time since don't have a spare phone with me. The sole purpose was to Flash Chinese Stock ROM over my Global ROM since it was missing many key features for what MIUI is famous for. The flashing didn't start place and gave me multiple errors which I tried my best to troubleshoot to whatever guide I found by googling but no vain. In the end, flash TWRP using fast boot and downloaded CrDroid due to its less size so I can restore my connectivity. But due to some bugs or improper flashing, I was experiencing some bugs. Therefore decided overnight to download xiaomi.eu 12.5 from the link mentioned in xda thread. After that just simply ran that fastboot script and so far my life is in peace.
 
  • Like
Reactions: AndroidsKings

zeyaan

Senior Member
Jun 11, 2012
913
643
Bangalore
OnePlus 5T
OnePlus 6
Where did you find the mi 11x fastboot rom? I am unable to find it on Google or anywhere. Please help as I will be unlocking my phone and would like to have a backup of stock rom before I make a switch to Arrow Os
 

pl1992aw

Senior Member
Apr 5, 2019
1,234
924
Where did you find the mi 11x fastboot rom? I am unable to find it on Google or anywhere. Please help as I will be unlocking my phone and would like to have a backup of stock rom before I make a switch to Arrow Os

???
1623057004697.png


 
  • Like
Reactions: zeyaan

zeyaan

Senior Member
Jun 11, 2012
913
643
Bangalore
OnePlus 5T
OnePlus 6

tomwizy

New member
Apr 12, 2021
2
0
Hey guys! So as the title suggests, I recently flashed a Custom ROM (CrDroid) after unlocking my bootloader, but I ended up in a boot loop with no solution in sight! Here's what I did that resulted in the bootloop:

1) Unlock bootloader
2) Flash TWRP
3) Try flashing ROM via TWRP, but it failed because the ROM is a Fastboot flashable ROM, not recovery ROM.
4) Followed the instructions and ran the flashing script

On Boot, I ended up with a bootloop, with the phone booting up to CrDroid logo for a few seconds and then rebooting. I didn't think much about it, and decided to go back to stock and try again. However, the issue is that the TWRP alpha that we currently have (It will mostly change in future with updates and hopefully official support) doesn't support flashing ROMs yet. Worse yet, ADB sideload didnt work either, I tried flashing MIUI Recovery zip without success.

I was stuck with a formatted phone without an OS, a recovery that can't help at all, and no way to read internal storage via PC to paste any file (not that it would matter, TWRP can't flash it anyway). I finally decided to go with the fastboot route, downloaded the latest fastboot MIUI recovery file, extracted it, ran the flash all script, but since a simple solution would be too easy to end a story, the script did absolutely nothing, it flashed a few lines of text on cmd (most probably some error code) for a microsecond and exited. I was really desperate at this point, so I tried going through the script and seeing what it actually does.

Since I'm desperate enough at this point, I ignored the checks that the script first run to verify the device (because I downloaded my device specific file so I had no worries), and proceeded to execute the fastboot flash commands one by one as seen below:

View attachment 5304001

(I have a feeling the issue might have been the first line of the product name, as my device is Mi 11x AKA aliothin not alioth, but I couldn't care less about these checks, because I downloaded the Indian version only so mostly its an issue from Xiaomi)

So I went to the images folder in cmd, and ran fastboot commands one by one to flash the relevant images, carefully following the order above (FileName: flash_all.bat if anyone wants to know). Since I'm in the images folder, I can just write "fastboot flash crclist crclist.txt" instead of adding directory path and other variables. After 15 mins of painstaking typing and waiting, my device finally booted to the setup page of MIUI 12!

I hope this long rant/pseudo-guide can help anyone else in the future in case they screw up while flashing Custom ROMs. Mostly, once TWRP supports flashing, then this won't be an issue as people can directly flash MIUI ROM, but this is still a helpful guide in case that isn't an option.
im having the same problem... please will you send me the command lines ....help...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hey guys! So as the title suggests, I recently flashed a Custom ROM (CrDroid) after unlocking my bootloader, but I ended up in a boot loop with no solution in sight! Here's what I did that resulted in the bootloop:

    1) Unlock bootloader
    2) Flash TWRP
    3) Try flashing ROM via TWRP, but it failed because the ROM is a Fastboot flashable ROM, not recovery ROM.
    4) Followed the instructions and ran the flashing script

    On Boot, I ended up with a bootloop, with the phone booting up to CrDroid logo for a few seconds and then rebooting. I didn't think much about it, and decided to go back to stock and try again. However, the issue is that the TWRP alpha that we currently have (It will mostly change in future with updates and hopefully official support) doesn't support flashing ROMs yet. Worse yet, ADB sideload didnt work either, I tried flashing MIUI Recovery zip without success.

    I was stuck with a formatted phone without an OS, a recovery that can't help at all, and no way to read internal storage via PC to paste any file (not that it would matter, TWRP can't flash it anyway). I finally decided to go with the fastboot route, downloaded the latest fastboot MIUI recovery file, extracted it, ran the flash all script, but since a simple solution would be too easy to end a story, the script did absolutely nothing, it flashed a few lines of text on cmd (most probably some error code) for a microsecond and exited. I was really desperate at this point, so I tried going through the script and seeing what it actually does.

    Since I'm desperate enough at this point, I ignored the checks that the script first run to verify the device (because I downloaded my device specific file so I had no worries), and proceeded to execute the fastboot flash commands one by one as seen below:

    1620555781131.png


    (I have a feeling the issue might have been the first line of the product name, as my device is Mi 11x AKA aliothin not alioth, but I couldn't care less about these checks, because I downloaded the Indian version only so mostly its an issue from Xiaomi)

    So I went to the images folder in cmd, and ran fastboot commands one by one to flash the relevant images, carefully following the order above (FileName: flash_all.bat if anyone wants to know). Since I'm in the images folder, I can just write "fastboot flash crclist crclist.txt" instead of adding directory path and other variables. After 15 mins of painstaking typing and waiting, my device finally booted to the setup page of MIUI 12!

    I hope this long rant/pseudo-guide can help anyone else in the future in case they screw up while flashing Custom ROMs. Mostly, once TWRP supports flashing, then this won't be an issue as people can directly flash MIUI ROM, but this is still a helpful guide in case that isn't an option.
    1
    I also ended up in a similar scenario with my new POCO F3 but it was a little bit different but eventually resulted in bootloop. So I just unlock the bootloader after waiting patiently for almost around 168 hours 7 days to be exact before messing with my phone. I rejoined xda after a long time since don't have a spare phone with me. The sole purpose was to Flash Chinese Stock ROM over my Global ROM since it was missing many key features for what MIUI is famous for. The flashing didn't start place and gave me multiple errors which I tried my best to troubleshoot to whatever guide I found by googling but no vain. In the end, flash TWRP using fast boot and downloaded CrDroid due to its less size so I can restore my connectivity. But due to some bugs or improper flashing, I was experiencing some bugs. Therefore decided overnight to download xiaomi.eu 12.5 from the link mentioned in xda thread. After that just simply ran that fastboot script and so far my life is in peace.
    1
    Where did you find the mi 11x fastboot rom? I am unable to find it on Google or anywhere. Please help as I will be unlocking my phone and would like to have a backup of stock rom before I make a switch to Arrow Os

    ???
    1623057004697.png