Cannot flash stock ROM through MiFlash tool - Xiaomi Mi A1 Questions & Answers

My MiA1 got stuck on Main Menu yesterday. I couldn't power it off or restart as neither the power button nor the volume buttons were responding. After an hour it automatically powered off. When I booted it up again, it was stuck on AndroidOne logo. So I decided to reset my phone. When I booted in recovery mode, there's an error being displayed at the bottom. It says "Failed to clear BCB message: failed to sync /dev/block/bootdevice/by-name/misc: Operation not permitted". Anyway I started resetting the phone but even after 2 hours it was stuck on "Formatting /data...". Next I tried to flash stock rom using MiFlash tool but it takes too long to flash. I have seen videos in which it happens in 200-500 seconds. I ran MiFlash for more than 6000 seconds and then diconnected my phone. I don't understand what is the issue here.
Please note that I have never unlocked bootloader before. Phone was running on the stock rom.

first thing first after reading your post it seems your Nand chip is faulty but i'm not sure.
so MiFlash works only for Unlocked Bootloader.
first try unlocking bootloader with fastboot
then try flashing stock rom
or
you can try QFIL tool from QPST for flashing stock rom.

ranjodhricky said:
first thing first after reading your post it seems your Nand chip is faulty but i'm not sure.
so MiFlash works only for Unlocked Bootloader.
first try unlocking bootloader with fastboot
then try flashing stock rom
or
you can try QFIL tool from QPST for flashing stock rom.
Click to expand...
Click to collapse
I tried to unlock bootloader with fastboot but whenever i use the command "fastboot oem unlock" it reboots my phone. After again booting into fastboot mode, if i check the bootloader unlock status, it shows false. Is there anything I am doing wrong?

i think you haven't enabled oem unlocking in developer settings now i think there is no way to unlock bootloader and without unlocking you cant flash with MiFlash. you can try QFIL for flashing i think it will work with locked bootloader if not then you have to got service center and they will flash it for u
---------- Post added at 08:28 PM ---------- Previous post was at 08:22 PM ----------
try flashing in edl mode restart in fastboot then enter
fastboot oem edl
phone screen goes black and led blinks then try flashing
---------- Post added at 08:39 PM ---------- Previous post was at 08:28 PM ----------
if all of the above not working try putting phone into edl mode by testpoint it will work here is the link for the image and tutorial for putting phone into edl with test point
http://gsmclinic.com/redmi-a1-xiaomi-mdi2-edl-pinout-edl-test-point/
after putting into edl flash it with MiFlash or Qfil.
but you have to open the back case of phone.

ranjodhricky said:
i think you haven't enabled oem unlocking in developer settings now i think there is no way to unlock bootloader and without unlocking you cant flash with MiFlash. you can try QFIL for flashing i think it will work with locked bootloader if not then you have to got service center and they will flash it for u
---------- Post added at 08:28 PM ---------- Previous post was at 08:22 PM ----------
try flashing in edl mode restart in fastboot then enter
fastboot oem edl
phone screen goes black and led blinks then try flashing
---------- Post added at 08:39 PM ---------- Previous post was at 08:28 PM ----------
if all of the above not working try putting phone into edl mode by testpoint it will work here is the link for the image and tutorial for putting phone into edl with test point
http://gsmclinic.com/redmi-a1-xiaomi-mdi2-edl-pinout-edl-test-point/
after putting into edl flash it with MiFlash or Qfil.
but you have to open the back case of phone.
Click to expand...
Click to collapse
fastboot oem edl is not working. It shows:
OKAY [ 0.068s]
Finished. Total time: 0.073s
But my phone remains in fastboot mode only. I guess service center is the only I have.

you have to wait 10 to 15 second after entering the cmd sometime it takes some time to reboot into edl or you can use test point method it will works for you. i think even guys at service center also use test point to flash the firmware if you can remove the back cover you can try it.

ranjodhricky said:
you have to wait 10 to 15 second after entering the cmd sometime it takes some time to reboot into edl or you can use test point method it will works for you. i think even guys at service center also use test point to flash the firmware if you can remove the back cover you can try it.
Click to expand...
Click to collapse
Thanks for all the help that you have provided :angel:. For now, I have sent my phone to the service center. Lets see if they can work something out.

Related

Flash 5.0.1 N9 Tool [Auto Flash 5.0.1 LRX22C][From Bootloop/Bootloader/Normal State]

(WINDOWS ONLY)
It only works if you have checked "allow oem unlock" in Dev options! If you cannot do that (because bootloop for example) you cant use that tool
This Tool flashes Android 5.0.1 Lollipop to your Nexus 9 Automatically in about 2 mins.
You dont need to know anything about flashing.
You can use that Tool if your Device is in Bootloop/ Bootloader Mode and Normal State.
(Tested it from Bootloop/ Bootloader and from Normal State with Bootloader locked and some times with Bootloader unlocked)
I will update it with new Lollipop Builds.
Would be nice if you try this out and give me Feedback!
Download (androidfilehost):
https://www.androidfilehost.com/?w=files&flid=22493
Changelog:
12112014- Release
Your link is not working.
But this one does.
https://www.androidfilehost.com/?w=files&flid=22493
guyd said:
Your link is not working.
But this one does.
https://www.androidfilehost.com/?w=files&flid=22493
Click to expand...
Click to collapse
Thanks for tip. Will change it now
Julian_os said:
(WINDOWS ONLY)
It only works if you have checked "allow oem unlock" in Dev options! If you cannot do that (because bootloop for example) you cant use that tool
This Tool flashes Android 5.0.1 Lollipop to your Nexus 9 Automatically in about 2 mins.
You dont need to know anything about flashing.
You can use that Tool if your Device is in Bootloop/ Bootloader Mode and Normal State.
(Tested it from Bootloop/ Bootloader and from Normal State with Bootloader locked and some times with Bootloader unlocked)
I will update it with new Lollipop Builds.
Would be nice if you try this out and give me Feedback!
Download (androidfilehost):
https://www.androidfilehost.com/?w=files&flid=22493
Changelog:
12112014- Release
Click to expand...
Click to collapse
when it says "sending sparse "system" """ does that mean its done??
it been there for 10mins
---------- Post added at 05:24 PM ---------- Previous post was at 04:51 PM ----------
DO NOT USE THIS.. I FLASH 5.0.1 now my N9 loops in teamwin logo. will not start up..
when i turn of device then turn back on, in red letters it says "this is a developmen device not inteded for production use"""
Lw00d said:
when it says "sending sparse "system" """ does that mean its done??
it been there for 10mins
---------- Post added at 05:24 PM ---------- Previous post was at 04:51 PM ----------
DO NOT USE THIS.. I FLASH 5.0.1 now my N9 loops in teamwin logo. will not start up..
when i turn of device then turn back on, in red letters it says "this is a developmen device not inteded for production use"""
Click to expand...
Click to collapse
Flash factory recovery.img
di11igaf said:
Flash factory recovery.img
Click to expand...
Click to collapse
thats what i figured ..i try 5 times didnt work. i try wugs nexus tool
i did the flash back to stock . that work.. great.

unable to root my galaxy s5 again

Model SM-G900I
Model name GALAXY S5
Version Android 5.0
i have rooted my phone earlier using odin successfully, but after unrooting my device i cannot root it again.
i tried unrooting it using kingroot and my phone was broken, i was unable to turn it on, nothing was working, so i downloaded original firmware from sammobile, i have successfully installed this firmware which is of my region(oceania)- G900I, but still i see i am unable to check firmware updates as it says it gives error of unauthorized installation.
i tried to root again using one touch root apps, also odin & one click tools using usb debugging, nothing is working, i have rooted same device successfully using ODIN but that is not working for me now.
please help me, i want to root my phone again.
Did you try to flash Twrp recovery through adb? Once this is done, any ROM and/or SuperSU for root should be possible to flash with Twrp. I don't remember if the boot loader needs unlocking. Maybe it has been locked again by hazard and needs to be unlocked again.
Edit: I did it like this: http://androiding.how/how-to-install-twrp-recovery-via-fastboot/
Danstroem said:
Did you try to flash Twrp recovery through adb? Once this is done, any ROM and/or SuperSU for root should be possible to flash with Twrp. I don't remember if the boot loader needs unlocking. Maybe it has been locked again by hazard and needs to be unlocked again.
Click to expand...
Click to collapse
where do i get twrp file for my s5 g900i??
i downloaded one from the forum, everything goes well but when i try 8th step, "fastboot flash recovery twrp.img"
it stucks on "(waiting for device)" and nothing happens.
btw how to know if my bootloader is locked? because nothing is working here for me. i tried everything which has worked but now nothing working, need help :-/
sukhsab007 said:
where do i get twrp file for my s5 g900i??
i downloaded one from the forum, everything goes well but when i try 8th step, "fastboot flash recovery twrp.img"
it stucks on "(waiting for device)" and nothing happens.
btw how to know if my bootloader is locked? because nothing is working here for me. i tried everything which has worked but now nothing working, need help :-/
Click to expand...
Click to collapse
This is the latest official twrp binary for the Galaxy S5: https://dl.twrp.me/klte/
Unfortunately, I don't know, how a locked bootloader behaves, sorry. Can you post a photo of your bootloader screen? Something similar to this: http://media2.giga.de/2014/03/samsung-galaxy-s5-download-modus-rcm992x0.jpg
http://www.galaxys5update.com/install-twrp-recovery-australia-galaxy-s5-sm-g900i says that the Australian G900i seems NOT to be locked. It also states this:
TURN OFF the Reactivation Lock – This is only needed if you already turned-it-ON, from which you cannot modify the system when it’s turned-ON. Just tap on Settings>>Security>>Reactivation Lock and then uncheck the Turn Reactivation lock on.
Click to expand...
Click to collapse
Do you have this setting?
yes i have same setting.
i tried to install twrp recovery via fastboot but when i do "fastboot flash recovery ****.img" in cmd, than nothing much happens, it's like " <waiting for device>", left for 20mins, still the same.
bootloader screen " snag. gy/YqjXY .jpg "
sukhsab007 said:
yes i have same setting.
i tried to install twrp recovery via fastboot but when i do "fastboot flash recovery ****.img" in cmd, than nothing much happens, it's like " <waiting for device>", left for 20mins, still the same.
bootloader screen " snag. gy/YqjXY .jpg "
Click to expand...
Click to collapse
Hm, I'm puzzled. The bootloader seems OK. There doesn't seem to be a driver issue with your PC, because the command "adb reboot bootloader" works, as seen in the "screenshot".
I'm only guessing now. Maybe it helps to disconnect and reconnect USB after the bootloader has been started and reissue the flash command. If it does not respond after 20 seconds, abort with ctrl-c and retry. Or maybe, you can try the same procedure on a different machine. Or maybe try a different USB cable or a different USB port on your machine. Make sure, that you have the latest android drivers/tools installed and there are no parallel/conflicting versions installed. You are sure, that on your phone you have enabled USB debugging and disabled the reactivation lock?
What is different now, compared to the time ODIN worked? Different Windows, different cable, different USB port? Try to disconnect all other USB devices. Connect the phone directly without a USB hub.
Well, I'm running out of ideas. Maybe someone else can help out...
@Danstroem I think you've pretty much covered it.......
The only things I could add.....
Maybe try disabling antivirus and firewalls......
Also, if kies is installed/running, disable that too.....
http://i.imgur.com/rVnFwJM.jpg
Using fastboot with an samsung device will not work you have to use Odin because fastboot us not designed to work with samsung devices.
---------- Post added at 06:58 PM ---------- Previous post was at 06:55 PM ----------
Those one click root apps never work for me. What I do is flash a custom recovery, then I flashed the supersu zip http://download.chainfire.eu/743/SuperSU/BETA-SuperSU-v2.52.zip
---------- Post added at 06:59 PM ---------- Previous post was at 06:58 PM ----------
Fastboot only works with some android devices such as nexus Motorola asus, etc
---------- Post added at 07:01 PM ---------- Previous post was at 06:59 PM ----------
Also if you want to get updates working again you have the do a clean flash meaning wiping all partitions from twrp and flashing the stock firmware again
---------- Post added at 07:02 PM ---------- Previous post was at 07:01 PM ----------
Download the twrp file with the .img.tar extension and flash it in odin

!!!help!!! Mi a1 still in edl only white led blinking and black screen

Few days ago i decide to install GCAM on my mi a1 with magisk and a patched boot...evrything is working fine but when i unistall magisk phone still rebooting many times and wifi doesnt work.
I tried to boot the original boot.img , then i flash oreo stock in many different version but nothing to do.
At this point wrongly i try to click on flash factory. bat file but i dont know if the code is work correct because the command prompt is closing in a bit.
Now i read that this file corrupt and delete the IMEI...
Only solution for me is the edl because in another try i lock bootloader and then i cant unlock, i dont know why, by fastboot command.
Then i open my phone e try edl method....my device is recognized but after few attemps to flash many stock rom from the first to the last nothing change...
my device still black with blinking led, evry buttons do not respond.
WHAT CAN I DO??? I NEED YOUR HELP
Just download latest firmware or any old and flash it in fastboot
---------- Post added at 06:09 PM ---------- Previous post was at 06:09 PM ----------
Booting in fastboot?
---------- Post added at 06:13 PM ---------- Previous post was at 06:09 PM ----------
kevinperdichizzi said:
Few days ago i decide to install GCAM on my mi a1 with magisk and a patched boot...evrything is working fine but when i unistall magisk phone still rebooting many times and wifi doesnt work.
I tried to boot the original boot.img , then i flash oreo stock in many different version but nothing to do.
At this point wrongly i try to click on flash factory. bat file but i dont know if the code is work correct because the command prompt is closing in a bit.
Now i read that this file corrupt and delete the IMEI...
Only solution for me is the edl because in another try i lock bootloader and then i cant unlock, i dont know why, by fastboot command.
Then i open my phone e try edl method....my device is recognized but after few attemps to flash many stock rom from the first to the last nothing change...
my device still black with blinking led, evry buttons do not respond.
WHAT CAN I DO??? I NEED YOUR HELP
Click to expand...
Click to collapse
First download oreo firmware and boot into fastboot mode
The open cmd and hit
Fastboot oem unlock
Then open xiaomiflash software and flash it.
Note: don't lock your bootloader again when you have Installed any custom thing
hamzaag49 said:
Just download latest firmware or any old and flash it in fastboot
---------- Post added at 06:09 PM ---------- Previous post was at 06:09 PM ----------
Booting in fastboot?
---------- Post added at 06:13 PM ---------- Previous post was at 06:09 PM ----------
First download oreo firmware and boot into fastboot mode
The open cmd and hit
Fastboot oem unlock
Then open xiaomiflash software and flash it.
Note: don't lock your bootloader again when you have Installed any custom thing
Click to expand...
Click to collapse
I previously tried flash in fastbooot with evry stock release from nutgat to oreo and doesnt work. this before i go in edl.
now in edl is the same , flash is succesful but nothings happen screen still black led blinking and i cant go fastboot
kevinperdichizzi said:
I previously tried flash in fastbooot with evry stock release from nutgat to oreo and doesnt work. this before i go in edl.
now in edl is the same , flash is succesful but nothings happen screen still black led blinking and i cant go fastboot
Click to expand...
Click to collapse
I have exactly the same problem tried everything but still no solution. Bad thing is that there is no service center in my country.
daveve said:
I have exactly the same problem tried everything but still no solution. Bad thing is that there is no service center in my country.
Click to expand...
Click to collapse
Me too. i'm freaking out because i think that the only solutions is change the mainboard, and no xioami centre for doing that but only an autorized .

Accidentally locked bootloader and wiped system.

How to reflash stock Rom to Xiaomi K20 Pro/Mi 9T Pro ? I accidentally locked my phones bootloader, and wiped the system on it. Now it says The system has been destroyed. I tried various recovery methods with no luck. I even opened the back cover and tried test point method with holding the power button more than 15 sec. It gives me the error, saying cannot read hello package. Can't turn on developer options debugging mode since I have no access to system. The phone originally came unlocked with Global rom. Any other suggestions? Thanks.
Hi.
I also done the same thing, I had the system is destroyed error, this is because you cannot reflash the ROM using a custom recovery, make sure you have stock recovery and it will work fine, when I messed the system doing this, I used the mi unlock tool again as the bootloader will have been relocked, try this and it should work.
---------- Post added at 09:05 AM ---------- Previous post was at 09:02 AM ----------
Kingpinny said:
How to reflash stock Rom to Xiaomi K20 Pro/Mi 9T Pro ? I accidentally locked my phones bootloader, and wiped the system on it. Now it says The system has been destroyed. I tried various recovery methods with no luck. I even opened the back cover and tried test point method with holding the power button more than 15 sec. It gives me the error, saying cannot read hello package. Can't turn on developer options debugging mode since I have no access to system. The phone originally came unlocked with Global rom. Any other suggestions? Thanks.
Click to expand...
Click to collapse
So put the phone into fastboot, apply to unlock the bootloader again and it should work, if you have to wait then there is no other option wait the quoted time, if that goes ok then reboot to fastboot and use XiaomiFlashTool V2 and download your specific ROM.
gazza1888 said:
Hi.
I also done the same thing, I had the system is destroyed error, this is because you cannot reflash the ROM using a custom recovery, make sure you have stock recovery and it will work fine, when I messed the system doing this, I used the mi unlock tool again as the bootloader will have been relocked, try this and it should work.
---------- Post added at 09:05 AM ---------- Previous post was at 09:02 AM ----------
So put the phone into fastboot, apply to unlock the bootloader again and it should work, if you have to wait then there is no other option wait the quoted time, if that goes ok then reboot to fastboot and use XiaomiFlashTool V2 and download your specific ROM.
Click to expand...
Click to collapse
i put the phone to fastboot and miunlock tools dont unlock it. i tried every version. i tried my stock rom with no luck.
hi everybody i had this problem 6 mouth s ago but resolve the problem with a tools I want to come soon in the next few days A tutorial on this problem made in froum but Only you can flash on edl mode your phone to stock rom and orginal region again not unlock and not flash in other region if i forgot messege me on whatsapp +989133177727 to build this tutorial i know you are being expload im in this position 6 mounth ago
Perhaps this tool can help you ?
https://www.xiaomitool.com/adb/

Please Help ''Your device is booting now'''

Hi
The phone does not turn on in any way. Recovery mode does not turn on.
Stock recovery won't open, I'm flashing TWRP and it gets stuck on TWRP logo. Bootloader and FRP is unlock.
Fastboot mod is working. No matter what I do, the phone didn't boot up normally in recovery mode or not. Please help me.
I've tried multiple versions of TWRP none of them turned on. Erecovery mod won't turn on
enes.korogluu said:
I've tried multiple versions of TWRP none of them turned on. Erecovery mod won't turn on
Click to expand...
Click to collapse
Hey man I have the exact same problem right now, were you able to fix this? for me i tried flashing some stock rom imgs via flashboot but that didnt help either. Hope you found out about something
---------- Post added at 09:24 AM ---------- Previous post was at 09:15 AM ----------
small update: https://forum.xda-developers.com/huawei-p-smart/help/unable-to-enter-twrp-stock-recovery-t4126357 use what it says there, i can open twrp again now
Enter fastboot mode and type the following commands "fastboot erase system" and "fastboot erase userdata" I solved the problem in this way.

Categories

Resources