[Xperia Z3 Compact Android Development] maikoool:
Announcing Sailfish for the Sony Xperia Z3 Compact!

This is not Android!

This should be thought of as a development experiment. It may be useful if you are a developer and want to write/port apps the the Sailfish operating system. It is not an end-user product, however, if you wish to experiment and try something different then feel free!

Please do not contact Jolla Care or Jolla Developer Care, as this is not the Jolla phone.

Special thanks to:

rss351 and locusf for the collaborative effort in porting SailfishOS to the Z3 compact

Everyone from the SailfishOS team/community, sledges and mal- in particular.

All Cyanogenmod devs, since SailfishOS uses drivers from Cyanogenmod to talk with the phone's hardware

Known issues:

Bluetooth isn't turned on, cause i've put no effort in for that so far

Camera doesn't work, cause it's not hooked up to interface.

No recovery inside hybris bootimage (you need to flash manually to return to cm/use recovery)

Sensors dont work (auto-adjust brightness, etcetera)

The Jolla account/store functionality is not enabled. This is being worked on by Jolla. In the meantime: use openrepo's warehouse (see bottom of this post)

What works:

Booting, basic usage of the OS itself (browsing, etc)

Texting, calling, data over mobile network (2g and 3g tested, 4g should work but is untested)

Wifi (both 2,4 and 5 GHz)

Power management seems to work fine (not tested much though)

Looking around and getting a feel for SailfishOS

Using your phone to develop and debug SailfishOS apps.

Installation guide/checklist:

Insert default warranty void message here. Your warranty is now void :P

Make a backup (just to be sure)

Depending on what you need from your phone, this may not be a rom suitable for daily driving with. But installation is non-destructive to your existing rom, so if you're curious, give SailfishOS a try ;)

I have not tested this on locked bootloaders, but since I needed to modify the kernel, I guess that you need an unlocked bootloader.

Note this is not an official Sailfish OS build, and the Xperia Z3c is not a Jolla phone, so please don't report bugs to Jolla. If you want to report a bug, this thread is perfectly fine for that.

BEWARE: this image is NOT optimized for security. The phone boots in development mode by default. There is a root shell on telnet port 2323. This is not secure and will give anyone who wants it remote access to your phone. When the port matures this will be fixed.

The Sailfish OS image does not provide recovery, and since the Xperia Z3c does not have a recovery partition, you need a bootimage with recovery on it to flash cm/stock/sailfishos upgrade. I highly recommend using Nut's Xperia files for this. Use the boot.img from your Cyanogenmod installation.

The Sailfish OS image is based on a recent version of Cyanogenmod 12.1, so update your Cyanogenmod installation while you are at it. Use cm-12.1-20160523-NIGHTLY-z3c.zip if you encounter issues with other versions. Using another rom is not guaranteed to work, even if this rom is based on Cyanogenmod.

You can find the required zip in this Mega folder: https://mega.nz/#F!ucoRnDjD!WAHNWgxLQX5SK1Vdu8MRWw

Use your favorite recovery (but not CM's recovery since that checks for signatures, which this image does not have) to flash the zip.

If you want to return to Cyanogenmod, extract boot.img from your cm-12 zip and flash that with fastboot. Alternatively you can restore a previous backup. There is no need to re-flash Cyanogenmod because it was not removed by installing SailfishOS. You can remove the /data/.stowaways/sailfishos/ folder afterwards to reclaim disk space.

FAQ

You can find a FAQ which mentions most common user questions for SailfishOS here: http://xdaforums.com/jolla-sailfish/general/qa-sailfish-n4-thread-devices-t2727330 . It's mainly aimed to the Nexus 4 and 5, but it's fairly applicable for all other ports as well.

Contributing

If you think this is awesome, and want to help fix the issues currently open: come by in #sailfishos-porters on irc.freenode.net!

Sources

You can find all used source code (may not be up-to-date to the latest image, but all key components are there) here: https://github.com/xperiasailors/

Installing OpenRepos warehouse

OpenRepos warehouse is like what F-Droid is versus Google's Play store. An unofficial, community-driven repository of open source apps.

Go to settings->developer options and set a password. Then open a terminal or connect over ssh to your phone (ssh nemo@ip_of_phone).

Download the latest version of the warehouse app from here: https://openrepos.net/content/basil/warehouse-sailfishos

When you are asked to terminate packagekit anywhere in the steps below, answer yes.

$ devel-su
# zypper rr adaptation0
# zypper in <location_of_rpm_you_downloaded>

After this Warehouse app will be in your app launcher.