Hi, what error message do you get, when trying to run the batch script? Did you try via command line (cmd) or via powershell (Win10)?
The things you tried to flash without succeeding seem to be not necessary. Please find here all fastboot commands used by "flash_all_except_storage":
Code:fastboot oem unlock fastboot flash modem_a /images/modem.img fastboot flash modem_b /images/modem.img fastboot flash sbl1 /images/sbl1.img fastboot flash sbl1bak /images/sbl1.img fastboot flash rpm /images/rpm.img fastboot flash rpmbak /images/rpm.img fastboot flash tz /images/tz.img fastboot flash tzbak /images/tz.img fastboot flash devcfg /images/devcfg.img fastboot flash devcfgbak /images/devcfg.img fastboot flash dsp /images/adspso.bin fastboot flash sec /images/sec.dat fastboot flash splash /images/splash.img fastboot flash aboot /images/emmc_appsboot.mbn fastboot flash abootbak /images/emmc_appsboot.mbn fastboot flash boot_a /images/boot.img fastboot flash boot_b /images/boot.img fastboot flash system_a /images/system.img fastboot flash system_b /images/system.img fastboot flash lksecapp /images/lksecapp.img fastboot flash lksecappbak /images/lksecapp.img fastboot flash cmnlib /images/cmnlib.img fastboot flash cmnlibbak /images/cmnlib.img fastboot flash cmnlib64 /images/cmnlib64.img fastboot flash cmnlib64bak /images/cmnlib64.img fastboot flash keymaster /images/keymaster.img fastboot flash keymasterbak /images/keymaster.img fastboot reboot bootloader fastboot set_active a fastboot oem lock fastboot reboot
Fastboot images are for Miflash tool? or wich version work with it
I restored my phone to stock by booting phone in edl mode and restoring it with xiaomiflashtoolI used the latest version V10.0.24.0.PDHMIXM and I got bootloop. How can I avoid this?
fastboot oem edl
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *tissot" || @echo "error : Missmatching image and device" & exit /B 1
fastboot %* erase boot_a || @echo "error : Erasing boot failed, maybe the device is locked" & exit /B 1
fastboot %* flash crclist %~dp0\images\crclist.txt || @echo "Flash crclist error" && exit /B 1
fastboot %* flash sparsecrclist %~dp0\images\sparsecrclist.txt || @echo "Flash sparsecrclist error" && exit /B 1
fastboot %* flash modem_a %~dp0images\modem.img || @echo "Flash modem_a error" && exit /B 1
fastboot %* flash modem_b %~dp0images\modem.img || @echo "Flash modem_b error" && exit /B 1
fastboot %* flash sbl1 %~dp0images\sbl1.img || @echo "Flash sbl1 error" && exit /B 1
fastboot %* flash sbl1bak %~dp0images\sbl1.img || @echo "Flash sbl1bak error" && exit /B 1
fastboot %* flash rpm %~dp0images\rpm.img || @echo "Flash rpm error" && exit /B 1
fastboot %* flash rpmbak %~dp0images\rpm.img || @echo "Flash rpmbak error" && exit /B 1
fastboot %* flash tz %~dp0images\tz.img || @echo "Flash tz error" && exit /B 1
fastboot %* flash tzbak %~dp0images\tz.img || @echo "Flash tzbak error" && exit /B 1
fastboot %* flash devcfg %~dp0images\devcfg.img || @echo "Flash devcfg error" && exit /B 1
fastboot %* flash devcfgbak %~dp0images\devcfg.img || @echo "Flash devcfgbak error" && exit /B 1
fastboot %* flash dsp %~dp0images\dsp.img || @echo "Flash dsp error" && exit /B 1
fastboot %* flash sec %~dp0images\sec.dat || @echo "Flash sec error" && exit /B 1
fastboot %* flash splash %~dp0images\splash.img || @echo "Flash splash error" && exit /B 1
fastboot %* flash misc %~dp0images\misc.img || @echo "Flash misc error" & exit /B 1
fastboot %* flash aboot %~dp0images\emmc_appsboot.mbn || @echo "Flash aboot error" && exit /B 1
fastboot %* flash abootbak %~dp0images\emmc_appsboot.mbn || @echo "Flash abootbak error" && exit /B 1
fastboot %* flash boot_a %~dp0images\boot.img || @echo "Flash boot_a error" && exit /B 1
fastboot %* flash boot_b %~dp0images\boot.img || @echo "Flash boot_b error" && exit /B 1
fastboot %* flash system_a %~dp0images\system.img || @echo "Flash system_a error" && exit /B 1
fastboot %* flash system_b %~dp0images\system_other.img || @echo "Flash system_a error" && exit /B 1
fastboot %* flash lksecapp %~dp0images\lksecapp.img || @echo "Flash lksecapp error" && exit /B 1
fastboot %* flash lksecappbak %~dp0images\lksecapp.img || @echo "Flash lksecappbak error" && exit /B 1
fastboot %* flash cmnlib %~dp0images\cmnlib.img || @echo "Flash cmnlib error" && exit /B 1
fastboot %* flash cmnlibbak %~dp0images\cmnlib.img || @echo "Flash cmnlibbak error" && exit /B 1
fastboot %* flash cmnlib64 %~dp0images\cmnlib64.img || @echo "Flash cmnlib64 error" && exit /B 1
fastboot %* flash cmnlib64bak %~dp0images\cmnlib64.img || @echo "Flash cmnlib64bak error" && exit /B 1
fastboot %* flash keymaster %~dp0images\keymaster.img || @echo "Flash keymaster error" && exit /B 1
fastboot %* flash keymasterbak %~dp0images\keymaster.img || @echo "Flash keymasterbak error" && exit /B 1
fastboot %* flash userdata %~dp0images\userdata.img || @echo "Flash userdata error" && exit /B 1
fastboot %* set_active a
@doshimeet62 have you fixed the issue with error in sec.dat file? I tried to flash the two latest stock images, but I get the same errorsec.dat file flash error
i am getting error in sec.dat file
i.e in this command
fastboot flash sec /images/sec.dat
help me resolve the same.
This is the error>>>>
C:\adb>fastboot flash sec images/sec.dat
target reported max download size of 534773760 bytes
sending 'sec' (0 KB)...
OKAY [ 0.031s]
writing 'sec'...
FAILED (remote: flash write failure)
finished. total time: 0.069s
---------- Post added at 11:35 AM ---------- Previous post was at 11:27 AM ----------
i am getting error in sec.dat file
i.e in this command
fastboot flash sec /images/sec.dat
help me resolve the same.
This is the error>>>>
C:\adb>fastboot flash sec images/sec.dat
target reported max download size of 534773760 bytes
sending 'sec' (0 KB)...
OKAY [ 0.031s]
writing 'sec'...
FAILED (remote: flash write failure)
finished. total time: 0.069s
Hi,@doshimeet62 have you fixed the issue with error in sec.dat file? I tried to flash the two latest stock images, but I get the same error
n.a.
[LIST=2]
[*] June 2019 Security patch
[/LIST]
3ded3e7b82097f27ddf176e0399fceba
[LIST=2]
[*] Max 2019 Security Patch
[/LIST]
2cee840c96cdb6e0a9b14fc3c3105ff7
[LIST=2]
[*] FM Radio Adaptive battery and brightness
[*] Simpler ways to navigate your phone
[*] Recommended apps and actions based on your context
[/LIST]
9ea450fe98fbf4883439a934847f9f5d
[LIST=2]
[*] Fortify your Android One phone with the November 2018 security update from Google, which improves security and fixes bugs.
[*] This update improves the stability of your device and optimizes its performance.
[/LIST]
47d6fd23c7ca5aa538258782aceb3bd2
[LIST=2]
[*] Fortify your Android One phone with the October 2018 security update from Google, which improves security and fixes bugs.
[*] This update improves the stability of your device and optimizes its performance.
[/LIST]
[*] [B]Version: V9.6.4.0.ODHMIFE (Android O, 8.1)[/B]
Size: 1559M
md5: [CODE]735823083fba68350ba27f418114f388
[LIST=2]
[*] Fortify your Android One phone with the July 2018 security update from Google, which improves security and fixes bugs.
[*] This update improves the stability of your device and optimizes its performance.
[/LIST]
1a04581058dc7f27ca18cf8fd74f9413
[LIST=2]
[*] Update June Security Patch
[/LIST]
b9e697ed56b49f3657fa13229241519a
[LIST=2]
[*] Update April Security Patch
[/LIST]
5773957dcda9a89495e1d0bfa84ab220
[LIST=2]
[*] Update Mar Security Patch
[*] Fix “couldn’t flash ROM in 9008 mode”
[*] Fix “[IN_User Feedback][Reboot][Mi A1]Random reboot while using the device on V9.5.4.0.ODHMIFA”
[/LIST]
5773957dcda9a89495e1d0bfa84ab220
[LIST=2]
[*] Update Feb Security Patch
[*] Fix “received call recognized as missed call”
[*] Fix rebooting issue
[*] Update E-label for India
[/LIST]
8ea503201bb0b594e02e5ed2bf6dea09
[LIST=2]
[*] Optimize audio parameters.
[*] Remove the “quick charge” on the lockscreen when charging.
[*] Integrate the performance optimization of MIUI.
[*] Fix “bluetooth power consumption issue”.
[*] Add Korean input method.
[*] Fix “the dialer icon is missing after the upgrade”.
[*] Fix “camera cannot connect sometimes”.
[*] Fix“couldn’t connect to network sometimes”.
[*] Update the Feedback APP.
[*] Fix “fingerprint unlocking speed is slow ”.
[/LIST]
c9a6ea979b58b9a2fa4dc9e81d70796e
d39fa89aafcaaaa2203324313c964706
[LIST=2]
[*] D2Acontinuous annoying sharp Sound problem in A1
[*] D2A is transferred to 112 when the local emergency number is called in the Czech Republic
[*] Transition version for Android Oreo
[/LIST]
b9e697ed56b49f3657fa13229241519a
[LIST=2]
[*] Update April Security Patch
[/LIST]
So using the script that doesn't wipe userdata, I can remove the "fastboot OEM lock" parts, and I can update my phone that has Magisk without losing any data?
Thanks @majamee for your contribution.
Very clean and organized list, just what I needed
Also, thanks for taking a time to help us, replying our questions![]()