I accidently sent some zip file instead of img file using adb flash boot command, now my phone is stuck at fastboot, doesn't reboot to normal, always reboots to fastboot, I have flashed twrp recovery and wiped all data, still doesn't work, what shall i do?
hi, You can try this tool,
XiaoMiTool V2 - Modding of Xiaomi devices made easy for everyone
XiaoMiTool V2 is a easy to use tool to install rom on your Xiaomi device. Modding made easy for everyone! Download it for free now!
www.xiaomitool.com
Did you then fastboot install the stock boot.img?
hmm. i remember flasing the wrong stuff but I don't know if it was this phone. flash stock from using miflashtool
Hi @niyaalo welcome to the forum! That's a nice device you've got.
Just run the flash_all_except_storage.sh (or .bat if you're on windows)
from official stock Xiaomi MIUI fastboot firmware folder. You can download it from official Xiaomi website.
Preferably it should be the same firmware version that is currently installed on your device.
This should restore your firmware without affecting your user data.
Good luck!
Related
Hi,
My phone : Redme Note 4 Global Edition 3/32 unlocked and rom developper.
My problem : I wanted to put TWRP and I did a MEGA bull****.
To install TWRP I did:
Fastboot flash boot recovery.img
instead of :
Fastboot flash recovery recovery.img
My phone starts systematically on TWRP... (It boots no more normally)
I have shot tempted one:
Fastboot flash boot boot.img
With the boot.img retrieved from the MIUI 9 archive 7.8.10 (mido_global_images_7.8.10_20170810.0000.00_7.0_global_239182c21e.tgz)
Now the phone shows me the logo miui indefinitely.
I still have access to Fastboot
Is it necessary to try with the boot.img of version MIUI 9 7.8.18 (installed version)? Can someone provide it to me?
If not, can anyone help me restore the boot without losing any facilities made?
Thank you in advance.
Regards
Hi,
Well I finally made a MiFlash with the option "flash_all_except_storage.bat" on the same flashboot ROM that was previously installed in my phone before my error. (MIUI 9 7.8.18).
The phone is OK.
I did not clean it : I hope it will not bug.
Regards.
When you've flashed TWRP when MIUI is installed you need to install lazyflasher with recovery. Without it MIUI will not boot with TWRP
Sent from my Redmi Note 4 using Tapatalk
With this modded version of TWRP you can now install A1 roms into the 5X.
How to install A1 roms using this TWRP:
https://forum.xda-developers.com/mi-5x/how-to/guide-how-to-install-a1-rom-5x-t3777139
Oreo Modded TWRP 3.2.1-0 Download:
Google Drive
Nougat Modded TWRP 3.2.1-0 Download:
Google Drive
How to install:
- Unlock bootloader
- Enter in Fastboot Mode (Power Button + Vol Down)
- Flash using "fastboot flash recovery twrp.img"
- Enter in Recovery Mode (Power Button + Vol Up)
Which one should I download?
You should install the correspondent version according to your currently installed Android version. If your current system is Nougat, you should flash Nougat TWRP. Same for Oreo. It doesn't matter which version of Android are you going to install, but the one that you already have installed. If you are in Nougat and want to flash Oreo rom, after flashing it, be sure to flash Oreo TWRP. If you dont do it, recovery may not work.
How can I use the port feature?
First, download an A1 fastboot ROM. You can do so here. Then, flash system and boot partitions using fastboot.
After you flashed it, go to "Advanced" then tap on "Terminal". Write "a1to5x" and press Enter. Wait until it finishes. Make proper wipes and reboot.
Are there any other features?
I have enabled system.img and modem.img flashing, so people without a pc can flash A1 fastboot roms. But be careful, system.img can't be a sparse image (this are the images included on the a1 official fastboot rom), it should be a raw ext4 image. You can use simg2img to convert them. Modem.img can't neither be flashed directly from the downloaded fastboot rom. It should be a modem.img extracted with dd, you will need to ask some who flashed it with fastboot to extract it for you. I know it is not a very easy process, but at least people without pc now have a chance to update their phones.
In what roms does it works?
I have only tested it with official Android One Oreo rom, however, it should work with Nougat Android One and with custom roms. Try it and let me know in what roms does it work.
How do you port A1 roms to the 5X?
I have been asked this question a lot of times. I can't give a step by step guide since I don't have enough spare time to make a decent guide. If you are interested on the porting process, take a look at /sbin/a1to5x (inside twrp ramdisk), it is the script which takes cares of the automatic porting process. Inside it you will find how the ports are made.
Where is the changelog?
You can check it here
Donations:
If you like my work and want to contribute, you can donate via paypal.me/aex12
Device Tree: https://github.com/Aex12/android_device_xiaomi_tiffany
Manifest used: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni
XDA:DevDB Information
Modded TWRP 3.2.1, Tool/Utility for the Xiaomi Mi 5X
Contributors
Aex12
Source Code: https://github.com/omnirom/android_bootable_recovery/
Version Information
Status: Stable
Current Stable Version: 3.2.1
Created 2018-03-07
Last Updated 2018-03-08
Reserved
Love Man... You Are Love Brother
is it normal that the external memory is not shown?
@Aex12
Thanks for your great work. I have some question.
Should we install an whole A1 fastboot rom or only install system.img and boot.img like the old one?
vangame said:
@Aex12
Thanks for your great work. I have some question.
Should we install an whole A1 fastboot rom or only install system.img and boot.img like the old one?
Click to expand...
Click to collapse
Forgot to mention it on the thread. Thanks for reminding, I am updating it right now. You should only flash system and boot. Modem and other firmware partitions can be flashed too, but they are not mandatory.
And have someone test LineageOS 15.1 for Mi A1 with this recovery?
Awesome work @Aex12. Thanks a lot
Hello can I use it at tissot bootloader?
eurekaseven said:
is it normal that the external memory is not shown?
Click to expand...
Click to collapse
That was somthing I also have noticed.. without sd memory being shown I can't do a backup to SD Card.
Instead I'll have to do a local backup and connect to PC and copy files over, Early stages I guess we are lucky we can even see the Internal Memory right?
Alright so I was curious and thought I'd see what happens if I flash recovery Nougat Modded TWRP 3.2.1-0 ( While currently running Oreo )
I booted into recovery and instantly discovered that you no longer even have access to internal memory 0b shown.. Don't waste your time !
I flashed recovery Oreo Modded TWRP 3.2.1-0 using fast boot as you won't be able to flash a recovery rom using TWRP in this state..
https://www.xda-developers.com/how-to-install-twrp/
Shows an easy guide if you aren't sure howto do this
Can not get back to MIUI Nougat or even get old recovery to work
When i try to install back xiaomi.eu's miui rom after installing zip and do all the proper wipes, it reboot to system but says that encryption was interrupted and can't complete. So I tried to install back the nougat 3.2.1 recovery and try again, with the same result. again i tried to install the rom again with 3.1.1 recovery and same happens. With nougat recovery it can't mount any partition, so it can not opperate properly, only the oreo recovery works. the only rom that works and gets installed good is the oreo one that you submitted so what can i do to get back to my normal twrp recovery (no oreo) and to a miui rom? thanks
P.D: I also tried to flash with fastboot a a1 nougat rom and with the 3.1.1 twrp port it but no succes as it can no longer mount anything, only oreo twrp is working but still not get to work properly any other rom, via fastboot or via recovery. Bootloader is unlocked.
What phone and model is this 4? It states nothing
hi,
i tried to flash system.img from official MiA1 fastboot ROMs today but i got these message " target reported max download size of 536870912 bytes, is this a normal message? will the flash resume?
vangame said:
And have someone test LineageOS 15.1 for Mi A1 with this recovery?
Click to expand...
Click to collapse
I want to know this too!
Aex12 said:
Aex12, Brother Please Fix SD issue... Cant flash files from my SD Card.
Click to expand...
Click to collapse
Comparing fstab with stock recovery / sd supported recovery might fix this issue...
This recovery doesn't read my SD card. Only the internal storage.
>Modem.img can't neither be flashed directly from the downloaded fastboot rom. It should be a modem.img extracted with dd, you will need to ask some who flashed it with fastboot to extract it for you
Yeah, anyone willing to do it for me?
udaan said:
>Modem.img can't neither be flashed directly from the downloaded fastboot rom. It should be a modem.img extracted with dd, you will need to ask some who flashed it with fastboot to extract it for you
Yeah, anyone willing to do it for me?
Click to expand...
Click to collapse
Make sure to make a backup of your current modem, just in case.
It's from v9.5.9.0: https://mega.nz/#!UAhwAQLY!-8np_yuZnJscEUFh9bJuCkkqDkPuZrr8Aa6o0kkBq5Q
My 5x does not go to recovery mode. My ROM is AOSPE. I am using OREO twrp. The device is not ROOTED
I can boot twrp using
Code:
fastboot boot twrp.img
but after using
Code:
fastboot flash recovery twrp.img
the phone does not go to recovery using Volume up + Power
tuhi009 said:
My 5x does not go to recovery mode. My ROM is AOSPE. I am using OREO twrp. The device is not ROOTED
I can boot twrp using
Code:
fastboot boot twrp.img
but after using
Code:
fastboot flash recovery twrp.img
the phone does not go to recovery using Volume up + Power
Click to expand...
Click to collapse
I think you need to fastboot flash boot image first, then go to twrp and flash it again from it.
---------- Post added at 08:14 AM ---------- Previous post was at 08:06 AM ----------
@Aex12 please update TWRP. I can't format /data /system etc from twrp made for MiA1(MohanCM's) but I cannot do it with yours. I have mi5x and it is ****ing stuck on boot. If I flash MiA1's fastboot rom I can get to fastboot and flash TWRP (since the bootloader is locked) but I can't do anything with your TWRP. But I can also flash MohanCM's twrp and I can do all that stuffs except for installing ROms and booting to it. im ****ing confused myself.
For whatever reason I can't budge the tool to flash the latest fastboot ROM on my Xiaomi Mi 8 Lite that I plan to sell since my new phone arrived today. A custom ROM from the last year is currently installed on the device.
I installed the latest Universal ADB drivers, installed the latest Mi Flash tool (2020.3.14.0), put the phone in fastboot mode, connected to PC via USB 2.0 port and tried to flash the latest fastboot stable ROM via the tool with "clean all" option and most of the time what happens when I hit the flash button, the fastboot logo on the phone disappears and in the left top corner a small white text "hit any button to restart" or something like that appears. Only once a progress bar appeared with $fastboot bla bla bla II echo missmatching image and device" and that was it... no progress, again the white text prompting me to hit any button to restart appeared on the screen.
Any ideas what I am doing wrong? cmonBruh
Phone: Xiaomi Mi 8 Lite 64/4 Global (platina with custom ROM installed) Windows 10 Pro 1909, MSI B350M Bazooka with AMD Ryzen 5 2600.
Hello.. I will try to help you.. And tell me if you fixed that..
Can you install a custom recovery? Twrp?
Id you can do that fallow my steps..
First download the fallowing twrp from here :
https://drive.google.com/file/d/14cRc4UG4hzL45cDhdFZ7odr5Kb8LSai0/view
It can support ota update and your phone will boot I used it to flash my mi 8 lite without pc. And works!
Download and flash that twrp using mi flash tool. I hope your bootloader is unlocked if you already have other twrp installed simply flash the twrp zip file. And update your recovery. If you don't have any twrp installed simply rename. Zip file into .img file and flash it with flash tool. If you can't flash it using flash tool try to install any other twrp and then install the zip and update the twrp
After you installed twrp go and download recovery Rom from here :
https://mirom.ezbox.idv.tw/en/phone/platina/
Download the first rom called : V11.0.2.0.QDTMIXM (1.8GB zip file)
( Recovery
miui_MI8LiteGlobal_V11.0.2.0.QDTMIXM_5574e03233_10.0.zip
Filesize
1.8G
MD5
5574e032330450c44c34d7f054de477b
Link
Download (Download to Mi Router)
Press download. Not download to mi router and don't forget.. Download the recovery zip file not the fast boot update!
After you downloaded boot in to twrp which I gave you above, wipe system / data / vendor / cache/dalvik and flash the zip file.
You can flash it with and without to wipe anything. But it is recommended to wipe. Pls go try and install it without to wipe anything, if it works ( for me works!) after flash done boot the phone and see if there is any problem. If u got any bugs or problems perform a clean flash wipe all and then flash!
Id you want root.. Fallow this :
You can root your phone with latest magisc manager using the same twrp. After you flash the boot.img with twrp press restart phone. If it won't restart go again to recovery and format only your data. And your will phone will boot again and you will get root acces. It's the only way to root android 10.
Please let me know if you fixed that problem.. And you flashed successfully the Rom..
DON'T FLASH THE ROM USING ANOTHER TWRP! ONLY THAT RECOVERY I GIVE SUPPORT OTA UPDATE AND CAN BYPASS THE XIAOMI Verification FOR THE STOCK ROM.. IF YOU USE ANY OTHER TWRP YOUR PHONE WILL BE STUCK IN Boot! Orange fox or any other twrp won't work!
I used this method and works like a charm
Hello
My phone is Redmi note 9s,
I have changed my reserection remix (android 10) custom ROM ,
I backed up my data using TWRP and I have install the Xperience (android 12) using TWRP ,
After that I wanted to restore data by TWRP but I got boot loop when I try to open the TWRP recovery ..
I need to restore data for my work
.......
Note
I tried flashing TWRP again but it "failed"
Any suggestions?
I don't exactly know how to solve this, but last time when I have messed up the recovery I had to flash miui using official flash tool (be careful not to re-lock your bootloader - need to (un)tic a box on the bottom of the tool)
One reason I can think of is, that the recovery needs to match the android version, as far as I know.
Another is that you should update firmware before flashing new android version.
Is it possible to recover from twrp? Last info was that since android 11 there have been many problems
Thanks bro ,I am going to flash the MIUI ROM using miflasher
my redmi note 4 mido is bricked and i don't know how, i left my phone for a month because i travelled away and when i came back the phone was stuck on mi logo i tried to fix it by this methods but nothing worked:
-i tried to flash stock firmware via mi flash tool and it failed so many times (i used an old version which stated that the installation succeed but the phone was still stuck in bootloop)
- i tried edl version and it didn't work
- i tried to install via adb and it didn't work also
- i tried to open recovery (volume + and power) it got me to twrp 3.2.3.0 but it's alway stuck on twrp logo and nothing happens
it only happened 2 times when twrp worked and asked me for decryption password, i wrote my phone pin but said wrong password (tried also password and default_password) then i bypassed the password section and got into twrp but i couldn't mount or format storage (it appears that internal storage and sd card is 0 gb) i tried to format it fails,
tried also to change storage to ext2 it got stuck and i couldn't open the twrp again.
any stock firmware flashed on my mido doesn't work and it still stuck on mi logo ( no android loading logo), and it still has twrp
(i tried to flash another twrp or orangefox it just doesn't flash even if it's successful flash on adb)
i tried also to boot the recovery image it also get stuck on the logo and doesn't open the recovery
please help me to know what the hell is wrong with this phone and how i can fix it
help pleassseeeeeeee
Install magisk if you are stuck in boot loop it fixes the problem otherwise download a recovery rom and change your twrp version to 3.1.0.0 because the decryption password in the new versions of twrp doesn't seem to work on rn4. Now wipe system,vendor,data. import recovery rom from your computer and install it. It will install the rom then flash Magisk otherwise your phone will be stuck in bootloop. Wait for a while and bam your system is back!
i can't install anything or even boot into twrp 3.1.0.0 even if i tried
Can you boot into fastboot atleast? If yes then type fastboot reboot recovery and as you said you have twrp installed then it surely means that your bootloader is unlocked. Do you know the name of your custom rom or are you using stock rom? If yes whichever rom you are using just download the recovery rom of that and extract the boot.img in your adb and fastboot folder and flash it via fastboot by typing fastboot flash boot boot.img . And also when booting in twrp which buttons are you using? This happened to me when I myself bricked my device. I thought I can't boot in twrp but the point was I was using volume up+ power but the actual key to boot to twrp is volume up+volume down+power key
You can flash your Xiaomi Redmi Note 4 [MIDO] using Mi Flash. I have an article that discusses how to flash Xiaomi Redmi Note 4 [MIDO / Snapdragon] that might help you: How to Flash Redmi Note 4 / 4x Snapdragon [Mido] with MiFlash
NOTE: Few problematic tool links in this article. Please search on Google | This website was translated using Google Translate [Indonesian -> English]
pandmc said:
You can flash your Xiaomi Redmi Note 4 [MIDO] using Mi Flash. I have an article that discusses how to flash Xiaomi Redmi Note 4 [MIDO / Snapdragon] that might help you: How to Flash Redmi Note 4 / 4x Snapdragon [Mido] with MiFlash
NOTE: Few problematic tool links in this article. Please search on Google | This website was translated using Google Translate [Indonesian -> English]
Click to expand...
Click to collapse
I think flashing the stock rom should be the last step before which everything possible should be tried
JustExperimentingRedmi said:
I think flashing the stock rom should be the last step before which everything possible should be tried
Click to expand...
Click to collapse
Yes, Flashing Stock ROM should be the last step before he tries to fix. But mostly if the smartphone is bootlooped or bricked there is no other step besides Erase All Data / Format Data or Flashing Stock ROM.
pandmc said:
Yes, Flashing Stock ROM should be the last step before he tries to fix. But mostly if the smartphone is bootlooped or bricked there is no other step besides Erase All Data / Format Data or Flashing Stock ROM.
Click to expand...
Click to collapse
You can flash orignal boot.img which most times fixes the problem and if it didnt work flash system.img it almost always works and the last option is flashing magisk. Then only i will recommend to flash stock rom.
JustExperimentingRedmi said:
Can you boot into fastboot atleast? If yes then type fastboot reboot recovery and as you said you have twrp installed then it surely means that your bootloader is unlocked. Do you know the name of your custom rom or are you using stock rom? If yes whichever rom you are using just download the recovery rom of that and extract the boot.img in your adb and fastboot folder and flash it via fastboot by typing fastboot flash boot boot.img . And also when booting in twrp which buttons are you using? This happened to me when I myself bricked my device. I thought I can't boot in twrp but the point was I was using volume up+ power but the actual key to boot to twrp is volume up+volume down+power key
Click to expand...
Click to collapse
the rom i was using before the phone got bricked is crdroid 10, i downloaded it again as you said and tried to flash boot img then i rebooted into recovery but i got stuck at twrp logo as usual and even if twrp worked it will as for a password i tried all pins i have used on my phone and tried default_password didn't work either, i can't even mount data or storage or anything and it shows everything with 0mb storage (external or internal storage).
i can't even format data to remove encryption it just freezes whenever i do that
pandmc said:
You can flash your Xiaomi Redmi Note 4 [MIDO] using Mi Flash. I have an article that discusses how to flash Xiaomi Redmi Note 4 [MIDO / Snapdragon] that might help you: How to Flash Redmi Note 4 / 4x Snapdragon [Mido] with MiFlash
NOTE: Few problematic tool links in this article. Please search on Google | This website was translated using Google Translate [Indonesian -> English]
Click to expand...
Click to collapse
i tried that before it's always shows me ( mi flash tool could not find a part of the path) error, there's a one time i tried an older version of mi flash tool and the flash succeeded but when phone rebooted it stayed at the bootloop
i checked the recovery and sadly it was still the same twrp recovery
i don't really know if my phone can be fixed or this an emmc problem
So it means you have your stock rom right? Extract boot.img and flash it with
fastboot flash boot boot.img
make sure to put it in adb folder
You can find boot.img in images folder
If it does not work get the system.img and flash it with
fastboot flash system system.img
i flash the whole stock rom via fastboot (adb) and it also didn't work.
sorry if this seems disappointing
Try orangefox recovery then, not sure why is this happening to you
If still not working type
fastboot oem edl
Then flash via mi flash it should work as far as I know. If not then go to mi service centre it's the last thing you can do