Flash ROM with MiFlash for bricked MI5 - Xiaomi Mi 5 Questions & Answers

I had experienced below :
- Try to flash MI5 (with unlocked bootloader) with MiFlash (latest version) (Power battery at ~28%)
- It is hang at "system.img" over 20 mins, and unplug, become "bricked" (this bricked is just start up at mi logo, able to boot into recovery & fastboot mode)
- After installing "minimal adb & fastboot tools", some command, make it into "OEM EDL" mode and flash again using MiFlash (another version from some tutorial)
- Suddenly, fastboot mode screen is off, the power is out (I guess)
- Only see "qualcomm hs-usb qdloader 9008 (COM10)" in device manager (before running into "EDL" mode, it is shown as something Android Phone Interface, not named "MI interface", but it is Phone interface, not COM PORT
- At the stage, it is another "bricked", unable to boot into recovery and fastboot mode, no response on all button combination, plug device with USB to PC, only can see "qualcomm hs-usb qdloader 9008 (COM10)" is detected
- In MiFlash, it can detect also (Device as "COM10"), by all type of flashing ("Flash all" , "Flash all except storage"...), status always shown as "Missed hello packets, try to recover", but the time is still counting, whatever I tried many method
- It has been over 6 hours for this (~28% power), finally the window give detected device and undetected device in 3-5 sec back and fore.
- I give up to flash, try to charge the MI5 with to power pack (~4-5 hours)
- I wake up, and try to flash, it is success
By Conclusion, some points figure out
- Turn device into EDL mode will turn device detected as "COM" device, it means EDL mode is "COM" device while FASTBOOT mode is "Interface" device
- With tried many MiFlash version, some version detect device when it is "COM" device, some detect it when it is "ADB" or USB driver device
(Finally, it is succeed using "COM" device)
- "Bricked" device, it is not actual bricked, but just situation, my situation look like "bricked" are summaried as 3 :
1. keep start up at "MI" logo on boot (caused by flash failure), OS corrupted : this can be solved by correctly flashing rom
2. all has no response (when in EDL mode) : this is just an status of EDL mode, no need to solve, just continue your action
3. Out of Power : this cause nothing to do, just plug your USB to power to charge
Summaried Actual Step to Flash
(I had success 2 rom on CHINA DEV ROM & GLOBAL ROM) :
Preparation
1. Download OS Rom for fastboot from http://en.miui.com/a-234.html
2. Install Mi Flash (e.g. version "Miflash_tool_gemini_20160401.exe")
Download from https://www.androidfilehost.com/?fid=24521665358595574
* this version need switch device into OEM EDL mode
3. Install minimal adb & fastboot tools (minimal_adb_fastboot_v1.4_setup)
Download from https://www.androidfilehost.com/?fid=24521665358595410
4. Unlock Device
a. Submit request from Xiaomi (en.miui.com/unlock)
b. Recevie SMS notification unlock permission is ready
c. Go to en.miui.com/unlock to download the "unlock" tools
c. Login MI account on device (check if the device is on this list of MI account OR check i.mi.com)
e. Run downloaded "unlock" tools (MiFlashUnlock.exe), follow the instruction
Flashing
1. Boot device into fastboot mode (press "voulmn -" + "power" button), and connect device with USB cable
2. Open command console, go to installed minimal adb & fastboot tools folder (e.g. "C:\Program Files (x86)\Minimal ADB and Fastboot)
3. Check if device connected in fastboot ready by command "fastboot devices"
4. Switch fastboot mode to OEM emergency download mode (EDL) by command "fastboot oem edl"
5. Open MiFlash,
a. browse the downloaded rom
b. click "Refresh" button to load connected mobile device
c. select "Flash all"
d. click "Flash" to start flashing rom
6. Waiting to complete (~150s my experience from both China dev ROM & Global ROM)
7. Reboot
----------------------------------------------------------
Finally, I had questioned are:
1. why some tutorial mentioned (not to mention) change to EDL is need, they can flash success
2. why the latest MiFlash on (http://en.miui.com/a-234.html) is not work, it cannot detect device (whatever it is COM(EDL mode) or Interface(fastboot mode))
3. Look like there are 2 version of MiFlash,
a. one type, its installation is packed with "Google ADB and driver, Qualcomm USB serial driver, Xiaomi MiFlash program..."
Folder named "MiPhone" in "Program Files" folder
b. one type, its only contains MiFlash program, folder named "XiaoMi", and its interface language is S.Chinese for me
4. Is it an must to flash in EDL mode?
If anyone had idea of above, please advise

This is the only unbrick method that worked for me - This one should be added to the index thread. The two listed there did not work.

I have the same issue, the method above doesn't help, adb can't see the phone. That's a problem. A computer, device manager doesn,t see the phone, a plug charger as well. I've tried many many times to switch on, after 1000 times it is started
Than I flashed a leastest rom, and ina new rom touch screen doesn't work. So I - stupid - flashed one before. That looked fine, but after work xposed installed it happened again
It happened me with
miui_MI5Global_V8.0.5.0.MAAMIDG_026a414948_6.0.zip (touch screen)
and
miui_MI5Global_V8.1.2.0.MAAMIDI_9fbec19bb6_6.0.zip (bricked)
In both roms I instaled xposed-v85-sdk23-arm64-MIUI-edition-by-SolarWarez-20160609.zip
I've got a feeleing the leastest roms are not comaptible with xposed v.85

work for me too
it s really work for me too but i flashed rom after my phone is not opening.
if i try to charge charging led is working but i can not start phone.
can you help me

Related

Unlock Bootloader for zenfone laser 5.5/5.5s/6 marshmallow

Disclaimer:
You device’s warranty may be void after following below mentioned instructions. If any thing goes wrong and you end up with a bricked or semi-bricked device then neither our site or any of these app developers will be responsible. So, try these instructions at your own risk.
Work For
Zenfone laser 5.5/5.5s/6
Prerequisite for rooting Zenfone 2 Laser:
Additionally, you must have a windows PC.
Install USB drivers for your Asus Zenfone 2 Laser.
Goto Settings -> About and tap multiple times continuously on “Build number” to active “Developer options” and then goto Settings -> Developer options and enable “Usb debugging” option.
Download Rooting Tools:
-Minimal adb fastboot tool
https://devs-lab.com/download-minimal-adb-fastboot-tool.html
-Adb Drivers
http://dl.adbdriver.com/upload/adbdriver.zip
-TWRP
https://dl.twrp.me/Z00L/twrp-3.0.2-4-Z00L.img.html
https://dl.twrp.me/Z00T/twrp-3.0.2-4-Z00T.img.html
-SuperSu
https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.78-201609011115.zip
-Bootloader Unlocker
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE601KL/UnlockTool_ASUS_AndroidM_USER.apk
How to unlock Bootloader & Root Asus Zenfone 2 Laser :
1.Download all the above tools & transfer all the Apk files in your device.
2. Now Install Bootloaderunlocker.apk in Your Device.
3. open bootloaderunlocker and follow on screen instructions.
4. Extra ‘ADB Fastboot Tool.rar’
How to Install TWRP Recovery in Zenfone 2 Laser
1. On your pc install adb drivers and open the application, connect your zenfone to your pc, in adb driver it will show if the driver are installed or not, if not just click install and wait for it to finish installing.
2. Move twrp.img into extracted ‘ADB Fastboot Tool.rar’ folder.
3. Now in ADB Fastboot folder open command windows by Pressing Shift+Right click –> open command winnows here.
4. Now Enter the Following command in Command Window.
adb devices
It will return your device code which confirms you have installed all the files properly.
5. Now to reboot your device into Fastboot mode which allows flashing files, enter the below command in command prompt. or else you can Manually Reboot To Fastboot Mode By Switching off Your Phone And Press Volume Up + Power Key Together.
adb reboot bootloader
5. Now to flash the TWRP recovery, just enter the below command.
For ZOOL devices
fastboot flash recovery twrp-3.0.2-4-Z00L.img
For ZOOT devices
Fastboot flash recovery twrp-3.0.2-4-Z00T.img
IF YOU WANT TO ROOT YOUR STOCK MARSHMALLOW JUST FLASH SUPERSU.ZIP PROVIDED ABOVE.
NOTE: If you want to flash cm13/cm14.1/rr or any customized rom do an advance wipe in twrp.(Reboot To Twrp Mode By Switching off Your Phone And Press Volume down + Power Key Together. on twrp choose wipe/advance and mark the following system, data, cache, and dalvik cache.
оО
i didn't know that there is app unlocking bootloader for marshmallow
Not work for me.
I installed the bootloader unlock app and tried to unlock
but it failed and says 'an unknown error occurs which maybe a network connection issue'.But my wifi is working correctly. Please help me to unlock my bootloader. I really need to unlock my bootloader because I don't want to stay in stock rom anymore.
How To Unlock Bootloader And Flash Twrp Without Pc ?
Hey i wanna know how to flash twrp and unlock bootloader cause I'm using stock marshmallow and i dont have pc and i dont know how todo it please help

Root Lenovo Tab 10 TB-X103F

Root Lenovo Tab 10 TB-X103F (Tested)
1. activate developer options on the Tablet
2. enable Bootloader-Unlock on the Tablet
3. download and install ADB und fastboot
4. latest usb driver on your PC
5. download TWRP TWRP-3.0.2_TB-X103F-beta.img
https://forum.xda-developers.com/showpost.php?p=70228684&postcount=65
6. download SuperSu zip file
Steps:
1.) boot to fastboot -> shutdown your device -> press on/off + "+" Volumekey → device restarts to fastboot mode
2.) connect to your pc via usb cable
3.) start command shell (cmd) in the fastboot instalation folder on your PC and check for the device connection with the command:
"fastboot devices"
4.) do the unlocking
"fastboot oem unlock-go"
5.) boot TWRP image file in the command line, showing the pathway to the .img file (if not in the same folder):
fastboot boot TWRP-3.0.2_TB-X103F-beta.img
6.) Put SuperSu zip file in the device memory and flash SuperSu zip with TWRP, then restart the device. Done!!!!
Stock recovery remains
RooterLeopold said:
Root Lenovo Tab 10 TB-X103F (Tested)
1. activate developer options on the Tablet
2. enable Bootloader-Unlock on the Tablet
3. download and install ADB und fastboot
4. latest usb driver on your PC
5. download TWRP TWRP-3.0.2_TB-X103F-beta.img
https://forum.xda-developers.com/showpost.php?p=70228684&postcount=65
6. download SuperSu zip file
Steps:
1.) boot to fastboot -> shutdown your device -> press on/off + "+" Volumekey → device restarts to fastboot mode
2.) connect to your pc via usb cable
3.) start command shell (cmd) in the fastboot instalation folder on your PC and check for the device connection with the command:
"fastboot devices"
4.) do the unlocking
"fastboot oem unlock-go"
5.) boot TWRP image file in the command line, showing the pathway to the file:
TWRP-3.0.2_TB-X103F-beta.img
6.) Put SuperSu zip file in the device memory and flash SuperSu zip with TWRP, then restart the device. Done!!!!
Click to expand...
Click to collapse
I have done all the steps but For some reason twrp is not installed and i still have the stock recovery. Please help
That's because the above only boots TWRP to root but does not install it. To install TWRP, when in booted with TWRP, you need to transfer the TWRP img to the tablet storage and then install it while in TWRP.
it is important to show the pathway to the file TWRP-3.0.2_TB-X103F-beta.img in the command line, like:
C:\Users\Public\Documents\My Videos\TWRP-3.0.2_TB-X103F-beta.img
Sorry for this newbie question.
Which part of the above rooting steps is rooting my tablet, what is TWRP doing and why do I need to install the SuperSU app?
During my first try I didn't boot the TWRP image rather I flashed it. But that didn't help at all.
After booting the TWRP image I was able to flash the SuperSU app.
The stock recovery is still in use.
Thanks in advance.
Read the steps carefully and follow the steps, it is a tested successfull strategy. To get deep knowlege about the background processes, please read the threads elsewhere in Web.
Yow how do you enter Fastboot on the tablet and i haved tied avery button on the tablet and i dont see the fastboot option
Entering Fastboot on Lenovo TB-X103F tablet
ShottaDopey said:
Yow how do you enter Fastboot on the tablet and i haved tied avery button on the tablet and i dont see the fastboot option
Click to expand...
Click to collapse
Hi everyone. I just want to clarify something about this procedure There's a lot of people being confused on how to get into FASTBOOT on some things, and that's stopping them getting anywhere from the beginning.
The Lenovo TB-X103F tablet doesn't have a way of booting directly into FASTBOOT. Turning the tablet On while holding either volume key and the On button doesn't do it directly. . . . . Firstly, there's 3 buttons on the tablet, I call them VOL- VOL+ PWR (again, that's just to clarify things 100%)
here's what must be done (well it's this way on the 3 I have on my desk, so I assume all TB-X103F tablets are the same) . . . . .
1) Turn the tablet off completely.
2) Press & hold the VOL+ button (the middle of the 3 buttons).
3) Press & hold the PWR button, release the PWR button as soon as anything appears on screen - Keep holding VOL+ button.
4) After about 8 seconds the familiar green android lay down will appear. Then, your recovery menu will appear.
5) Release the VOL+ button anytime now.
6) Press either VOL button to select BOOTLOADER on the menu (Bootloader is the same as FASTBOOT on this menu, that's where the confusion lies for many users).
7) Got Bootloader selected? now press PWR and let the tablet reboot itself.
8) it will show the LENOVO logo, and appear to be stuck - it isn't It's in Fastboot mode.
9) Plug in your USB to PC cable, and it'll install appropriate drivers on the PC (hopefully eh?).
10) Once the drivers are installed, test it by getting a Command Prompt in your ADB/FASTBOOT folder on your PC . . . .
11) type the command FASTBOOT DEVICES It should show you that your device is connected, if it shows no devices then either it didn't install the drivers, or something
else is wrong (there's about 30 things that can have gone wrong here, too many to go through in this quick guide).
12) The tablet will stay in FASTBOOT/BOOTLOADER mode until you turn it off (or the battery goes flat lol). So stay calm, there's no rush
I've mentioned about there being no rush, because if you choose ADB connecting from the recovery menu, it disconnects automatically after about 5 minutes -
This is Important to know because it can disconnect while you're pushing/pulling files from the tablet, and cause really nasty problems. Bad design eh?
But we're in Fastboot mode, so nothing to worry about like that
Deleted
Successful root
It was hard, but I had finally had done it. I had figured it out it is easier just to go to the command prompt (I ran it under admin) and "cd C:/adb" (where you installed the adb fastboot software) while having the TWRP image file being placed there. I only wished that I had done it sooner. And for those who are new to the custom recovery it can be overwealming, but with patience and going through the files in the file explorer to find your main storage would lead you to the SuperSU file and successfully root your device.
I flashed TWRP...now what? I can't find any instructions on how to reboot into TWRP. I got into some sort of Chinese menu (PWR + VOL-) but I'm pretty sure this is the device test menu.
So I did the "fastboot oem unlock-go" command and adb said ok but my tablet just went to a black screen and won't turn on now and I'm not sure why. I also heard the Windows USB disconnect sound when i did it.
Would this work with the TB-X104F running 8.1?
Since a few months my tablet is stuck with the 'password changed, wait....' message. I had hoped that I could overcome this with the steps mentioned here. But unfortunately not
I can't start it anymore, so I'm not sure if it is in developers mode or not. Also, plugging the device in my mac didn't let it download the drivers.
Too bad, because when it was working it was a great tablet, now it's just a expensive drawer filler
SynGamer said:
I flashed TWRP...now what? I can't find any instructions on how to reboot into TWRP. I got into some sort of Chinese menu (PWR + VOL-) but I'm pretty sure this is the device test menu.
Click to expand...
Click to collapse
its the vol+ not - you need to press with the power button
Steridroid said:
I have done all the steps but For some reason twrp is not installed and i still have the stock recovery. Please help
Click to expand...
Click to collapse
so what exactly do i have to type at the command prompt to run twrp?,ive put the twrp img file in the same folder as the adb stuff.
3.) start command shell (cmd) in the fastboot instalation folder on your PC and check for the device connection with the command:
"fastboot devices"
fastboot shows notting
lenovo seems to have killed these tablets from the old lady next doors experience.. no wifi, no adb, no fastboot, no qualcomm, just unknown device, which loads NOTHING, no drivers work!!!

fastboot chrash after 10-20 seconds, PC does not recognize,TWRP is ok

Hi,
I ask for help
After attempting to install xpose on the miuI 10 mi5 and restart, the initial logo was rotating and could not go any further.
After various crashes and tortures, I blew him all with a wipe from TRWP.
Now the situation is as follows:
- Mi PC sUIT does not see it (ask for connect your device via USB)
- PC does not see mi5, in Android Divace - Android ADB Interface (yellow triangle)yesterday everything worked, I did not touch anything on the PC.
I think that xiaomi_usb_driver are ok
- vol+,power = can run TWRP 3.2.3.0, so I wipe it all
- Vol-,power = fastboot mode chrash after 10-20 seconds and switch to the logo where it remains in the loop
- mi5 do not react on commands from PC side:fastboot devices,adb devices, fastboot flash recovery twrp.img, fastboot boot twrp.img, adb sideload miui10, etc
It was root with help TRWP,lazyflasherand MagiskManager
is there any idea how to install again miui 10?
thanks in advance
that is thit
In TWRP: Mount, Enable MTP (data, chache) conect with PC and copy/paste ROM

[GUIDE] How to return to Stock/Flash Images with QFIL

Here is a step by step guide on how to flash the stock rom with QFIL and by extension any image.
Download and install the Qualcomm drivers from here
Download either of the firmware from here
Download the support files (Firehose/rawprogram0.xml/patch0.xml) here
Extract the firmware and support files to the same folder so you can easily access them like your desktop
Download and install QPST from here
Open the QFIL application (Find it in your start menu)
In the "Select Build Type" field select Flat Build
In the "Select Programmer" field navigate to the folder you extracted the firmware and support files to and select the prog_emmc_firehose_8909.mbn file
Select the "Load XML" button and navigate to the folder you extracted the firmware and support files to and select the rawprogram0.xml and then the patch0.xml when prompted.
Plug in your tablet
Run the following adb command "adb reboot edl" (Now the screen should be blank but the led light should be red)
If the text at the top of the QFIL application says "No Port Available" click the "Select Port..." option and pick your device. If your device isn't showing up there you didn't install the drivers properly.
Click the Download Button to begin flashing your device
So the above explains how to flash everything if you want to flash individual partitions you can edit your rawprogram0.xml to only include the ones you want. (patch0.xml stays the same) I have linked below 2 examples, one of them flashes just a boot.img and one that just flashes the recovery.img. But you aren't limited to those.
Recovery
Boot
Mine just in case
Awesome, thanks for this post! it will really help us in upcoming projects!
Managed to revive my phone using the B12 files but it crashes after completing system.img, I think the problem is userdata.img, my phone boots but I lost the imei and I don't know how to get it back, I'm still trying.
ZTE 971 not recognized by either QPST or QFIL
Thanks for all the detailed instructions. But my ZTE 971 is not visible to either qpst or qfil eventhough the phone shows in windows 8.1. In the Developer Options menu, I noticed Select USB Configuration, RNDIS (USB ethernet) option cannot be enabled. I wonder if this has anything to do with it. OEM unlocking, USB debbugging are already selected. Any suggestions, please? Thanks.
ps. I live in Turkey. I got this phone last year from AT&T and have unlocked the sim.
My PC is not detecting my ZTE MAVEN 3
I have installed all drives but still facing the issue. I am using it on Windows 10.
I flashed the B13 (ZPST tool shows my device as B13) with the QFIL like your guide says and it says all completed successfully and finishes, but now my phone went from only being able to boot EDL + FTM + Recovery, to now booting directly to EDL mode, which obviously means this guide completely screwed up my phone... Thanks.
Mega says that link for the driver is invalid, but the driver is included in your QPST download anyway.
000Nick said:
I flashed the B13 (ZPST tool shows my device as B13) with the QFIL like your guide says and it says all completed successfully and finishes, but now my phone went from only being able to boot EDL + FTM + Recovery, to now booting directly to EDL mode, which obviously means this guide completely screwed up my phone... Thanks.
Click to expand...
Click to collapse
solucionaste hermano
Mod edit:
you solved brother
Click to expand...
Click to collapse
it says qhsusb_bulk when I connect the the software is not working in the mobile and it is stuck at bootloader screen but I used the press both buttons to go to edl mode method and it said in the device manager a device connected with name : qhsusb_bulk
help pls
Hello All.
I am not able to get the following files
rawprogram.xml and patch.xml for LG G8x​Please help me to get this files ASAP as i have hard bricked the mobile, all partitions deleted

Root instructions

1/ WARNING: Unlocking the Bootloader WILL PERFORM A FACTORY RESET on your phone. Please backup your data BEFORE PROCEED.
2/ Should you run into any issues, please post here
Here is the good stuff. The rooting process is divided into 2 parts: Bootloader unlock and Rooting itself.
Before you begin, please download the Following
1) Download platform-tools on your computer here 11
2) Optional for Windows PC: MTK VCOM USB drivers here 5 (the default Windows driver works sometimes but not always. If the default driver doesn’t work for you, install this one)
3) Download factory-prepared patched stock BOOT.IMG here (this is patched to Magisk 20.4)
Bootloader Unlock
- Goto Teracube's Developer Options (via Settings/System/About and tap Build number several times to unlock Developer Options if this is not already available)
- Goto Settings > System > Developer settings
- Turn on OEM unlocking
- Shutdown the phone
- Press Vol+ and Power buttons simultaneously for 5/6 seconds
- You’ll see 3 options in tiny fonts. Use Vol+ to toggle option
- Select Fastboot and press Vol- to select it
- Connect Teracube to your PC/computer using the USB-C cable came with the package.
- Using platform-tools on your computer run the command
fastboot flashing unlock
Click to expand...
Click to collapse
- A confirmation message will be displayed on the screen, press Vol+ to say accept
- Bootloader is now unlocked. You will see some messages during the boot sequence each time you boot/reboot your phone. This is an expected behavior.
- Do not reboot or shutdown phone yet if you plan to continue with the root process (see below)
Root
- Perform Bootloader unlock steps (as above). Otherwise, the phone will complain of verification and will not allow you to proceed
- Connect Teracube to your PC/computer using the USB-C cable came with the package.
- Use platform-tools on your computer and run the command to flash the patched bootloader to your phone (your BOOT.IMG filename may vary)
fastboot flash boot teracube_patched_boot_sw1_magisk_20.4.img
Click to expand...
Click to collapse
- Run the following command to complete reboot your phone and complete the process
fastboot reboot
Click to expand...
Click to collapse
That’s it. Your Teracube should be rooted.
Install Magisk manager from github to check and use root.
Thank! Very useful post!
Hi, where can i find platform-tools for Ubuntu 18.04 ?
Thanks

Categories

Resources