The Sony G8341 is a Xperia XZs device.
Here's a general report on the process:
To remove the lock from a Sony G8341 device, you'll need to use a tool like Sony's official Flash Tool, also known as Xperia Flash Tool (XFT). An FTF file is required for the process. sony g8341 lock remove ftf