Method 1: Use Xperia Companion (Official Recommended Method)
software offers a "Software Repair" feature. It performs a similar reset by reinstalling the device software, which also removes any pattern or PIN locks. sony g3311 lock remove ftf link
: Ensure you have installed the "Flashmode" and "Fastboot" drivers (found in the Flashtool/drivers Firmware (FTF) Method 1: Use Xperia Companion (Official Recommended Method)