Flashing an .ftf file will erase all user data, which is necessary to remove the security lock.
Requires installing specific FlashTool drivers and putting the phone into "Flash Mode" (typically holding Volume Down while connecting USB). Data Safety sony g3311 lock remove ftf