Ask / Submit

[Announcement] Community Sony Xperia X Compact release

asked 2018-02-27 00:38:26 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-03-09 13:52:26 +0200

steph gravatar image

[notice] to work around the sensors issue I have release a different image with working gyro/light/proximity. The link has been amended, and the new image has the tag 'sg01'


I'm happy to announce the first community build of SailfishOS 2.1.3 built upon community infrastructure for the Sony Xperia X Compact (f5321/kugo).

Many, many thanks to the porting community, sailors, private testers, the Sony Open Devices team but most of all to Manizuca upon whose device adaptation work this is based.


  • Sony Xperia X Compact (f5321) upgraded to the latest Android 6 or 7 before unlocking the bootloader. This is a critical step. Attempting to flash without upgraded firmware may brick your device
  • Download and unzip the archive here, and follow the instructions therein. They are the same as per the Xperia X Community build. For specific instructions on installing under Windows, see this XDA post

What works:

  • everything that works in the community port of the Xperia X

What isn't working:

  • everything that doesn't work on the community port of the Xperia X
  • OTA updates. If you flash this image to your device you will need to manually upgrade via the command line, and currently even that may not work. Although feature complete, this is a work-in-progress.
edit retag flag offensive close delete



Thanks a lot @steph! It's much appreciated! My X Compact still lies unboxed, waiting to be liberated from Android. :)

luen ( 2018-02-27 00:48:52 +0200 )edit

upgrade it first!

steph ( 2018-02-27 01:02:36 +0200 )edit

Yep, will start right away!

luen ( 2018-02-27 01:06:36 +0200 )edit

@steph this is really great, that you make this "officially" available now. I'm still running your build from November. Will this version here fix the gps issue? Is it save to install this version over the current one ( I use?

naytsyrhc ( 2018-02-27 01:09:36 +0200 )edit

Sir, you are absolutely awesome, many thanks for your hard work

figgis-diggis ( 2018-02-27 09:57:46 +0200 )edit

6 Answers

Sort by » oldest newest most voted

answered 2018-02-28 10:12:40 +0200

steph gravatar image

updated 2018-02-28 10:17:21 +0200

Hi all,

I have updated the download link on the post to a new link with working sensors. Please all use that, I suggest you reflash completely as I do not know how many of the packages are broken for sensors. Sailfish can be flashed over itself without needed to restore stock android first. If you have already started to use your X Compact with this image you can back up settings either with the backup app in settings or from the shell with cp/rsync/tar etc.

In the mean time I am going to start work making sure that the same thing does not happen with the 2.1.4 build.

Apologies all for the inconvenience!

edit flag offensive delete publish link more



@steph Thank you very much for the port, the Compact would be the perfect successor for my Jolla1! I have a few questions about the port: Does the X Compact with sailfish have similar problems with partitioning as they are reported about the Xperia X ? (Big hidden partition for recovery, too small partition for the system which makes updates difficult). Can you estimate if and when OTA updates will be possible? If Jolla creates a graphical interface for installing SailfishX, can it be used to flash your image on the compact?

pvcn ( 2018-02-28 10:45:55 +0200 )edit

1) hadn't heard of any problems with the X (and have had an X since launch and have no issues with it) but I haven't made any other changes so I expect it behaves exactly as the X. If you want to alter partition sizes you can build yourself of course, this is the community build ;) 2) for OTA should hopefully be days/weeks (if all goes well) but probably weeks/a month or two 3) I don't know, I don't know how that will work.

steph ( 2018-02-28 11:49:46 +0200 )edit

@steph Thanks for your instant answers! My question about partitioning refers to this post: Can't confirm it myself since i still use jolla1. Hope i will be able to use your build soon, as an non-technie i will wait and hope for an easy way to install it with ota-updates . best regards and again thanks for bringing sailfish to a compact device!

pvcn ( 2018-02-28 21:26:46 +0200 )edit

answered 2018-02-27 12:27:28 +0200

Cavalier gravatar image

Thank you, Steph! My phone already has been upgraded to Android 8. Is it possible to install sailfish os on it? Or I have to downgrade to 7 version?

edit flag offensive delete publish link more


It is not known yet. I asked basically the same question for Xperia X, please see

Direc ( 2018-02-27 12:30:22 +0200 )edit

I don't know but I expect it should be ok to flash SFOS over Android 8. If in doubt, backup, backup again and ideally have a Windows machine with a copy of EMMA about.

steph ( 2018-02-27 12:34:56 +0200 )edit

I think you can pretty easily downgrade using the flashtool and xperifirm. And then run sailfish....

bertjefred ( 2018-02-27 13:05:17 +0200 )edit

At least one user (can't remember where I saw it) said that installing Sailfish X on top of Android 8 went just fine, and it runs well, too.

Direc ( 2018-03-03 11:53:34 +0200 )edit

answered 2018-02-28 09:39:41 +0200

Cavalier gravatar image

Steph, Gyro/accelerometer and proximity sensors do not work. Do you know how to repair them?

edit flag offensive delete publish link more



I will be looking at that today. They work in the local build so shouldn't be too long.

steph ( 2018-02-28 09:45:54 +0200 )edit

answered 2018-03-01 10:43:52 +0200

romu70 gravatar image

Thanks a lot Steph.

I've listed some tweaks here :

I've also tried the OTA update procedure described in the X Community Build thread. It works...almost. Everything seems ok during the update. But at reboot, the phone stays lock on the Sony screen.

The good news is it remains reachable through SSH, so maybe things are not so difficult to get OTA but I'm far from being an expert.

edit flag offensive delete publish link more

answered 2018-02-27 21:09:05 +0200

meinlieberjolli gravatar image

Already gotta unlocked device with Paranoid Android (twrp) on it. Android version is 7.1.2. Safe to switch to Sailfish OS?

edit flag offensive delete publish link more



Provided the bootloader had been upgraded to greater than 34.3 before you flashed twrp it should just work. I would flash stock android back to it first to be safe however.

steph ( 2018-02-28 09:11:58 +0200 )edit


Is there a way to backup my current system? I'd like to have my Android system as a save haven.. When I install Sailfish OS twrp gets lost?

meinlieberjolli ( 2018-02-28 10:02:35 +0200 )edit

You should install one of the backup apps to get things backed up before you attempt the upgrade. I suggest flashing back to stock (ideally using the official tools) as I do not know how twrp will behave with SFOS.

steph ( 2018-02-28 10:06:10 +0200 )edit

answered 2018-02-28 10:05:44 +0200

ming1 gravatar image

Hello, i cant Flash the Image. Can anybody help? I get this Message.

This is a Windows flashing script for Sony Xperia X Compact device.

Power on the device in fastboot mode, by doing the following: 1. Turn off your Xperia. 2. Connect one end of a USB cable to your PC. 3. While holding the volume up button pressed, connect the other end of the USB cable to your Xperia. 4. After this you should see the blue LED lit on Xperia, and it will be ready for flashing

Drücken Sie eine beliebige Taste . . . MD5SUM 'ed5a809dc0024d83cbab4fb9933d598d' match for file 'AdbWinApi.dll'. MD5SUM '0e24119daf1909e398fa1850b6112077' match for file 'AdbWinUsbApi.dll'. MD5SUM 'c980ea6caa9140ee3f30cdc0e98844c4' match for file 'fastboot.exe'. MD5SUM '15bb5806375af0b7f031cbcbea84cf12' match for file 'flash-on-windows.bat'.

Searching a device with vendor id '0x0fce'..

The device is unlocked for the flashing process. Continuing..

'34.3' is new enough to support vendor partition. Continuing.. "." kann syntaktisch an dieser Stelle nicht verarbeitet werden.

edit flag offensive delete publish link more



it appears that the hashes for the windows fastboot executable and library are out of date. I need to find more up-to-date versions for windows.

(also please download the working image here:

steph ( 2018-02-28 10:12:17 +0200 )edit


downloaded the Image from: Thats not the problem,maybe the Fastboot it is.

ming1 ( 2018-02-28 10:18:36 +0200 )edit

Hi ming1, yes the issue is with the fastboot.exe and DLL that are bundled with the zip file, and that they changed versions somewhere along the line. I need to do some research but you should be able to download both as per for the Xperia X and comment out the md5sum line in the batch file and you should be able to flash.

steph ( 2018-02-28 10:38:51 +0200 )edit

Thanks for the help. I will try it ;-)

ming1 ( 2018-02-28 10:45:55 +0200 )edit

Flashing Completed under Virtual Box (Ubuntu). with windows doest´n work. So i´m happy

ming1 ( 2018-02-28 15:58:58 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2018-02-27 00:38:26 +0200

Seen: 2,879 times

Last updated: Mar 09