Question [SOLVED] Stucked in fastboot mode at startup - Redmi Note 10S

Hello,
i just get a Redmi Note 10s a few days ago. I unlocked it using this tutorial and it worked perfectly.
Then i wanted to root it (because those ads are so annoying). So i used this guide but i had some issues during step 3. After "fastboot.exe reboot" the MIUI setup did not appeard. Then i tried a few things, looking for informations on this web site. But i guess i made a total mess on my phone because now he just turn on and turn off without stopping. It does not even start. I think i destroyed the boot partition using the wrong commands like a n00b ... I'm just abble to get the fastboot mode but not the recovery mode. I can still using fastboot on my computer but adb does not recognize it.
Any idea how i can do a hard/factory reset ?
Thanks a lot !

Ok ...
I tried this : https://xiaomiflashtool.com/tutorial/use-xiaomi-flash-tool
But after 10 minutes of flashing i get a time out error :
[2022-06-03 19:34:57:101:101999 UOMJZXHEHIZHBIBQ]:MiFlash 2022.2.18.0
[2022-06-03 19:34:57:101:101999 UOMJZXHEHIZHBIBQ]:vboytest index:0
[2022-06-03 19:34:57:109:109999 UOMJZXHEHIZHBIBQ]:Thread id:10 Thread name:
[2022-06-03 19:34:57:109:109999 UOMJZXHEHIZHBIBQ]:image path:C:\Users\Operateur\Downloads\rosemary_eea_global_images_V12.5.16.0.RKLEUXM_20220208.0000.00_11.0_eea
[2022-06-03 19:34:57:109:109999 UOMJZXHEHIZHBIBQ]:env android path:"C:\Users\Operateur\Downloads\MiFlash20220218\Source\ThirdParty\Google\Android"
[2022-06-03 19:34:57:109:109999 UOMJZXHEHIZHBIBQ]:script :C:\Users\Operateur\Downloads\rosemary_eea_global_images_V12.5.16.0.RKLEUXM_20220208.0000.00_11.0_eea\flash_all_except_data_storage.bat
[2022-06-03 19:34:57:122:122000 UOMJZXHEHIZHBIBQ]:Physical Memory Usage:3334144 Byte
[2022-06-03 19:34:57:125:125999 UOMJZXHEHIZHBIBQ]:start process id 6044 name cmd
[2022-06-03 19:34:57:555:555330 UOMJZXHEHIZHBIBQ]:info1:$fastboot -s UOMJZXHEHIZHBIBQ getvar product 2>&1 | findstr /r /c:"^product: *secret" || fastboot -s UOMJZXHEHIZHBIBQ getvar product 2>&1 | findstr /r /c:"^product: *rosemary" || fastboot -s UOMJZXHEHIZHBIBQ getvar product 2>&1 | findstr /r /c:"^product: *maltose" || echo Missmatching image and device
[2022-06-03 19:46:37:124:124248 UOMJZXHEHIZHBIBQ]:error: flash timeout6044
[2022-06-03 19:46:37:124:124248 UOMJZXHEHIZHBIBQ]:timeout kill cmd: 6044
It seems totally stucked :'/

Update :
This method https://androidmtk.com/flash-stock-rom-using-smart-phone-flash-tool did not work either.
The program was not able to connect to the phone.

What's wrong with just reflashing using a relevant stock Xiaomi rom from the official site using their official software?
https://c.mi.com//miuidownload/detail?device=1900397

stuntdouble said:
What's wrong with just reflashing using a relevant stock Xiaomi rom from the official site using their official software?
https://c.mi.com//miuidownload/detail?device=1900397
Click to expand...
Click to collapse
Hi,
thanks, I'll try this as soon as possible and i'll come forward.
EDIT : that's pretty such the same thing i did mention on my second message : https://xiaomiflashtool.com/tutorial/use-xiaomi-flash-tool

So, i did what you told me.
That was almost exactly what i did yesterday, except for two points :
1 - The Xiaomi Flash Tool was older
2 - The ROM was more recent.
It exactly happened the same than yesterday, which is :
After 2 minutes it's 100% complete but it continues, and after 15 minutes my phone reboot.
But i realized something. When the phone is usb-plugged, every 5 or 10 seconds i can hear the windows sound that you hear when you plug or unplug the phone. I hear this sound only when it is on fastboot mode, not when when it is booting again and again.
I checked the Device Manager and every time i hear the sound, it does a refresh.
So i tried to do the same on another computer with another cable and i got exactly the same problem.
Here are the logs :
Code:
[15:57:27 UOMJZXHEHIZHBIBQ]:MiFlash 2020.3.14.0
[15:57:27 UOMJZXHEHIZHBIBQ]:vboytest index:0
[15:57:27 UOMJZXHEHIZHBIBQ]:idproduct: 0 idvendor: 0
[15:57:27 UOMJZXHEHIZHBIBQ]:Thread id:10 Thread name:UOMJZXHEHIZHBIBQ
[15:57:27 UOMJZXHEHIZHBIBQ]:image path:C:\Users\Operateur\Downloads\rosemary_eea_global_images_V12.5.17.0.RKLEUXM
[15:57:27 UOMJZXHEHIZHBIBQ]:env android path:"C:\Users\Operateur\Downloads\MiFlash2020-3-14-0\Source\ThirdParty\Google\Android"
[15:57:27 UOMJZXHEHIZHBIBQ]:script :C:\Users\Operateur\Downloads\rosemary_eea_global_images_V12.5.17.0.RKLEUXM\flash_all_lock.bat
[15:57:27 UOMJZXHEHIZHBIBQ]:Physical Memory Usage:3469312 Byte
[15:57:27 UOMJZXHEHIZHBIBQ]:start process id 14596 name cmd
[15:57:27 UOMJZXHEHIZHBIBQ]:info1:$fastboot -s devicename getvar product 2>&1 | findstr /r /c:"^product: *secret" || fastboot -s devicename getvar product 2>&1 | findstr /r /c:"^product: *rosemary" || fastboot -s devicename getvar product 2>&1 | findstr /r /c:"^product: *maltose" || echo Missmatching image and device
At the end of the tutorial you gave me i read this : If the flashing guide could not help you, please download Mi PC Suite here
But i have the same problem with this app : it tries to connect to the phone (Checking for updates) but the phone is 'unpluging' and 'pluging back' again and again and the app show me this : Reading device information failed.
If i click on 'Connect to device' i just get this window saying : Connect your device via USB.
I really do not know what to do :/

extract firmware and download platform tools ,place both files in 1 same folder and now hit flash all to flash firmware
i will write complete guide later

Hey,
thanks for the answer, i'm at work right now so i will not be able to do anything for a few hours.
And i did not understand everything from your message

zuhaibsarwar said:
extract firmware and download platform tools ,place both files in 1 same folder and now hit flash all to flash firmware
i will write complete guide later
Click to expand...
Click to collapse
Hey,
thanks for the answer, i'm at work right now so i will not be able to do anything for a few hours.
And i did not understand everything from your message
So i'll wait a bit for your complete guide ...

After 2 minutes it's 100% complete but it continues, and after 15 minutes my phone reboot.
Click to expand...
Click to collapse
That part is normal for flashing a stock rom, it takes a while. No idea why it likes to say 100% when it's nowhere near complete as yes it's confusing but that's just the way it is.
When the phone is usb-plugged, every 5 or 10 seconds i can hear the windows sound that you hear when you plug or unplug the phone.
Click to expand...
Click to collapse
It sounds like you might not have all the necessary ADB tools correctly configured for fastboot to work properly. It could also be the windows power saving feature on your usb hub causing that issue, or an incorrect or missing driver.

stuntdouble said:
That part is normal for flashing a stock rom, it takes a while. No idea why it likes to say 100% when it's nowhere near complete as yes it's confusing but that's just the way it is.
It sounds like you might not have all the necessary ADB tools correctly configured for fastboot to work properly. It could also be the windows power saving feature on your usb hub causing that issue, or an incorrect or missing driver.
Click to expand...
Click to collapse
Hey,
I check all the drivers and the ADB tools, they are all installed correctly. I change the USB power savings : USB selective suspend settings ==> Disabled.
And ... That was it ! I was able to flash it.
Thanks a lot !

nwaab said:
Hey,
thanks for the answer, i'm at work right now so i will not be able to do anything for a few hours.
And i did not understand everything from your message
So i'll wait a bit for your complete guide ..
Click to expand...
Click to collapse
download original firmware for your device and now extract the firmware for your device in 1 folder and now download platform tools
and also extract it and now move both folder files and in 1 folder and make sure you have adb and fastboot installed now from firmware folder click on flash script to installed firmware in your device and also before clicking in flash script put device on bootloader mode

nwaab said:
Hello,
i just get a Redmi Note 10s a few days ago. I unlocked it using this tutorial and it worked perfectly.
Then i wanted to root it (because those ads are so annoying). So i used this guide but i had some issues during step 3. After "fastboot.exe reboot" the MIUI setup did not appeard. Then i tried a few things, looking for informations on this web site. But i guess i made a total mess on my phone because now he just turn on and turn off without stopping. It does not even start. I think i destroyed the boot partition using the wrong commands like a n00b ... I'm just abble to get the fastboot mode but not the recovery mode. I can still using fastboot on my computer but adb does not recognize it.
Any idea how i can do a hard/factory reset ?
Thanks a lot !
Click to expand...
Click to collapse
stop messing with device by unlocking bootloader .dont get your device hard brick

Related

Mi5 locked and impossible to unlock

Hello,
I bought Mi5 - 3/64GB phone from Aliexpress. When I got it, I didn't tried to connect it to internet or insert SIM card. I just took Mi Pc suite, and updated it to MIUI 8 version. After that everythink looked OK. Then I inserted SIM card with data enabled, my phone suddenly connected to internet and blocked up. Now I only see the picture I attached.
This is not my Mi account, I can't use phone at all. Can't access menu, turn on developer options or even use updater.
Phone is locked.
Recovery (Sound up+power) doesn't enter anywhere, only black screen with phone.
Bootloader works ok.
When pluged to pc, can't send any files to phone through USB cable.
I tried unbick methods (can't post link as a new member), with all ROM versions. It only updates to Xiaomi Mi5 Global stable. Other versions doesn't update, only gives me some kind of chinese error.
Maby someone had this issue ?
Attached photo
It looks like you got a Mi5 with a unofficial Rom and lots of bloatware.
With the guide in miui forum i tried to load a official rom, but it didn't work.
Instead my Mi5 is bricked now. Unable to get in the recovery mode, only into fastboot. I even got the unlock code
easily but couldn't my PC won't connect to the Mi5.
use this method to flash MIUI 8 Global version
skip the miflash tool,... extract everything using 7zip,... move files to root directory example C:\miui8
connect phone into fastboot mode and run flash_all.bat
First boot takes a lot of time...
chiragkrishna said:
use method to flash MIUI 8 Global version
skip the miflash tool,... extract everything using 7zip,... move files to root directory example C:\miui8
connect phone into fastboot mode and run flash_all.bat
First boot takes a lot of time...
Click to expand...
Click to collapse
This method doesn't work. When I press flash_all.bat CMD window appears for half a second and then disappears with no reaction. (Tried run as administrator also)
rokasb said:
This method doesn't work. When I press flash_all.bat CMD window appears for half a second and then disappears with no reaction. (Tried run as administrator also)
Click to expand...
Click to collapse
There shouldn't be any spaces in the path...
Best place is extract in C:/miui8
chiragkrishna said:
There shouldn't be any spaces in the path...
Best place is extract in C:/miui8
Click to expand...
Click to collapse
I extracted to C:\MIUI8
rokasb said:
I extracted to C:\MIUI8
Click to expand...
Click to collapse
Is there any service center near your place? They ca help you unlock in couple of minutes
rokasb said:
I extracted to C:\MIUI8
Click to expand...
Click to collapse
Okay go to the folder, Hold down shift and right click(mouse) and select open command prompt here.... Now type flash_all.bat n hit enter and tell me what u get!!
chiragkrishna said:
Okay go to the folder, Hold down shift and right click(mouse) and select open command prompt here.... Now type flash_all.bat n hit enter and tell me what u get!!
Click to expand...
Click to collapse
Here it is what I get:
C:\miui>fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || echo Missmatching image and device
rokasb said:
Here it is what I get:
C:\miui>fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || echo Missmatching image and device
Click to expand...
Click to collapse
which rom did you download?
correct one is Xiaomi Mi 5 Latest Global Stable Version Fastboot File Download
chiragkrishna said:
which rom did you download?
correct one is Xiaomi Mi 5 Latest Global Stable Version Fastboot File Download
Click to expand...
Click to collapse
Yes, I downlaoded exacly this
rokasb said:
Yes, I downlaoded exacly this
Click to expand...
Click to collapse
okay right click on flash_all.bat and open in word editor
remove this line
Code:
fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || echo Missmatching image and device
save it and run
chiragkrishna said:
okay right click on flash_all.bat and open in word editor
remove this line
Code:
fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || echo Missmatching image and device
save it and run
Click to expand...
Click to collapse
So I copied ADB files to my c:/miui folder where is ROM files to acces adb.
And it cannot be flashed because device is locked, here is the text I get:
Code:
C:\MIUI8>flash_all.bat
C:\MIUI8>fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || echo Missmatching image and device
product: MSM8996
C:\MIUI8>fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || exit /B 1
product: MSM8996
C:\MIUI8>fastboot erase bk12 2>&1
erasing 'bk12'...
FAILED (remote: device is locked. Cannot erase)
finished. total time: 0.022s
C:\MIUI8>if not 1 == 0 exit /B 1
C:\MIUI8>
rokasb said:
So I copied ADB files to my c:/miui folder where is ROM files to acces adb.
And it cannot be flashed because device is locked, here is the text I get:
Code:
C:\MIUI8>flash_all.bat
C:\MIUI8>fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || echo Missmatching image and device
product: MSM8996
C:\MIUI8>fastboot getvar product 2>&1 | findstr /r /c:"^product: *MSM8996" || exit /B 1
product: MSM8996
C:\MIUI8>fastboot erase bk12 2>&1
erasing 'bk12'...
FAILED (remote: device is locked. Cannot erase)
finished. total time: 0.022s
C:\MIUI8>if not 1 == 0 exit /B 1
C:\MIUI8>
Click to expand...
Click to collapse
try using MIFlash tool, if that fails then you can either give it service center or unlock your device
chiragkrishna said:
try using MIFlash tool, if that fails then you can either give it service center or unlock your device
Click to expand...
Click to collapse
I already tried flash with MiFlash tool. In my country there is no service center. Maby there is another way without service center, something like teardown method for bricked devices... Anything would help
rokasb said:
I already tried flash with MiFlash tool. In my country there is no service center. Maby there is another way without service center, something like teardown method for bricked devices... Anything would help
Click to expand...
Click to collapse
download MI PC suite install it and run it
enter recovery mode (hold VolUp+Power) and connect to PC
hopefully MI PC suite should update your phone!!
chiragkrishna said:
download MI PC suite install it and run it
enter recovery mode (hold VolUp+Power) and connect to PC
hopefully MI PC suite should update your phone!!
Click to expand...
Click to collapse
Yes, only china newest Mi Pc Suite does something. It allows me to choose global stable rom to write, but after that my problem repeats...
rokasb said:
Yes, only china newest Mi Pc Suite does something. It allows me to choose global stable rom to write, but after that my problem repeats...
Click to expand...
Click to collapse
unlock your device
chiragkrishna said:
unlock your device
Click to expand...
Click to collapse
Problem is that it writes me, that device is locked to another device... anad I can't unlock it
rokasb said:
Problem is that it writes me, that device is locked to another device... anad I can't unlock it
Click to expand...
Click to collapse
did you try manual way
Code:
fastboot flash boot boot.img
try it
if possible send me the flash_all.bat

K20 pro ARB?

Hello, recently I bought K20 Pro. Unlocked the bootloader and flashed the last xiaomieu rom with android 10, but there are many bugs.
Can i go back to stock china stable with android 9 without issues, or ill have problems with arb? Thanks.
Tedoff said:
Hello, recently I bought K20 Pro. Unlocked the bootloader and flashed the last xiaomieu rom with android 10, but there are many bugs.
Can i go back to stock china stable with android 9 without issues, or ill have problems with arb? Thanks.
Click to expand...
Click to collapse
There’s no ARB on K20 Pro
Sukhi said:
There’s no ARB on K20 Pro
Click to expand...
Click to collapse
So i can flash the stock image with older firmware via twrp with no problems ?
Tedoff said:
So i can flash the stock image with older firmware via twrp with no problems ?
Click to expand...
Click to collapse
Fastboot is highly recommend. Choose the options carefully in Mi Flash. Do not lock your bootloader.
Sukhi said:
Fastboot is highly recommend. Choose the options carefully in Mi Flash. Do not lock your bootloader.
Click to expand...
Click to collapse
Can you give me link for MiFlash? Also my device is encrypted. Is this will be a problem ? Thanks for your time.
Tedoff said:
Can you give me link for MiFlash? Also my device is encrypted. Is this will be a problem ? Thanks for your time.
Click to expand...
Click to collapse
https://download.appmifile.com/images/2019/07/01/09cdc3a7-5a11-42aa-81f4-be27fe12ce80.msi
Choose Clean_All Only. Choosing Clean_All_Lock with lock your bootloader.
The tool is gonna wipe your internal storage so encryption doesn’t matter. Just logout from Xiaomi, Google accounts before proceeding. Also remove any Pin/Fingerprint if you have set.
Sukhi said:
There’s no ARB on K20 Pro
Click to expand...
Click to collapse
are you sure? i checked "antivar anti" on fastboot and it gave me "1" as result.
I took a look on flash_all.bat of 10.3.16 chinese rom i have here and file starts with:
set CURRENT_ANTI_VER=1
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"
echo %anticheck% | findstr /r /c:"pass" || @ECHO "Antirollback check error" && exit /B 1
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *raphael" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *raphael" || exit /B 1
thiagodark said:
are you sure? i checked "antivar anti" on fastboot and it gave me "1" as result.
I took a look on flash_all.bat of 10.3.16 chinese rom i have here and file starts with:
set CURRENT_ANTI_VER=1
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"
echo %anticheck% | findstr /r /c:"pass" || @ECHO "Antirollback check error" && exit /B 1
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *raphael" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *raphael" || exit /B 1
Click to expand...
Click to collapse
I have done rollback from Q to P successfully through fastboot multiple times. I am just quoting what i see on Xiaomi.eu.
Sukhi said:
I have done rollback from Q to P successfully through fastboot multiple times. I am just quoting what i see on Xiaomi.eu.
Click to expand...
Click to collapse
i believe arb is enabled on k20 pro devices, but xiaomi isn't apply policies yet, but as soon as we get a rom with index '2', we will get another bricked phones wave...
i think best practice is to check arb index in the rom you intend to flash...
How can we know if arb will be enabled?
Sukhi said:
https://download.appmifile.com/images/2019/07/01/09cdc3a7-5a11-42aa-81f4-be27fe12ce80.msi
Choose Clean_All Only. Choosing Clean_All_Lock with lock your bootloader.
The tool is gonna wipe your internal storage so encryption doesn’t matter. Just logout from Xiaomi, Google accounts before proceeding. Also remove any Pin/Fingerprint if you have set.
Click to expand...
Click to collapse
I did that, but now i have another problem.
In dev options it shows that my bootloader is locked. With fastboot check its unlocked. Is that normal?
Tedoff said:
I did that, but now i have another problem.
In dev options it shows that my bootloader is locked. With fastboot check its unlocked. Is that normal?
Click to expand...
Click to collapse
Did you do a clean flash? This is new to me. Try flashing a twrp and see if it boots in that.
Sent from my Redmi K20 Pro using Tapatalk
Sukhi said:
Did you do a clean flash? This is new to me. Try flashing a twrp and see if it boots in that.
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
I did clean flash, twrp and root. It boots into twrp without problem, but that bootloader status bothers me.
Tedoff said:
I did clean flash, twrp and root. It boots into twrp without problem, but that bootloader status bothers me.
Click to expand...
Click to collapse
Did you unlock it on your own or you got it unlocked from the seller? Try adding your MI Account under Developer Options >> Mi Unlock Status
Sent from my Redmi K20 Pro using Tapatalk
View attachment 4821051View attachment 4821053
Sukhi said:
Did you unlock it on your own or you got it unlocked from the seller? Try adding your MI Account under Developer Options >> Mi Unlock Status
Sent from my Redmi K20 Pro using Tapatalk
View attachment 4821051View attachment 4821053
Click to expand...
Click to collapse
I unlocked it by myself.
Tedoff said:
I unlocked it by myself.
Click to expand...
Click to collapse
Have you solved yout problem? Mine won't boot after unlocking my device.

Solved! Persist Partition Resolution!

I created this thread to serve as a "All in One" thread with all possible known solutions to repair the infamous Persist issue that some unfortunate people have experienced. Symptoms can include the EFS No Signal issue, and eventually the phone will shut down and no longer being able to boot to system, even when formatted the ever present persist error messages in TWRP seem unfixable. until now.
Option 1
The most simple and easy option
The easiest solution for resolving a persist issue is to restore your Full TWRP backup. That is if you were careful enough to make a full backup that included backing up the persist image.
Update repair file April 2020:
Option 2
Download this file and follow the steps on the link below
File: https://androidfilehost.com/?fid=4349826312261781866
See this page on this thread for the steps to use the tested and working file above: : https://forum.xda-developers.com/showpost.php?p=82346409&postcount=76
I will leave the other optional methods below posted just in case this file does not work for some people. Also If you are visiting this thread from another device and need similar help. Send me a PM and I can make a solution for your device, I also have made fixes for DBTO issues
Once your issue is resolved :
Immediately go make a full backup and save it to your desktop and you will never have to deal with the annoyance. of a persist related issue.
Note that you must use The most current Orange Fox or the LR Team version of TWRP, because it is one of the few versions that include the option of backing up and restoring persist.
Recommended Tools Needed for preventative measure and for the additional options below
A Recovery that can backup and restore the persist partition
April 2020 version of Orange Fox or LR Team TWRP will suffice
Orange Fox: https://sourceforge.net/projects/orangefox/files/dipper/OrangeFox-R10.1-Stable-dipper.zip/download
LR Team version of TWRP
Non-Q version: https://androidfilehost.com/?fid=4349826312261636232[/url]
Q version: https://androidfilehost.com/?fid=4349826312261636230[/url]
You must use one of these versions of TWRP, because they both have the ability to write to the persist partition.
Backup your data if possible (most likely you can’t ) and you need to remove all encryption by formatting user data
If you do not have a backup and the flashable persist solution does not work, I would suggest starting clean by restoring the phone with a fastboot rom.
Fastboot Images Rom
Any Dipper images rom will work, BUT Must be the version for your device) Below is for Global devices only.
Global Stable Fastboot 11.0.3.0 : dipper_global_images_V11.0.3.0.QEAMIXM_20200118.00 00.00_10.0_global
Alternatively you can use the older 11.0.6
http://bigota.d.miui.com/V11.0.6.0....XM_20191022.0000.00_9.0_global_fe09c43d5a.tgz
OR one of these alternate Archive of Image Roms : Make sure you choose for your device ( Global or China) . Also, I will add additional official links here as I find them I have not been able to find an official link for 11.03. but I have inspected and scanned it and it is purely stock.
https://xiaomifirmware.com/roms/download-official-miui-roms-for-xiaomi-mi8-dipper/
Option 3
In the unlikely event that the flashable fix fails unpack the fastboot rom, and manually extract the persist.img and then place it into the sd folder of your phone using the TWRP recovery file manager.
1. Boot to TWRP ( Command below only works if booted to TWRP Recovery)
2. Go to advanced, then terminal
3. type: dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist
4. After its finished reboot to the system, finished
5. Alternate step here
Option 4 - If using an older Oreo or Pie rom
Ensure that you have proper Recovery installed and have downloaded the images file
1. Chose wipe-> 'format data' in TWRP, type yes, reboot to recovery English and then complete the full wipe steps and flash Magisk.
2. Next, Install the TWRP that I mentioned later versions of TWRP do not have the option to flash the persist image alone.
3. This version of TWRP is in Chinese you need to change it to English.
4. Go to settings/ globe to activate the English version. > Reboot to recovery
5. Copy persist.image to your MI8 using desktop
6. The persist image file is inside the unpacked images rom folder that you should have downloaded.
7. Within In TWRP File manager: Chose to install image, and copy persist image into the partition folder “persist”
8. Format all data and the persist will be unlocked
9. Flash Magisk
10. Done, You should be back in Business.
Option 5 - Flashall.bat restore
1. Enter Fastboot mode
2. Download fastboot dipper images rom, and use flashall.bat method to restore the phone.
3. Download dipper images rom. > Important>>>>>> It must be a fastboot rom and not a Recovery rom
4. Unpack the rom twice on your desktop
5. You will be left with a folder and inside you will see batch files and an image folder.
6. Doubleclick Flashall.bat ( be careful on what you click, you want flashall.bat only) with the phone attached an in Recovery mode, fastboot or EDL
7. Flashall.bat is a batch script that will wipe your phone and restore all images and then boot to the system.
8. You should then Setup rom
9. Afterwards, install TWRP and root then create a full Twrp backup and save to your PC.
10. This way you will have a quick solution if you ever need it again in the future.
11. Enjoy a working phone
Flashall.bat : Described here : https://forum.xda-developers.com/showpost.php?p=81532611&postcount=8
Partitions backed up by LR Team listed here : https://forum.xda-developers.com/showpost.php?p=81532463&postcount=7
If I just saved your phone and a mountain of headaches, please say thanks by clicking the thanks button or better yet I would certainly welcome a small donation for Pizza or beer.
Attached Images Explanation :
The first image illustrates the location of the persist image found within the Images Rom, this is what you will use to overwrite, the persist partition.
The 2nd image : shows the backed up files perist files when you have madea backup using one of the recommended versions of recovery. if your issue is resolved, make a backup now and store it on your desktop. This way if you encounter a persist issue, it can be fixed within seconds by booting to recovery and restoring persist ( Again It must be you own persist, You cannot restore someone else persist backup to your phone or you will cause irreparable damage.
Worst case scenario: I live in the US, if you are local and you still having trouble, feel free to send me a PM. If you arrange shipping and mail your phone to me. I will attempt to repair it and if successful there will be a very small and reasonable fee.
Good luck
I have spent literally over one hundred hours researching this issue, before discovering a universal solution that should work for most people. However, I have found that it will not permanently repair phones that have either restored someone else TWRP persist back up, or that they have manually IMEI modified. DO NOT PM ME about this is issue unless you have made a donation in advance, this thread provides everything that you need to know and you are getting it for free by reading the above options.
Reserved
tsongming said:
Since I have written the persist instructions on practically every thread out there and still receive PM's daily asking for help I have created this all in One thread with all possible solutions to repair a Persist issue ( AKA, EFS No Signal issue, or Persist error messages in TWRP)
Common Courtesy on XDA is Clicking Thank you.
Click here to learn more
Thank you Rant
Next, I don’t mind with short quick tips. But for these extended types of solutions, it's very annoying that people in the Mi8 forum cannot be bothered to click the thank you button.
Watching my statistics improve with the thanks button being clicked is almost as good as a beer. Click it, don't say it.
Once your issue is resolved :
Immediately go make a full backup and save it to your desktop and you will never have to deal with the annoyance. of a persist related issue. Note that you must use the LR Team version of TWRP, because it is one of the few versions that include the option of backing up and restoring persist.
Back to the Matter at Hand.
So I am guessing that you flashed something incorrectly and now your persist partition is corrupt. Absolutely, I have personally had this issue myself, more than once, and the easiest and best way is to restore your Full TWRP backup if you have one.
Tools Needed
LR Team version of TWRP
Non-Q version: https://androidfilehost.com/?fid=4349826312261636232
Q version: https://androidfilehost.com/?fid=4349826312261636230
You must use this version of TWRP, because it has the ability to write to the persist partition.
Backup your data if you can, most likely you can’t and it’s gone so you need to remove all encryption by formatting user data.
Fastboot Images Rom ( Any Dipper images rom will work, BUT Must be the version for your device) Below is for Global
http://bigota.d.miui.com/V11.0.6.0....XM_20191022.0000.00_9.0_global_fe09c43d5a.tgz
Alternate Archive of Image Roms, make sure you choose for your device. Also, I will add additional official links here as I find them.
https://xiaomifirmware.com/roms/download-official-miui-roms-for-xiaomi-mi8-dipper/
Option 1
• The absolute best method is to use a Twrp restore if you have one. Did you save any Twrp backups to your PC?
FYI Trivia: the release date of the firmware doesn't matter, If you use diff or Beyond Compare to analyse file differences you will find nothing different.
Option 2
• Unpack the fastboot rom, and manually extract the persist.img and then place it into the sd folder of your phone using the TWRP recovery file manager.
1. Boot to TWRP
2. Go to advanced, then terminal
3. type: dd if = / sdcard / persist.img of = / dev / block / bootdevice / by-name / persist
4. After its finished reboot to the system, finished
Option 3
Ensure that you have proper TWRP installed and have downloaded the images file
1. Chose wipe-> 'format data' in TWRP, type yes, reboot to recovery English and then complete the full wipe steps and flash Magisk Canary.
2. Next, Install the TWRP that I mentioned later versions of TWRP do not have the option to flash the persist image alone.
3. This version of TWRP is in Chinese you need to change it to English.
4. Go to settings/ globe to activate the English version. > Reboot to recovery
5. Copy persist.image to your MI8 using desktop
6. The persist image file is inside the unpacked images rom folder that you should have downloaded.
7. Within In TWRP File manager: Chose to install image, and copy persist image into the partition folder “persist”
8. Format all data and the persist will be unlocked
9. Flash Magisk
10. Done, You should be back in Business.
Option 4
1. If you are unable to access fastboot, you will need to go into EDL mode ( absolutely use Fastboot if available)
2. Download fastboot dipper images rom, and use flashall.bat method to restore the phone.
3. Download dipper images rom. Note: It has to be a fastboot rom and not a Recovery rom
4. Unpack the rom twice on your desktop
5. You will be left with a folder and inside you will see batch files and an image folder.
6. Doubleclick Flashall.bat ( be careful on what you click, you want flashall.bat only) with the phone attached an in Recovery mode, fastboot or EDL
7. Flashall.bat is a batch script that will wipe your phone and restore all images and then boot to the system.
8. You should then Setup rom
9. Afterwards, install TWRP and root then create a full Twrp backup and save to your PC.
10. This way you will have a quick solution if you ever need it again in the future.
11. Enjoy a working phone
Errors may exist in this post, I barely proofread it so let me know if there are any errors and check back I will fine tune it over the next few days.
Finally, I just saved your phone. So go click thanks, clicking thanks is what provides motivation to help you. or better yet, buy me a beer.
Images Explanation :
The first image on the left is the persist file within the Images Rom, this is what you will use to overwrite, the persist partition.
The 2nd image is what the perists files look like if you backup persist with the LR Team versions of TWRP, if you encounter a persist issue, it can be fixed in 10 seconds by boot to recovery and restoring persist ( It must be you own persist, You cannot restore someone else persist or your phone will be much m8uch worse off, and probably unfixable.
Click to expand...
Click to collapse
Hey Thanks so much for this post. However, for Option 2 , the command is not working , Then i tried dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist, it worked but the issue was not solved.
and for Option 4 . i pressed the flash_all.bat but nth came out , so i installed fastboot files into the fastboot file and when i click the flashall.bat it worked . but then after setting up , my IMEI , Wifi and simcard were still dead
Any suggestion?
Once again im soo grateful for this but my 16 thanks limit is up
Theevanz said:
Hey Thanks so much for this post. However, for Option 2 , the command is not working , Then i tried dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist, it worked but the issue was not solved.
and for Option 4 . i pressed the flash_all.bat but nth came out , so i installed fastboot files into the fastboot file and when i click the flashall.bat it worked . but then after setting up , my IMEI , Wifi and simcard were still dead
Any suggestion?
Once again im soo grateful for this but my 16 thanks limit is up
Click to expand...
Click to collapse
Okay, I am getting ready to go to bed so this post will be brief. Persist issues are usually caused by encryption, or somehow the persist image gets wiped. I used a spellchecker and I think it added the space. Doh!
Try using adb command : fastboot flash persist persist .img
1. You must first put a copy of the persist image from the Images folder into the ADB folder, or open the ADB window from within the extracted folder.
2. If this works then use flashall.bat method to restore phone. if it fails with the 11.6 Rom then try an older one.
If this fails:
I assume that you do not have a backup that you can restore? if so by all means do that first. Because it will absolutely work. Next remember that you must wipe the phone completely including formatting userdata/storage. and use the TWRP that I listed above.
Please explain exactly how you arrived at this issue, and don't leave out details. How did you arrive at this issue? If you were editing the IMEI then tell me , that requires restoring a QCN file and using QPST. (That issue is not really a persist issue, not at all.) But I don't mind attempting to helping you figure it out. Did you ever flash a persist image that someone posted somewhere?
Be sure that you are using a fastboot images rom specifically for your device, is it a Global or Chinese device?
Again please provide details.
This way we dont waste time taking non relative steps.
So you tried the flashall.bat steps? What should happen is the ADB windows will open and each partition image is flashed one by one, when it's complete, you will see the Miui setup page and then you sign into Wifi then you miCloud account.
Edit
@Theevanz
I found a flashable file to restore the persist for the Oreo version of the Chinese Mi8. If you a have global device it will not work. However, I used a program called beyond compare to figure out how this file works. if all goes well, I may have a flashable fix for you tomorrow. I plan to simply make a flashable file that will flash the Global Version of the persist image to the persist partition. You will still need to be fully wiped and formatted, so you do not get a write error message. Don't worry we will get this. I have had the exact same issue happens to me and I was able to get my phone working again.
Thanks for the guide tsongming.
You have absolutely helped all of us more than once. I've been using custom roms for more than 7 years and I didn't even know what "persist" partition was.
I'm currently using the TWRP made by mauronofrio because I haven't had any issue yet. However, as you explained the only TWRP that can backup the persist partition is LR Team one. Would you suggest me to flash this version and make a backup of the partition and then swap again to my original version of TWRP?
I know the questions is quite WTF but atm asking is free.
Thanks for your help.
tsongming said:
Okay, I am getting ready to go to bed so this post will be brief. Persist issues are usually caused by encryption, or somehow the persist image gets wiped. I used a spellchecker and I think it added the space. Doh!
Try using adb command : fastboot flash persist persist .img
1. You must first put a copy of the persist image from the Images folder into the ADB folder, or open the ADB window from within the extracted folder.
2. If this works then use flashall.bat method to restore phone. if it fails with the 11.6 Rom then try an older one.
If this fails:
I assume that you do not have a backup that you can restore? if so by all means do that first. Because it will absolutely work. Next remember that you must wipe the phone completely including formatting userdata/storage. and use the TWRP that I listed above.
Please explain exactly how you arrived at this issue, and don't leave out details. How did you arrive at this issue? If you were editing the IMEI then tell me , that requires restoring a QCN file and using QPST. (That issue is not really a persist issue, not at all.) But I don't mind attempting to helping you figure it out. Did you ever flash a persist image that someone posted somewhere?
Be sure that you are using a fastboot images rom specifically for your device, is it a Global or Chinese device?
Again please provide details.
This way we dont waste time taking non relative steps.
So you tried the flashall.bat steps? What should happen is the ADB windows will open and each partition image is flashed one by one, when it's complete, you will see the Miui setup page and then you sign into Wifi then you miCloud account.
Edit
@Theevanz
I found a flashable file to restore the persist for the Oreo version of the Chinese Mi8. If you a have global device it will not work. However, I used a program called beyond compare to figure out how this file works. if all goes well, I may have a flashable fix for you tomorrow. I plan to simply make a flashable file that will flash the Global Version of the persist image to the persist partition. You will still need to be fully wiped and formatted, so you do not get a write error message. Don't worry we will get this. I have had the exact same issue happens to me and I was able to get my phone working again.
Click to expand...
Click to collapse
Hi, so i will say the whole issue i had. I will miss out some details along the way as it happened very long ago
So i started installing custom rom for my Dipper and everything was fine until one day that i try to download a app on the playstore that promises to enable camera2API to improve my phone camera quailty . after i gave it root access via magisk and started the process, my phone just went down into a bootloop.
So i reinstalled my rom and my camera was not working , after some digging finally realise my persist was missing.
i tried to use MI FLASH TOOL to try to install back my persist but to no avail.
then i flashed persist from the fastboot rom (Im not sure if it was global or china but im having a global phone) and cleaned (Format data , advance wipe everything ) and reflashed my rom(Pixel experience rom - it was actually quite stable as no one was complaining the same issue) .
then after awhile , my phone start going into a bad state where it would go into a boot loop every 2 weeks or smth like that and then it would say "mount /data/..../..../.../..... (structure needs cleaning)" or sometimes persist. and i will do a clean install (Formatt , advance wipe everything, reboot back into recovery ,flash my rom ) over and over again ever few weeks . until like a few days ago , my phone died at 0 percent and when i plugged in the power bank it said 7 percent (Something wrong with the battery?? ) and i immediately powered it on and that happened .
Now the symptoms of my phone is that it cannot connect to the wifi , neither detect the sim card , no imei , apps will sometimes hang for awhile before responding , while starting it up , it will enter a black screen for ard 1 min before it shows the lock screen .
Thats about all i can think of ....
Update :
I tried the method u suggested on the fastboot flash persist persist.img . but it says partition is write protected , ima go sleep . thanks for the effort . ill send thanks when my 12 per day wears off
Boiisxu said:
Thanks for the guide tsongming.
You have absolutely helped all of us more than once. I've been using custom roms for more than 7 years and I didn't even know what "persist" partition was.
I'm currently using the TWRP made by mauronofrio because I haven't had any issue yet. However, as you explained the only TWRP that can backup the persist partition is LR Team one. Would you suggest me to flash this version and make a backup of the partition and then swap again to my original version of TWRP?
I know the questions is quite WTF but atm asking is free.
Thanks for your help.
Click to expand...
Click to collapse
Absolutely because although that version that you use works, it does not backup the persist partition and DTBO partition individually and it doesn't restore it. ( The problem with restoring persist is that it has to be your persist no else's will work) I would strongly recommend using the LR Team Version simply to make the backup and then store it to your Desktop, then if you ever need it. You will need to use the LR Team version to restore.
You need to backup everything except for:
Data
System
System Image
The partitions I backup are:
Cache
Boot
DTBO
Recovery
Vendor
Vendor Image
Firmware
Persist
Bluetooth
DSP
Cust
Splash
Logo
VBMata
DEVinfo
fsg
EFS
MSADP
APDP
XBL
CMNLIB
keymaster
hyp
TZ
DEVCFG
@ Theevanz
What you describe sounds like a combination of encryption and the persist, it also sounds like you did not flash DM verity on a Rom that called for it. The only version of DM verity that I know to work is the August version, later versions do not work. ( I don't know why)
Yes, when you come back. and click thanks . Remember that the phone must be fully wiped and Formatted.
IT Must be absolutely Formatted, ( type yes, reboot to recovery) wiping alone is not good enough..
The description that you gave, sounds alot like what i was dealing with. but in my case the phone would not even boot after a couple of days.
I have helped quite a few people with this exact issue and flashall.bat alone should work.
Flashall. Bat Steps
Boot to Fastboot
Download fastboot dipper images rom, and use flashall.bat method to restore the phone.
Download dipper_global_images_rom / It has to be a fastboot rom and not a Recovery rom
Unpack the rom twice on your desktop
You will be left with a folder and inside you will see batch files and a image folder.
Doubleclick Flashall.bat ( be careful on what you click, you want flashall.bat only) with the phone attached an in Recovery mode, fastboot or EDL
Flashall.bat is a batch script that will wipe your phone and restore all images, and then boot to system.
You should then Setup rom
Afterwards install TWRP and root then create a full Twrp backup and save to your PC.
tsongming said:
Absolutely because although that version that you use works, it does not backup the persist partition and DTBO partition individually and it doesn't restore it. ( The problem with restoring persist is that it has to be your persist no else's will work) I would strongly recommend using the LR Team Version simply to make the backup and then store it to your Desktop, then if you ever need it. You will need to use the LR Team version to restore.
You need to backup everything except for:
Data
System
System Image
The partitions I backup are:
Cache
Boot
DTBO
Recovery
Vendor
Vendor Image
Firmware
Persist
Bluetooth
DSP
Cust
Splash
Logo
VBMata
DEVinfo
fsg
EFS
MSADP
APDP
XBL
CMNLIB
keymaster
hyp
TZ
DEVCFG
Click to expand...
Click to collapse
Thanks for your reply.
I've downloaded the twrp for android 9 (currently using los16) but it seems that it's a .zip. Can I flash it via TWRP or shall I flash it using fastboot mode?
Moreover, I don't know what actually are those all partitions you backup for.
Boiisxu said:
Thanks for your reply.
I've downloaded the twrp for android 9 (currently using los16) but it seems that it's a .zip. Can I flash it via TWRP or shall I flash it using fastboot mode?
Moreover, I don't know what actually are those all partitions you backup for.
Click to expand...
Click to collapse
Yes its a zip, it will write to the Recovery. if you are nervous you can unpack it and you will see the image, that you can flash instead.
The partitions are selected by default, double check to make sure. These partitions are the one that you need if your partitions are damaged. personally, I have found persist and DBO to be exceptionally useful. However, be sure to back them all up, I have seen issues on other phones where these partition backups are lifesavers.
tsongming said:
Absolutely because although that version that you use works, it does not backup the persist partition and DTBO partition individually and it doesn't restore it. ( The problem with restoring persist is that it has to be your persist no else's will work) I would strongly recommend using the LR Team Version simply to make the backup and then store it to your Desktop, then if you ever need it. You will need to use the LR Team version to restore.
You need to backup everything except for:
Data
System
System Image
The partitions I backup are:
Cache
Boot
DTBO
Recovery
Vendor
Vendor Image
Firmware
Persist
Bluetooth
DSP
Cust
Splash
Logo
VBMata
DEVinfo
fsg
EFS
MSADP
APDP
XBL
CMNLIB
keymaster
hyp
TZ
DEVCFG
Click to expand...
Click to collapse
Sorry, may be i don't understand english so good. I tryed to instal persist (taking .img file from a fastboot ROM Global) partition with your twrp, the process is completed but wifi, signal still not work.
I don't have my backup of that partition because mine doesn't exist any more.
After flashing it i still can't see any file in /persist folder (via twrp) is it normal? Or just cant see folder contenent via twrp?
tsongming said:
@ Theevanz
What you describe sounds like a combination of encryption and the persist, it also sounds like you did not flash DM verity on a Rom that called for it. The only version of DM verity that I know to work is the August version, later versions do not work. ( I don't know why)
Yes, when you come back. and click thanks . Remember that the phone must be fully wiped and Formatted.
IT Must be absolutely Formatted, ( type yes, reboot to recovery) wiping alone is not good enough..
The description that you gave, sounds alot like what i was dealing with. but in my case the phone would not even boot after a couple of days.
I have helped quite a few people with this exact issue and flashall.bat alone should work.
Flashall. Bat Steps
Boot to Fastboot
Download fastboot dipper images rom, and use flashall.bat method to restore the phone.
Download dipper_global_images_rom / It has to be a fastboot rom and not a Recovery rom
Unpack the rom twice on your desktop
You will be left with a folder and inside you will see batch files and a image folder.
Doubleclick Flashall.bat ( be careful on what you click, you want flashall.bat only) with the phone attached an in Recovery mode, fastboot or EDL
Flashall.bat is a batch script that will wipe your phone and restore all images, and then boot to system.
You should then Setup rom
Afterwards install TWRP and root then create a full Twrp backup and save to your PC.
Click to expand...
Click to collapse
I tried again but to no avail. Do i need to do anything before the fastboot?
So heres what i did :
Did not wipe anything or format device (Device was already in MIUI 11)
Power off
Went to fastboot
Got a global fastboot Rom (dipper_global_images_V11.0.6.0.PEAMIXM_20191022.0000.00_9.0_global)
extracted 2 times with 7zip
Put the adb/fastboot files into the extracted rom
Clicked on flash_all.bat
Device rebooted but the issue was no solved
Heres what i realise :
i opened the flash_all file and tried to find the sentence to flash persist but i cant find anything tat says flashing persist . heres my flash_all file from the extracted folder. Should i add a line that says to flash persist?
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *dipper" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *dipper" || exit /B 1
::set CURRENT_ANTI_VER=1
::for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
::if [%version%] EQU [] set version=0
::if %version% GTR %CURRENT_ANTI_VER% (
:: echo current device antirollback version is greater than this pakcage
:: exit /B 1
:
fastboot %* erase boot || @ECHO "Erase boot error" && exit /B 1
fastboot %* flash crclist %~dp0images\crclist.txt || @ECHO "Flash crclist error" && exit /B 1
fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @ECHO "Flash sparsecrclist error" && exit /B 1
fastboot %* flash xbl_ab %~dp0images\xbl.img || @ECHO "Flash xbl_ab error" && exit /B 1
fastboot %* flash xbl_config_ab %~dp0images\xbl_config.img || @ECHO "Flash xbl_config_ab error" && exit /B 1
fastboot %* flash abl_ab %~dp0images\abl.img || @ECHO "Flash abl_ab error" && exit /B 1
fastboot %* flash tz_ab %~dp0images\tz.img || @ECHO "Flash tz_ab error" && exit /B 1
fastboot %* flash hyp_ab %~dp0images\hyp.img || @ECHO "Flash hyp_ab error" && exit /B 1
fastboot %* flash devcfg_ab %~dp0images\devcfg.img || @ECHO "Flash devcfg_ab error" && exit /B 1
fastboot %* flash storsec_ab %~dp0images\storsec.img || @ECHO "Flash storsec_ab error" && exit /B 1
fastboot %* flash bluetooth %~dp0images\bluetooth.img || @ECHO "Flash bluetooth error" && exit /B 1
fastboot %* flash cmnlib_ab %~dp0images\cmnlib.img || @ECHO "Flash cmnlib_ab error" && exit /B 1
fastboot %* flash cmnlib64_ab %~dp0images\cmnlib64.img || @ECHO "Flash cmnlib64_ab error" && exit /B 1
fastboot %* flash modem %~dp0images\modem.img || @ECHO "Flash modem error" && exit /B 1
fastboot %* flash dsp %~dp0images\dsp.img || @ECHO "Flash dsp error" && exit /B 1
fastboot %* flash keymaster_ab %~dp0images\keymaster.img || @ECHO "Flash keymaster_ab error" && exit /B 1
fastboot %* flash logo %~dp0images\logo.img || @ECHO "Flash logo_ab error" && exit /B 1
fastboot %* flash misc %~dp0images\misc.img || @ECHO "Flash misc error" && exit /B 1
fastboot %* flash aop_ab %~dp0images\aop.img || @ECHO "Flash aop_ab error" && exit /B 1
fastboot %* flash qupfw_ab %~dp0images\qupfw.img || @ECHO "Flash qupfw_ab error" && exit /B 1
fastboot %* flash ImageFv %~dp0images\imagefv.elf || @ECHO "Flash imagefv error" && exit /B 1
fastboot %* flash vendor %~dp0images\vendor.img || @ECHO "Flash vendor_ab error" && exit /B 1
fastboot %* flash system %~dp0images\system.img || @ECHO "Flash system_ab error" && exit /B 1
fastboot %* flash userdata %~dp0images\userdata.img || @ECHO "Flash userdata error" && exit /B 1
fastboot %* flash recovery %~dp0images\recovery.img || @ECHO "Flash recovery error" && exit /B 1
fastboot %* flash cache %~dp0images\cache.img || @ECHO "Flash cache error" && exit /B 1
fastboot %* erase sec || @ECHO "Erase sec error" && exit /B 1
fastboot %* flash cust %~dp0images\cust.img || @ECHO "Flash cust error" && exit /B 1
fastboot %* flash boot %~dp0images\boot.img || @ECHO "Flash boot error" && exit /B 1
fastboot %* reboot || @ECHO "Reboot error" && exit /B 1
tsongming said:
Yes its a zip, it will write to the Recovery. if you are nervous you can unpack it and you will see the image, that you can flash instead.
The partitions are selected by default, double check to make sure. These partitions are the one that you need if your partitions are damaged. personally, I have found persist and DBO to be exceptionally useful. However, be sure to back them all up, I have seen issues on other phones where these partition backups are lifesavers.
Click to expand...
Click to collapse
So the other file that comes in the .zip is not important?
Boiisxu said:
So the other file that comes in the .zip is not important?
Click to expand...
Click to collapse
No, You just flash the zip, there is a code that tells it to flash to recovery.
I was just letting you know that the image was inside the unpacked zip, and it can be flashed traditionally. Personally, I always flash the zip.
Leoleo96 said:
Sorry, may be i don't understand english so good. I tryed to instal persist (taking .img file from a fastboot ROM Global) partition with your twrp, the process is completed but wifi, signal still not work.
I don't have my backup of that partition because mine doesn't exist any more.
After flashing it i still can't see any file in /persist folder (via twrp) is it normal? Or just cant see folder contenent via twrp?
Click to expand...
Click to collapse
Okay , if your formatted and typed yes ( this is the most important step)
Then you double clicked flash all.bat, you should have seen ADB restore every partition and then from there, install TWRP Recovery, and boot to TWRP. After booting into twrp you can use dd command from adb shell to access persist partition.
@Leoleo96
Edit
Your case is more difficult, I just added Option 5 , try it. This should work.
Theevanz said:
I tried again but to no avail. Do i need to do anything before the fastboot?
So heres what i did :
Did not wipe anything or format device (Device was already in MIUI 11)
Power off
Went to fastboot
Got a global fastboot Rom (dipper_global_images_V11.0.6.0.PEAMIXM_20191022.0000.00_9.0_global)
extracted 2 times with 7zip
Put the adb/fastboot files into the extracted rom
Clicked on flash_all.bat
Device rebooted but the issue was no solved
Heres what i realise :
i opened the flash_all file and tried to find the sentence to flash persist but i cant find anything tat says flashing persist . heres my flash_all file from the extracted folder. Should i add a line that says to flash persist?
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *dipper" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *dipper" || exit /B 1
::set CURRENT_ANTI_VER=1
::for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
::if [%version%] EQU [] set version=0
::if %version% GTR %CURRENT_ANTI_VER% (
:: echo current device antirollback version is greater than this pakcage
:: exit /B 1
:
fastboot %* erase boot || @ECHO "Erase boot error" && exit /B 1
fastboot %* flash crclist %~dp0images\crclist.txt || @ECHO "Flash crclist error" && exit /B 1
fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @ECHO "Flash sparsecrclist error" && exit /B 1
fastboot %* flash xbl_ab %~dp0images\xbl.img || @ECHO "Flash xbl_ab error" && exit /B 1
fastboot %* flash xbl_config_ab %~dp0images\xbl_config.img || @ECHO "Flash xbl_config_ab error" && exit /B 1
fastboot %* flash abl_ab %~dp0images\abl.img || @ECHO "Flash abl_ab error" && exit /B 1
fastboot %* flash tz_ab %~dp0images\tz.img || @ECHO "Flash tz_ab error" && exit /B 1
fastboot %* flash hyp_ab %~dp0images\hyp.img || @ECHO "Flash hyp_ab error" && exit /B 1
fastboot %* flash devcfg_ab %~dp0images\devcfg.img || @ECHO "Flash devcfg_ab error" && exit /B 1
fastboot %* flash storsec_ab %~dp0images\storsec.img || @ECHO "Flash storsec_ab error" && exit /B 1
fastboot %* flash bluetooth %~dp0images\bluetooth.img || @ECHO "Flash bluetooth error" && exit /B 1
fastboot %* flash cmnlib_ab %~dp0images\cmnlib.img || @ECHO "Flash cmnlib_ab error" && exit /B 1
fastboot %* flash cmnlib64_ab %~dp0images\cmnlib64.img || @ECHO "Flash cmnlib64_ab error" && exit /B 1
fastboot %* flash modem %~dp0images\modem.img || @ECHO "Flash modem error" && exit /B 1
fastboot %* flash dsp %~dp0images\dsp.img || @ECHO "Flash dsp error" && exit /B 1
fastboot %* flash keymaster_ab %~dp0images\keymaster.img || @ECHO "Flash keymaster_ab error" && exit /B 1
fastboot %* flash logo %~dp0images\logo.img || @ECHO "Flash logo_ab error" && exit /B 1
fastboot %* flash misc %~dp0images\misc.img || @ECHO "Flash misc error" && exit /B 1
fastboot %* flash aop_ab %~dp0images\aop.img || @ECHO "Flash aop_ab error" && exit /B 1
fastboot %* flash qupfw_ab %~dp0images\qupfw.img || @ECHO "Flash qupfw_ab error" && exit /B 1
fastboot %* flash ImageFv %~dp0images\imagefv.elf || @ECHO "Flash imagefv error" && exit /B 1
fastboot %* flash vendor %~dp0images\vendor.img || @ECHO "Flash vendor_ab error" && exit /B 1
fastboot %* flash system %~dp0images\system.img || @ECHO "Flash system_ab error" && exit /B 1
fastboot %* flash userdata %~dp0images\userdata.img || @ECHO "Flash userdata error" && exit /B 1
fastboot %* flash recovery %~dp0images\recovery.img || @ECHO "Flash recovery error" && exit /B 1
fastboot %* flash cache %~dp0images\cache.img || @ECHO "Flash cache error" && exit /B 1
fastboot %* erase sec || @ECHO "Erase sec error" && exit /B 1
fastboot %* flash cust %~dp0images\cust.img || @ECHO "Flash cust error" && exit /B 1
fastboot %* flash boot %~dp0images\boot.img || @ECHO "Flash boot error" && exit /B 1
fastboot %* reboot || @ECHO "Reboot error" && exit /B 1
Click to expand...
Click to collapse
The persist image is inside the folder, you take it out, and try the DD command. I just added Option 5 , try it.
next regarding your error log, You clicked flashall. bat? Remember that the phone must be in fastboot mode and connected to the PC. if you have usb3 ports you will need to use a hub, that converts down to usb 2. You can buy an extender hub practically anywhere for $5
tsongming said:
Okay , if your formatted and typed yes ( this is the most important step)
Then you double clicked flash all.bat, you should have seen ADB restore every partition and then from there, install TWRP Recovery, and boot to TWRP. After booting into twrp you can use dd command from adb shell to access persist partition.
@Leoleo96
Edit
Your case is more difficult, I just added Option 5 , try it. This should work.
Click to expand...
Click to collapse
When type the first code line (option 5) it says
'Invalid sparse file format at header magic
Failed to read sparse file'
Leoleo96 said:
When type the first code line (option 5) it says
'Invalid sparse file format at header magic
Failed to read sparse file'
Click to expand...
Click to collapse
Read the instruction on option 5
You place the image in the user storage /sd card, and use TWRP terminal, it works for countless people on all Xiaomi phones.
@Leoleo96
Try editing the file as indicated here: http://4pda.ru/forum/index.php?s=&showtopic=906971&view=findpost&p=77405784
tsongming said:
The persist image is inside the folder, you take it out, and try the DD command. I just added Option 5 , try it.
next regarding your error log, You clicked flashall. bat? Remember that the phone must be in fastboot mode and connected to the PC. if you have usb3 ports you will need to use a hub, that converts down to usb 2. You can buy an extender hub practically anywhere for $5
Click to expand...
Click to collapse
Option 5 does not work with the error of 'Invalid sparse file format at header magic Failed to read sparse file' (Its in the correct file , /sdcard)
should i try the persist on older version of global miui roms??
i also Tried editing the file as indicated here: http://4pda.ru/forum/index.php?s=&sh...ost&p=77405784 , I ran the file with the added info stated in the forum . when i ran the file through a USB 2.0 , the command prompt stops at the persist command. (I have attached the files that i edited. the batch file has been converted to a txt file cause XDA dont support)
Do you need any other info? Thanks so much !!
tsongming said:
Absolutely because although that version that you use works, it does not backup the persist partition and DTBO partition individually and it doesn't restore it. ( The problem with restoring persist is that it has to be your persist no else's will work) I would strongly recommend using the LR Team Version simply to make the backup and then store it to your Desktop, then if you ever need it. You will need to use the LR Team version to restore.
Click to expand...
Click to collapse
If backup is taken before the persist problem with this TWRP, only restoring the backup will solve the problem when problem occurs? Or have to wipe/format phone again? And you are using this TWRP for quite a long time. Have you faced persist/any problem till now?
Thanks

Bootloop at fastboot

FIXED I Just Extracted again the Fastboot firmware lmao
I installed Adaway app then it prompt to reboot then boom bootloop at fastboot then i tried to Mi Flash but error comes like
Errors:
error 1:
"2f19b358]:$for /F "tokens=2 delims=: " %i in ('fastboot -s 2f19b358 getvar anti 2>&1 | findstr /r /c:"anti:"') do (set version=%i ) "
error 2:
Flash vendor error
error 3:
flash crclist error
i already change usb slots
it works on the first time i bootloop using the same fastboot firmware.
i dont know what to do please help :crying:
you are using wrong firmware. flash latest compatible firmware of your device.

How To Guide [Stock ROM] [MIUI] How to flash V12.0.3.0.RKFEUXM Stock ROM (Sweet)

How to get back on Stock ROM V12.0.3.0.RKFEUXM​
1. First of all, you need to download the Firmware,Flash Tool & Minimal ADB & Fastboot (Everything u need is in the .rar File)
2. After the Download is finished, unpack the Zip Folder
3. Put the Firmware Folder directly in the C:\ Folder to avoid the "Anti Rollback Check Error"
4. Install Minimal ADB & Fastboot & the Drivers
5. Put your phone into fastboot mode and plug it into your PC
6. Open Mi Flash Tool (And Install the Drivers)
7. Click "select" then navigate to your C:\ Drive and select the Firmware Folder
8. Choose either you want to clean and lock the bootloader or just clean and keep the bootloader.
9. Click flash and wait until the flashing is done, after the flashing process a "Error" Message shows up but don't worry
10. Now you're on the Stock Rom Version "V12.0.3.0" but after the Setup, a V12.5.4.0 will pop up​
Download​- Mega (3,79GB)​
Hello,
Im trying to use your guide but I keep getting the antirollback error. I''ve put all the folders innto C: and it keeps coming up. Is it something on my end im not doing correctly? Should all the files be in one specific folder re MIUI Rollback or does that not matter?
Thank you
p0werbag said:
Hello,
Im trying to use your guide but I keep getting the antirollback error. I''ve put all the folders innto C: and it keeps coming up. Is it something on my end im not doing correctly? Should all the files be in one specific folder re MIUI Rollback or does that not matter?
Thank you
Click to expand...
Click to collapse
Whats your problem? Maybe someone could help. Why dont you want to install the latest MIUI provided by Xiaomi? If you want to use the latest MIUI rom you could use https://www.xiaomitool.com/V2/ this tool.
Always helped me without problems. Or do you need a specific solution?
p0werbag said:
Hello,
Im trying to use your guide but I keep getting the antirollback error. I''ve put all the folders innto C: and it keeps coming up. Is it something on my end im not doing correctly? Should all the files be in one specific folder re MIUI Rollback or does that not matter?
Thank you
Click to expand...
Click to collapse
I know I'm a little late for the party, but here's for future refference;
you can right-click the flash_all.bat file and remove the following lines:
Code:
if exist %~dp0images\anti_version.txt (for /f "delims==" %%a in (%~dp0images\anti_version.txt) do (set CURRENT_ANTI_VER=%%a))
if [%CURRENT_ANTI_VER%] EQU [] set CURRENT_ANTI_VER=0
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"
echo %anticheck% | findstr /r /c:"pass" || @echo "Antirollback check error" && exit /B 1
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *agate" /c:"^product: *amber"|| @echo "Missmatching image and device" && exit /B 1
@echo "Now Check Finished ......"
save file and flash!
I downloaded the fastboot ROM here https://xiaomirom.com/en/download/redmi-note-10-pro-sweet-stable-V13.0.13.0.SKFEUXM/
and the Miflash here https://xiaomirom.com/en/download-xiaomi-flash-tool-miflash/
Then edited the "flash_all_lock" bat file like above. I put the ROM folder in "C" drive to avoid getting the "can't find folder" error I was getting.
stonebear said:
I downloaded the fastboot ROM here https://xiaomirom.com/en/download/redmi-note-10-pro-sweet-stable-V13.0.13.0.SKFEUXM/
and the Miflash here https://xiaomirom.com/en/download-xiaomi-flash-tool-miflash/
Then edited the "flash_all_lock" bat file like above. I put the ROM folder in "C" drive to avoid getting the "can't find folder" error I was getting.
Click to expand...
Click to collapse
and did it work? also, the flash_all_lock also locks the device again
RadixMalum said:
and did it work? also, the flash_all_lock also locks the device again
Click to expand...
Click to collapse
Yes, it worked. I wanted the bootloader locked again.
stonebear said:
Yes, it worked. I wanted the bootloader locked again.
Click to expand...
Click to collapse
ah, perfect!

Categories

Resources