[Xiaomi Mi A1 Guides, News, & Discussion] Johnn78:
I have Poco F3, I downloaded stock rom from miui but when I go to edit the flash_all_except_storage.bat file then I can't find the "fastboot %* oem lock || @ECHO "lock error" & exit /B 1" to delete it. Why ? If I proceed in flashing will my boatloader be locked as result data losing ?

I can't upload it as attachment, for this reason I make copy paste the content of flash_all_except_storage.bat

fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *alioth" || echo Missmatching image and device

fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *alioth" || exit /B 1

::check anti_version

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 %* erase boot_ab || @ECHO "Erase boot_ab 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.elf || @ECHO "Flash xbl_ab error" && exit /B 1

fastboot %* flash xbl_config_ab %~dp0images\xbl_config.elf || @ECHO "Flash xbl_config_ab error" && exit /B 1

fastboot %* flash abl_ab %~dp0images\abl.elf || @ECHO "Flash abl_ab error" && exit /B 1

fastboot %* flash tz_ab %~dp0images\tz.mbn || @ECHO "Flash tz_ab error" && exit /B 1

fastboot %* flash hyp_ab %~dp0images\hyp.mbn || @ECHO "Flash hyp_ab error" && exit /B 1

fastboot %* flash devcfg_ab %~dp0images\devcfg.mbn || @ECHO "Flash devcfg_ab error" && exit /B 1

fastboot %* flash storsec %~dp0images\storsec.mbn || @ECHO "Flash storsec error" && exit /B 1

fastboot %* flash bluetooth_ab %~dp0images\BTFM.bin || @ECHO "Flash bluetooth_ab error" && exit /B 1

fastboot %* flash cmnlib_ab %~dp0images\cmnlib.mbn || @ECHO "Flash cmnlib_ab error" && exit /B 1

fastboot %* flash cmnlib64_ab %~dp0images\cmnlib64.mbn || @ECHO "Flash cmnlib64_ab error" && exit /B 1

fastboot %* flash modem_ab %~dp0images\NON-HLOS.bin || @ECHO "Flash modem_ab error" && exit /B 1

fastboot %* flash dsp_ab %~dp0images\dspso.bin || @ECHO "Flash dsp_ab error" && exit /B 1

fastboot %* flash keymaster_ab %~dp0images\km41.mbn || @ECHO "Flash keymaster_ab error" && exit /B 1

fastboot %* flash logo %~dp0images\logo.img || @ECHO "Flash logo error" && exit /B 1

fastboot %* flash featenabler_ab %~dp0images\featenabler.mbn || @ECHO "Flash featenabler_ab error" && exit /B 1

fastboot %* flash aop_ab %~dp0images\aop.mbn || @ECHO "Flash aop_ab error" && exit /B 1

fastboot %* flash qupfw_ab %~dp0images\qupv3fw.elf || @ECHO "Flash qupfw_ab error" && exit /B 1

fastboot %* flash uefisecapp_ab %~dp0images\uefi_sec.mbn || @ECHO "Flash uefisecapp_ab error" && exit /B 1

fastboot %* flash multiimgoem_ab %~dp0images\multi_image.mbn || @ECHO "Flash multiimgoem_ab error" && exit /B 1

fastboot %* flash super %~dp0images\super.img || @ECHO "Flash super error" && exit /B 1

fastboot %* flash misc %~dp0images\misc.img || @ECHO "Flash misc error" && exit /B 1

fastboot %* flash vbmeta_ab %~dp0images\vbmeta.img || @ECHO "Flash vbmeta_ab error" && exit /B 1

fastboot %* flash dtbo_ab %~dp0images\dtbo.img || @ECHO "Flash dtbo_ab error" && exit /B 1

fastboot %* flash vbmeta_system_ab %~dp0images\vbmeta_system.img || @ECHO "Flash vbmeta_system_ab error" && exit /B 1

fastboot %* flash cust %~dp0images\cust.img || @ECHO "Flash cust error" && exit /B 1

fastboot %* erase imagefv_ab || @ECHO "Erase imagefv_ab error" && exit /B 1

fastboot %* flash imagefv_ab %~dp0images\imagefv.elf || @ECHO "Flash imagefv_ab error" && exit /B 1

fastboot %* flash rescue %~dp0images\rescue.img || @ECHO "Flash rescue error" && exit 1

fastboot %* flash spunvm %~dp0images\spunvm.bin || @ECHO "Flash spunvm error" && exit /B 1

fastboot %* flash vendor_boot_ab %~dp0images\vendor_boot.img || @ECHO "Flash vendor_boot_ab error" && exit /B 1

fastboot %* flash logfs %~dp0images\logfs_ufs_8mb.bin || @ECHO "Flash logfs error" && exit /B 1

fastboot %* flash boot_ab %~dp0images\boot.img || @ECHO "Flash boot_ab error" && exit /B 1

fastboot %* set_active a || @ECHO "Set active error" && exit /B 1

fastboot %* reboot || @ECHO "Reboot error" && exit /B 1