Your bootloader will remain unlocked. If you need to lock it (e.g., for Google Pay or banking apps), you can later run:

Try flashing again. This tells the tool to use flash_all.bat instead of looking for flash_all_lock.bat . Method 3: Re-download or Re-extract the ROM mi flash error cannot find file flashalllockbat

If you want to look into other ways to flash your device, you can read about the official to see how to run deployment scripts manually without relying on the graphic tool interface. Your bootloader will remain unlocked

If you explicitly want to lock your bootloader but the file is missing, you can create a placeholder text script to bypass the automated system halt. Method 3: Re-download or Re-extract the ROM If

Visit an authorized firmware database like the Xiaomi Official Community or trusted mirror sites.

Note: Sometimes you have to extract the file twice (first the .tgz to a .tar , then the .tar to the final folder). 💡 Pro Tip

If you select the tool specifically searches for flash_all_lock.bat .