The Mer Wiki now uses your Mer user account and password (create account on

Adaptations/libhybris/Install SailfishOS for z3ct

From Mer Wiki
< Adaptations | libhybris
Revision as of 00:18, 21 August 2015 by Umeaboy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sony Xperia Z3 Compact Tablet

Current status

SailfishOS port to the z3ct is still a work in progess.

Noting that the port is heavily WIP, if you'd like to help port the information needed is listed here. For the time being this page can also be used as a manner of communication between porters.

Basically, you need access to a SailfishOS 1.1.7.x or up target. Also, since we don't have working Saifish OS recovery for z3ct, you need to manually extract the tar.bz2 on AOSP or CM 12.1. You can use busybox and the install script in a working zip as example of how to do so.

You can check if it is possible to unlock the boot loader of your device by checking the service menu.

To do so:

 Open the Contacts app.
 Click the menu button in the top right.
 Click Settings.
 Long press (for about 5 seconds) somewhere in the empty space just above soft key bar, and then release your finger.
 A button named Enter service code will then appear in the same area (this may take a few tries).
 Click Enter service code and a dialer appears.
 Enter *#*#7378423#*#* in the dialer.
 Tap Service info > Configuration > Rooting Status.

If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.

Now, to unlock the bootloader go to and choose Xperia™ Z3 Tablet Compact and follow instructions to get a autogenerated unlock code.

Make sure you have Android SDK setup on your system so that the command will work.

On Windows you go to and download + install the Android SDK Tools.

On any of the Linux dists your repositories should offer the Android SDK.

Ubuntu 15.04 has this guide to install it:

Fedora 20 has this guide to install it:

Mageia 5

Become root by typing:

 su -

Once you press Enter/Return/Execute button here you'll be asked to supply the root password that you choose during the installation of Mageia. Type that given password (it won't be visible for security reasons so you have to know what character you've typed) when you see:


At the root-prompt type:

urpmi android-tools -y

The -y is to answer Yes automatically since you know that you want to install the Android SDK.

The local_manifest for the z3c can be found here:

If you make a change, please notify maikoool on IRC so he can update the gist. In the near future this will all be migrated and upstreamed to proper github repositories so you can make a pull request.

When compiling libhybris, use mer-hybris/libhybris of the AOSP or CM branch. When compiling qt5-qpa-hwcomposer, use maikelwever's fork on the aosp branch. When compiling pulseaudio-modules-droid, use jusa's fork on the droid-5.1 branch.

Some tools

There is a non-booting boot.img that has recovery in it here. Many thanks to nut's dualrecovery, on which it is based:!qZoDVDDI!GJmnBf6skAAPmpLwY41xjGy3XVK0gz0vT9Tw9pm7nHY.

Press vol-up when the device notification light turns on to enter philz touch recovery. Press vol-down for TWRP recovery (my favorite)

(I'm not sure if this is the correct file, give maikoool a shout on IRC if it isn't): There is a boot.img based on the AOSP image stated above, that boots AOSP like usual, but includes busybox in /system/bin/busybox. This can be used to untar the sailfish image. You can download it here:!rYIgGLZS!i7DF89aOon5wfkzufU-VdJsKCHTZpjKNOdYmTlkGedM

Personal tools