[Sony Xperia XZ2 Compact Guides, News, & Discussion] project_2501:
What this thread is for: bundles that assist in switching the device from a carrier version to a global version of Android with ease.

What this thread is not for: assistance in setting up the drivers and software necessary to flash a device.

Reading here you'll find the usual disclosure which frees the author and provider of this thread of any liability and informs users of any and all risks associated with improper setup and/or use/misuse of the flashing software and bundles provided. Responsibility is taken solely by the end user during the procedure and any point thereafter with the software running on their device.

Take your time and use what is provided here with caution.

After a bit of hesitation, a decision was made to post this thread knowing that there are users of a Tama device who are stuck on a restricted carrier variant (Au-KDDI, Docomo, and Softbank) out there.

Make sure Xperifirm plugin is functioning through Flashtool, run it and select the repositories for the XZ2 Compact (H8314), there will be a variety of markets for the device; choose whichever you want to flash it to. Once the download and unpack is finished, do not close Xperifirm; instead, navigate to the where the firmware was downloaded to "/Users/(Your-Username)/.flashtool/firmwares/Downloads/H8314*/".

Right click and edit with notepad: "fwinfo.xml". Change the line that has H8314 to the device model you're about to flash (SO-05K), save and close notepad.

Within the same directory "devices/H83XX" create the 52.1.fsc if it is not already there.

Final step, copy everything within the H83XX directory and make a new device directory within ".flashtool/devices/" of the model you are about to flash (SO-05K) and rename the H83xx.properties within that directory to the matching model of the directory (again, SO-05K). Once all the above is accomplished, close Xperifirm and Flashtool should prompt that a script was found for packing the firmware you just downloaded. Make sure you choose to wipe all the partitions selectable on the flashing menu and pay attention to any prompts throughout before flashing the device.

Changing the region of your device will not provide a free sim unlock from the carrier, make sure that has been performed before making the switch to global as the carrier software to unlock the network is not present on a global build. QUnlockTool also recommends not switching to global until modifications have been made. Only one hardware feature is lost from making the switch over; NFC functionality, and without consequence to how the hardware performs otherwise.

A moderate understanding of Androxyde's Flashtool and its architecture (directories) along with the proper drivers and plug-ins already installed will greatly benefit the user to gather and prepare the bundles necessary for region changing their device.

A bit of do-it-yourself is required: setting the option Devices,Device Sync,Auto Sync to off within Flashtool, downloading the firmware, editing the fwinfo.xml, and creating an additional device directory (SO-05K) with everything from the H83XX directory are all required for Flashtool to recognize the devices firmware for bundling and flashing it for a region change to be successful.

Download link for the version of Flashtool used to pack and flash the bundles.