If you want to avoid third-party FTF files, Sony officially recommends:
: If a Google account was active, you will be prompted for those credentials after the reset due to Factory Reset Protection (FRP) . If you don't know them, you may need a separate FRP bypass procedure Step-by-Step Guide to Flashing FTF Firmware 1. Download Required Tools and Files You will need the following on a Windows PC: