This page covers the stock firmware for the Sony Xperia X (F5121, F5122) and Xperia X Compact (F5321). It has direct download links for the X Compact firmware, lists the official software versions Sony released, and shows how to flash the firmware to unbrick the phone, fix a bootloop, remove root or a custom ROM, or return it to stock.
Both phones launched in 2016 with Android 6.0.1 Marshmallow, were updated to Android 7.1.1 Nougat, and got their final major update, Android 8.0 Oreo, in early 2018.

Xperia X and X Compact at a glance
|
Xperia X |
Xperia X Compact |
| Models |
F5121, F5122 (Dual SIM) |
F5321 |
| Codename |
suzu |
kugo |
| Display |
5.0-inch, 1080 x 1920 |
4.6-inch, 720 x 1280 |
| Chipset |
Snapdragon 650 |
Snapdragon 650 |
| RAM / storage |
3GB / 32 or 64GB |
3GB / 32GB |
| Cameras |
23MP rear, 13MP front |
23MP rear, 5MP front |
| Final official Android |
8.0 Oreo |
8.0 Oreo |
Why flash stock firmware?
- Unbrick the phone or fix a bootloop
- Remove root, TWRP or a custom ROM
- Fix software bugs, lag or stutter
- Prepare the phone for a custom ROM, since LineageOS asks for the latest stock Oreo firmware first
- Return the phone to factory condition before selling it
Xperia X Compact (F5321) firmware download links
These are full firmware packages in FTF format, which you flash with Flashtool. Pick the one that matches your region or carrier. If you’re not sure, the Customized US build works on most unbranded F5321 phones. The files are hosted on Google Drive and Dropbox by third parties, not by Sony.
If a link stops working, try the other host, or download the firmware yourself with XperiFirm as shown further down. For the Xperia X (F5121, F5122), use XperiFirm.
- Install the Sony USB drivers and Flashtool on a Windows PC.
- Copy the downloaded .ftf file into the
firmwares folder inside your Flashtool folder (usually C:\Users\YourName\.flashTool\firmwares).
- Open Flashtool, click the lightning icon and choose Flashmode.
- Select the firmware. To keep your data, leave DATA unticked under Wipe. Tick it for a full clean install. Click Flash.
- When Flashtool asks, turn the phone off, hold Volume Down and connect the USB cable. The notification light turns green.
- Wait until the log says flashing is finished, then unplug the phone and turn it on. The first boot can take a few minutes.
Xperia X and X Compact software versions
| Software version |
Security patch |
Android |
| 34.4.A.2.118 (latest) |
September 2018 |
8.0 Oreo |
| 34.4.A.2.107 |
August 2018 |
8.0 Oreo |
| 34.4.A.2.97 |
July 2018 |
8.0 Oreo |
| 34.4.A.2.85 |
June 2018 |
8.0 Oreo |
| 34.4.A.2.70 |
May 2018 |
8.0 Oreo |
| 34.4.A.2.50 |
April 2018 |
8.0 Oreo |
| 34.4.A.2.19 |
Early 2018 |
8.0 Oreo |
| 34.4.A.0.364 |
First Oreo build (February 2018) |
8.0 Oreo |
| 34.3.A.0.252 |
December 2017 |
7.1.1 Nougat |
| 34.3.A.0.244 |
November 2017 |
7.1.1 Nougat |
| 34.3.A.0.238 |
October 2017 |
7.1.1 Nougat |
| 34.3.A.0.217 |
August 2017 |
7.1.1 Nougat |
| 34.3.A.0.206 |
July 2017 |
7.1.1 Nougat |
| 34.3.A.0.194 |
First Nougat build |
7.1.1 Nougat |
The X and X Compact shared the same software versions. 34.4.A.2.118 was the final release, so it’s the one to install in almost every case.
Another option: download firmware with XperiFirm
Sony doesn’t post firmware on its website. XperiFirm is a free community tool that downloads official firmware packages from Sony’s servers, and it’s the way to get firmware for the Xperia X or a carrier variant not listed above.
- Download XperiFirm from its official XDA Forums thread and run it on a Windows PC.
- Select Xperia X or Xperia X Compact from the list, then pick your exact model (F5121, F5122 or F5321).
- Choose your region or carrier variant (CDA) and click the latest firmware version on the right.
- Click Download. XperiFirm saves the firmware files into a folder on your PC.
Downloads for these older phones depend on Sony still hosting them. If XperiFirm can’t find your model’s firmware, check XDA Forums for archived copies.
How to flash XperiFirm downloads with Newflasher
Newflasher flashes the files XperiFirm downloads directly, without converting them. If you’d rather use Flashtool, our guide to create FTF files with XperiFirm and Flashtool shows how to convert them.
- Install the Sony USB drivers on your PC.
- Download Newflasher from its official XDA Forums thread and copy
newflasher.exe into the folder where XperiFirm saved the firmware.
- To keep your data, delete the
userdata files from the firmware folder before flashing. Leave them in for a full clean install.
- Turn the phone off. Hold Volume Down and connect the USB cable. The notification light turns green when the phone is in flash mode.
- Run
newflasher.exe and follow the prompts. Answer n to the GordonGate driver question if you already installed the Sony drivers.
- Wait for flashing to finish, then disconnect the phone and turn it on. The first boot can take a few minutes.
Flashing firmware can erase your data and, if interrupted, stop the phone from booting. Use firmware for your exact model only. GetDroidTips is not responsible for any damage to your device.
Frequently asked questions
What is the latest firmware for the Xperia X Compact?
34.4.A.2.118, based on Android 8.0 Oreo with the September 2018 security patch. Sony released no further major updates after that.
Can I flash firmware from a different region?
Yes, on an F5321 you can usually flash any region’s firmware. The main differences are carrier apps, boot logos and preset network settings.
Did the Xperia X or X Compact get Android 8.1 or Android 9?
No. Both stopped at Android 8.0 Oreo. For newer Android versions, look at custom ROMs like LineageOS 20 for the X Compact.
Will flashing stock firmware relock the bootloader or restore DRM keys?
No. Flashing firmware doesn’t relock the bootloader, and DRM keys erased by unlocking can only come back if you backed up the TA partition first. See our guide to relock the bootloader on Sony Xperia.
Can I flash Xperia X firmware on the X Compact?
No. Even though they share version numbers, each model has its own firmware. Always download firmware for your exact model.