For modern Xperia (2019+), use (command-line) or XperiFirm + Flashtool 0.9.34.0+ .
Ensure the FTF matches your device’s region and hardware variant (single SIM vs. dual SIM).
For Windows 10/11, you must disable driver signature enforcement temporarily: