To download and use the FTF firmware to remove a lock on your Sony Xperia X Performance

: Once finished, disconnect and power on. The first boot may take 5–10 minutes. Xperia X Performance driver - Sony's Developer Portal

Flashing an FTF file essentially performs a factory reset, which erases all user data but removes screen locks (PIN, pattern, or password).

: You must have the Xperia X Performance Drivers installed on your PC for it to recognize the device in Flash Mode.

: For standard software issues or forgetting your PIN/pattern, Sony recommends using Xperia Companion for a secure "Software Repair".