View Full Version : Sailfish OS for Moto Z Play (addison)
This is a community port of SailfishOS to Moto Z Play (addison), based on LineageOS 14.1 (previously 13.0).
Status
Version: alpha
Works: graphics, sound, mobile data and calls, Wi-Fi, Bluetooth, camera, video HW decoding, Keyboard Mod
Known not to work yet: ?
Unsupported: fingerprint sensor, Moto Mods besides keyboard
Installation
Since there are no LineageOS 13.0 builds for the device, I currently embedded stripped custom build into Sailfish OS zip, so Lineage OS doesn't need to be installed separately. You can have any other ROM installed and switch between Sailfish OS/that ROM by flashing boot partition backup. Beware that the stock ROM has forced encryption for /data partition, so you either need to install LineageOS or modified stock firmware if you want to boot to Android as well.
Make sure your data partition is decrypted (may require formating userdata partition from fastboot)
Boot TWRP recovery
Backup your current boot partition
Flash sailfishos-addison-release-2.1.3.7-rel3.zip (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-rel3.zip)
Downloads:
2.1.1.0: sailfishos-addison-release-2.1.0.11-test.zip (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.0.11-test.zip)
2.1.3.7:
2017-12-27: sailfishos-addison-release-2.1.3.7-rel2.zip (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-rel2.zip)
2018-03-31: sailfishos-addison-release-2.1.3.7-rel3.zip (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-rel3.zip)
2018-04-05: sailfishos-addison-release-2.1.3.7-rel4.zip (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-rel4.zip)
3.0.0.8:
2018-11-13: download from GitLab CI (https://gitlab.com/sailfishos-porters-ci/addison-ci/-/jobs/119560542/artifacts/browse/sfe-addison-3.0.0.8-devel-20181112/)
Contributors:
mosen - thanks for helping me to get the device
Alberto97 - LineageOS 13.0 device tree
piggz - Xiaomi Redmi 4 port (used as reference for many things, as device has the same SoC)
Also thanks to mal, #sailfishos-porters and Sailfish OS community.
woop woop :D your porting like crazyy :P thats atleast 2 devices already
chenliangchen
2017-08-04, 12:42
Thank you so much! You guys rock!!!!
PS: Also left you a PM message ;)
Does bluetooth work?
Yes, able to attach BT keyboard and send files to another phone, connecting other devices is untested though.
You can have any other ROM installed and switch between Sailfish OS/that ROM by flashing boot partition backup.
http://data.whicdn.com/images/93910402/large.gif
PS: Also left you a PM message ;)
Ahhh, TheKit earned himself the first Livermorium Phone and Moto Mod Kbd prototype when they are ready? Good move chen! :D
chainsawbike
2017-08-05, 08:05
tried it with lineageos 14 installed with encrypted userdata, did not boot.
i assume it does not work with encrypted userdata?
flashing old boot partition image and it booted up lineageos as expected :)
tried it with lineageos 14 installed with encrypted userdata, did not boot.
i assume it does not work with encrypted userdata?
flashing old boot partition image and it booted up lineageos as expected :)
Yes, needs to be decrypted, will mention it in topic.
TheKit:
I am following this as I also have a Moto Z Play.
I would like to help as much as I can, but I do not have much programming skills.
TheKit:
I am following this as I also have a Moto Z Play.
I would like to help as much as I can, but I do not have much programming skills.
Generally porting skills and programming skills are two different things.
I have not done either one.
I have not done either one.
That's OK, everybody needs to start from the beginning; it's the will to learn that counts :)
Generally (what I consider) necessary skills in porting are pretty much debugging skills; most if not all of the needed pieces of software are already there and it is pretty much checking what does not work and figuring out why.
After that all that is needed is inserting/removing/changing something pretty trivial to remove the problem.
Most difficult thing is to understand how the build comes together; how the MER build system and libhybris interact and how the final filesystem image is created.
Reading and understanding the HADK is the way to start; https://sailfishos.org/wp-content/uploads/2016/10/SailfishOS-HardwareAdaptationDevelopmentKit-1.1.2.pdf
Also, the most valuable interactive resource is channel #sailfishos-porters on freenet.
I have installed custom or after market firmwares, such as DDWRT on to Linksys wifi routers before. So I am hoping it is similar.
I just do not like the thought of paying $400 for a phone then bricking it....
And many thanks for the link to the pdf document. I have saved it to my PC and have started reading.
Question: Can I do a dual boot of Android and Sailfish or will this be Sailfish only?
Eventually I would love to dump Android.
Question: Can I do a dual boot of Android and Sailfish or will this be Sailfish only?
No actual dual boot, but switching is more or less easy (reflashing boot partition only). However, you need decrypted userdata partition and custom Android ROM (either LineageOS or patched stock) without "forceencrypt" for /data.
Hello TheKit
Could this work on Moto Z2 Play? The Z2 play uses a Snapdragon 626 which is described as an overclocked 625 with a bit more ram. The GPU is the same.
I recently broke my J1 and am considering a Z2 Play.
Thanks
Hello TheKit
Could this work on Moto Z2 Play? The Z2 play uses a Snapdragon 626 which is described as an overclocked 625 with a bit more ram. The GPU is the same.
I recently broke my J1 and am considering a Z2 Play.
Thanks
Hello. Unlikely, since it's a newer device and came with Android 7.1.1, while this port is based on LineageOS 13 for now (which is effectively Android 6).
I did a stupid thing... but now I have a smartphone, again!
Anyhow, putting in my headphones doesn't work, might still be a bug?
Otherwise the experience is very interesting. Will report on battery life, although I didn't put in a sim yet. Gotta get a nanosim first...
EDIT: battery life is incredible, and the headphones are hardware, not software related.
Can confirm that dual sim works perfectly too.
@TheKit: you want me to test anything on dual sim? Feel free to reply through IRC.
EDIT: battery life is incredible, and the headphones are hardware, not software related.
Can confirm that dual sim works perfectly too.
Now that is very good news!
Many thanks for testing.
I did a stupid thing... but now I have a smartphone, again!
Anyhow, putting in my headphones doesn't work, might still be a bug?
Otherwise the experience is very interesting. Will report on battery life, although I didn't put in a sim yet. Gotta get a nanosim first...
EDIT: battery life is incredible, and the headphones are hardware, not software related.
Can confirm that dual sim works perfectly too.
Battery life should be awesome considering the Moto Z Play has a 3510 ma/hr battery.
With Android on my Moto Z Play I can hold the phone sideways and shake it twice to turn on the flashlight (torch) then shake it twice again to turn off the flashlight.
Is this a function of the phone and is supported in Android? Will this work with Sailfish? If not, then how easy or difficult would it be to add this function to Sailfish?
With Android on my Moto Z Play I can hold the phone sideways and shake it twice to turn on the flashlight (torch) then shake it twice again to turn off the flashlight.
Is this a function of the phone and is supported in Android? Will this work with Sailfish? If not, then how easy or difficult would it be to add this function to Sailfish?
This is a Moto special feature an done in Software.
You can configure the gesture action in the Moto App or Settings. (sorry, no phone here to check).
As i am using the phone for photos mostly the "twist twice" gesture to start camera comes quite handy also.
I have a bug, one that might be very expensive to debug! While on the Thalys, my playing music stutters as we go 300km/h...
It gets better when I'm actually doing something on the phone, but when I turn off the screen, it usually stutters. Only on the Thalys though, didn't experience it anywhere else -- yet.
I have a bug, one that might be very expensive to debug! While on the Thalys, my playing music stutters as we go 300km/h...
It gets better when I'm actually doing something on the phone, but when I turn off the screen, it usually stutters. Only on the Thalys though, didn't experience it anywhere else -- yet.
What's thalys, your network provider?
What's thalys, your network provider?
https://duckduckgo.com/?q=Thalys :D
The other day I plugged in a USB cable to my Moto Z Play and the file manager on my desktop PC was blank. I am assuming the phone is encrypted.
If it is encrypted then how do I disable the encryption?
The phone came with Android 6 and with the updates now has Android 7.11
hamudistan
2017-10-05, 08:18
Tried to flash the zip today, but twrp gives me an error message saying "this is for moto z play addison. Your phone is.. "
Well, I'm on addison with patched decrypted stock 7.1.1. and have no clue at the moment how to get further on without massive fiddling around
I have a question:
Will this work with Moto Z (no play )?
I have a question:
Will this work with Moto Z (no play )?
Not yet due to different SoC mainly.
But if you want (to) help go to freenode IRC #sailfish-porters.
Even if you do not know how to port yourself but are really desperate, it may be an option to offer SSH access to your location/device.
Maybe someone is looking for a fun hacking time ;)
MisterMagister was quite verbose (https://twitter.com/Mister1Magister/status/910852112057323520) on moto porting ambitions, maybe ask him?
suicidal_orange
2017-10-22, 09:12
I have a bug, one that might be very expensive to debug! While on the Thalys, my playing music stutters as we go 300km/h...
It gets better when I'm actually doing something on the phone, but when I turn off the screen, it usually stutters. Only on the Thalys though, didn't experience it anywhere else -- yet.
Do you have GPS switched on? I'm thinking the device could be throttling due to inactivity then being overwhelmed by GPS updates...
This would indeed be expensive to debug!
Do you have GPS switched on? I'm thinking the device could be throttling due to inactivity then being overwhelmed by GPS updates...
This would indeed be expensive to debug!
Seems like I have it on my local trains too, which costs €1.10 per ride, I have 4G on my laptop, and takes about 2 hours. On top of that, I take that twice a week, so that's quite a bit cheaper :'-)
It's not always though, but I'm guessing it's switching between ground stations while it's doing that. GPS is switched on (in the settings), but it's not active at the moment I'm listening to music.
hamudistan
2017-11-11, 13:14
Tried to flash the zip today, but twrp gives me an error message saying "this is for moto z play addison. Your phone is.. "
Well, I'm on addison with patched decrypted stock 7.1.1. and have no clue at the moment how to get further on without massive fiddling around
Solution for me: in newest twrp 3.1.1-1 unoffical, there in the install settings screen is an option to choose "legacy zip". Aktivate it and zip will install without errors
I seem to be having problems with bluetooth; can't find new devices.
If I do systemctl restart bluetooth, I can find devices, but can't pair.
wokawoka
2017-11-22, 12:09
It would be great if someday the zip could be flashed to the phone in multirom with TWRP multirom ( https://forum.xda-developers.com/moto-z-play/development/addison-multirom-v33-t3609399 ).
Great project. Please keep up the good work!
It would be great if someday the zip could be flashed to the phone in multirom with TWRP multirom ( https://forum.xda-developers.com/moto-z-play/development/addison-multirom-v33-t3609399 ).
I tried it before, but the MultiROM itself wasn't working properly.
wokawoka
2017-11-24, 11:12
Yes, TWRP multirom for the moto Z play at the moment is buggy and I wasn't able to use it as well.
The guy who ported it recently wrote on xda that he would have update and fix it soon.
Let's really hope he will do it soon ́, it would be really useful in order to dualboot android and sailfish
Uploaded a new build with SailfishOS 2.1.3.7: http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-test.zip. It's still LineageOS 13 based, so there are no changes in terms of hardware support.
I'm currently trying to update to LineageOS 14.1 base, as it has official support for the device, compared to LOS13 and there likely going to be less bugs from Android side.
Uploaded a new build with SailfishOS 2.1.3.7: http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-test.zip. It's still LineageOS 13 based, so there are no changes in terms of hardware support.
I'm currently trying to update to LineageOS 14.1 base, as it has official support for the device, compared to LOS13 and there likely going to be less bugs from Android side.
Thanks TheKit for the update! I installed it, here are my current remarks:
- Camera occasionally bugs/doesn't start
- Disabling second (unavailable) sim crashes the first SIM. This took a long time to figure out. After reverting to 2.1.0, I noticed what went wrong, and then went back to 2.1.3. I also have this on 2.1.0 thus.
- Some graphical elements -- unsure which ones -- render black. Tab previews in the browser are among them, and some images in quickddit and the Twitter event view.
- Bluetooth seems more stable/less buggy, but I don't have my hands on my speaker atm to test.
- No OTA updates, but I heard progress is made there! This means you HAVE to backup and restore. And preferably, also backup your home directory, as application data is not always covered by the system backup.
Due to few regressions and a lot of new features, I'm staying on this release. Thanks TheKit! :-)
suicidal_orange
2018-02-02, 15:28
I'm currently trying to update to LineageOS 14.1 base, as it has official support for the device, compared to LOS13 and there likely going to be less bugs from Android side.
Sounds good, are you having any luck?
Sailfish on the Moto Z Play is absolutely amazing. It runs days on a single charge and works absolutely smooth. Only the buggy camera keeps me from using Sailfish OS as an every day system. I agree with suicidal_orange, it would be great to get an update.
Thank you so much for the work already done, TheKit.
chenliangchen
2018-02-06, 13:50
SFOS runs really well on Moto Z Play, feels very polished.
I will send a full working engineering sample of Keyboard Mod to TheKit ahead of release and he can tinker with it and make it work under SFOS.
suicidal_orange
2018-02-06, 22:01
Does this port work on XT1635-03, the 64gb version supposedly sold in China?
glebanych
2018-02-09, 07:03
Does this port work on XT1635-03, the 64gb version supposedly sold in China?
Yep, working fine on my -03 Z Play.
suicidal_orange
2018-02-09, 08:35
Yep, working fine on my -03 Z Play.
Thanks! Sadly it's no longer available though, the search for my next phone continues...
Hey there,
boy it feels good to be back (used to have / love and now miss my N900 back in the days).
Anyways, funny enough I was thinking about trying to port Sailfish OS to a spare MotoZ that I have lying around when I found this thread thanks to the amazing @chengliangchen.
Anyway since I have a bit spare time and more importantly a spare MotoZ I'd like to get my hands "dirty". @TheKing do you think I could take your work as a base (using the LineageOS version for the Griffin of course?). Do you have any suspicions why SailfishOS is still 13.1 based?
Thanks ahead,
blck
Anyways, funny enough I was thinking about trying to port Sailfish OS to a spare MotoZ that I have lying around when I found this thread thanks to the amazing @chengliangchen.
Talking of Chen, he posted 2 days ago that someone activated his motomod keyboard on the sailfish port of the MotoX: https://twitter.com/chenliangchen/status/979095958381322242
it was wrongly attributed to someone who corrected it in the comments, but we don't know who did it...
Probably someone from this forum ?
It's been a long time, but I've updated the first post with a new build on LineageOS 14.1 base: sailfishos-addison-release-2.1.3.7-rel3.zip.
It support Keyboard Mod hotplugging now (make sure to have phone disconnected from PC, keyboard can't work simultaneously due to HW limitation). Video playback in browser is fixed by switching to gst-omx, camera seems to work more stable on new base as well. Also we have 64-bit binder now, which makes device more similar to Xiaomi Redmi Note 4 (mido) and Xperia X (if you get the hint).
Of issues I noticed, video playback is even worse in YTPlayer than it was before, but downloading video and playing it in Gallery works fine, so not sure what the issue is related to.
chenliangchen
2018-03-31, 18:09
@Zeta The work was done by TheKit I mistakenly at the wrong person on Twitter
TheKit has did such a lovely job that seems the keyboard Mod works even better and stabler than under native Android - another evidence that SFOS is superior than Android. And now the keyboard works out of box.
I will post some video later with Keyboard Mod working under SFOS.
========================
Update: Video uploaded: https://twitter.com/chenliangchen/status/980219341504438272
http://blog.prisync.com/airplanebody/uploads/2015/03/mexican_wave_mexico_ecommerce_prisync.gif
chenliangchen
2018-04-01, 23:20
Today I confirmed that Moto Battery Mod also works under SFOS (https://twitter.com/chenliangchen/status/980552944285376513), as an external charger.
So in theory the KeyboardMod with Battery should also be fully working. I will verify it later.
Updated the first post with a new 2.1.3.7 build (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-rel4.zip) with the issues noticed by chenliangchen fixed:
MTP file transfer works
Gallery app is now able to be started again
QT_OPENGL_NO_BGRA=1 environment variable is set to avoid missing image display in gallery and other apps
Thanks him for testing!
chenliangchen
2018-04-05, 22:26
Updated the first post with a new 2.1.3.7 build (http://sfos.scanf.su/addison/sailfishos-addison-release-2.1.3.7-rel4.zip) with the issues noticed by chenliangchen fixed:
MTP file transfer works
Gallery app is now able to be started again
QT_OPENGL_NO_BGRA=1 environment variable is set to avoid missing image display in gallery and other apps
Thanks him for testing!
All I did was just using the phone + keyboard as my daily driver*. Much thanks to TheKit for fixing the issues found almost prompted!
*With some "working" parts from my purchased Sailfish X...
Is it possible to activate double tap for activating the screen or perhaps just fingerprint reader (as of LineageOS 14.1 supports it on Moto Z play)? Would be enough if it just act as button.
The commands for double tap for Xperia X don't work:
pkcon install mce-tools
mcetool –set-doubletap-mode=show-unlock-screen
mcetool -i disabled
mcetool -z always
According to #sailfish-porters irc logs[1], current TWRP versions ship a busybox implementation wherein tar leaks memory. I used TWRP 3.2.0 from https://androidfilehost.com/?fid=745849072291691926 and was able to flash successfully. Newer versions will not work.
1- http://www.merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2018-04-06.log.html
Hi, great ROM
is any chance to get JBL MOD working on SF OS ?
Thank you.
Hi, any news / updates about this great ROM ? Thanks.
What about fingerprint fix ? Is it possible ? Thank you.
Hi, great ROM
is any chance to get JBL MOD working on SF OS ?
What about fingerprint fix ? Is it possible ? Thank you.
It depends on how that Mod is implemented and connected to Android. I don't have any mods besides Keyboard Mod proto, so no idea.
As for updates, I will update to newest SFOS version shortly. Fingerprint depends on SFOS middleware being implemented, I think no ported device supports it yet, and they used custom solution for Turing Phone.
How much cost JBL mod in your county ?
I want to donate to you.
It would be great, to have Sailfish with all mods support in future.
Thanks and sorry for my english.
EDIT: Maybe this could help you :
http://gerrit.aicp-rom.com/q/topic:moto-audio-mod+%28status:open+OR+status:merged%29
It is for Moto Z(Griffin), but maybe it can help you.
It depends on how that Mod is implemented and connected to Android. I don't have any mods besides Keyboard Mod proto, so no idea.
As for updates, I will update to newest SFOS version shortly. Fingerprint depends on SFOS middleware being implemented, I think no ported device supports it yet, and they used custom solution for Turing Phone.
Nice to hear, progress is going on. What about the doubletap feature, do you know how to get it working? (Perhaps there is also the battery drain reason why you didn't enable it by default)
After I found some time again and a bit of searching around, I just realized it's already possible to unlock the phone without fingerprint sensor or power button. Actually that was one thing I was missing before using it more frequently, but proximity sensor lpm mode and setting the triggers did the trick for me.
What is needed to move this project forward?
Does this mean this project is dead?
Does this mean this project is dead?
Not really dead, there were some changes on OBS so newer rootfs can be automatically build on GitLab CI (https://gitlab.com/sailfishos-porters-ci). But I don't plan to look into more Mods support myself, especially since Keyboard Mod was cancelled, unfortunately.
Regarding double tap to wake, I didn't look into it. Generally it depends on touch screen driver support for this in kernel. Can Android do it on this device?
Not really dead, there were some changes on OBS so newer rootfs can be automatically build on GitLab CI (https://gitlab.com/sailfishos-porters-ci). But I don't plan to look into more Mods support myself, especially since Keyboard Mod was cancelled, unfortunately.
Regarding double tap to wake, I didn't look into it. Generally it depends on touch screen driver support for this in kernel. Can Android do it on this device?
I don't think it can, but for me it's enough that it can turn on the screen with proximity sensor.
I already feared that, as I also funded the keyboard. Do you know if the Q-device will support Sailfish?
Anyway thanks for your work you put into this
Just a quick update, the repos are in place to upgrade to 3.0.0.8 via OTA. It is same process as with other ported devices:
ssu re 3.0.0.8
version --dup
If this does not work, please post output of "ssu lr" for system-enabled repositories.
Velociraptor
2019-10-14, 21:58
I am trying to install the rom and I am getting:
"Updater process endid with ERROR: 7 Error installing zip file filename"
It is a rooted Moto z play with TWRP 3.3. Nothing other than root was changed on the phone.
I've tried multiple ROMs, the last version 2 and the one deployed as a GIT artifact.
It fails on the this line "tar --numeric-owner -xvjf $FS_ARC -C $FS_DST". I've tried to run this on my linux machine and it works correctly.
Any ideas?
It is a rooted Moto z play with TWRP 3.3. Nothing other than root was changed on the phone.
Try to use TWRP 3.1 instead. There seems to be a bug in recent TWRP's tar utility causing it to run out of memory when unpacking.
Velociraptor
2019-10-15, 19:49
Thank you, it works.
vBulletin® v3.8.8, Copyright ©2000-2025, vBulletin Solutions, Inc.