[Sony Xperia XZ2 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 XZ2 (H8216), 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/H8216*/". There will be a file that needs to be modified by right clicking and editing it with notepad "fwinfo.xml". Change the line that has H8216 to the device model you're about to flash (702SO or SO-03K or SOV37), save and close. Make sure your device has the property file modified as well * "/Users/(Your-Username)/.flashtool/devices/H82XX/H82XX.properties", by appending each line that contains recognition and variant with " 702SO,SO-03K,SOV37 ". Within the same directory "devices/H82XX" copy the 52.fsc and rename it 52.1.fsc (there should be two now, a 52.fsc and 52.1.fsc). Final step, copy everything within the H82XX directory and make a new device directory within ".flashtool/devices/" of the model you are about to flash (702S0 or SO-03K or SOV37) and rename the H82xx.properties within that directory to the matching model of the directory (again, 702SO or SO-03K or SOV37). 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, modifying the H82XX.properties file, creating a 52.1.fsc, and creating an additional device directory (702SO, SOV37, SO-03K) with everything from the H82XX 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.