[beta] [SFOS] SailfishOS 2.1.3.7 for cancro

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
Introduction

Sailfish OS is a mobile operating system combining the Linux kernel for a particular hardware platform use, the open-source Mer core middleware, a proprietary UI contributed by Jolla, and other third-party components.
This is a port of Sailfish OS to cancro (Xiaomi Mi3/Mi4), based on CyanogenMod 12.1.

What Works: https://wiki.merproject.org/wiki/Adaptations/libhybris#Smartphones (Check Xiaomi Mi3)

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Whats new:
Updated to Sailfish 2.1.3.7
Known issues:
1) Wifi mac address not detected properly
Current TODOs: Sailfish OS on cancro's Trello Board

Download links:
Cyanogenmod 12.1 base: https://www.androidfilehost.com/?fid=529152257862691291 (Mirroring this, as CM servers are shutting down)
Sailfish OS rootfs: https://www.androidfilehost.com/?fid=817906626617953262
Installation Instructions:
NOTE: This release is also available as an OTA to existing users.
1) Make sure your device has the new partition layout needed for Android M and a custom recovery. Boot to Recovery, wipe cache, dalvik-cache, system and data. ( https://jrizzoli.github.io/dotfiles/ )
2) First install cm-12.1-20151117-SNAPSHOT-YOG7DAO1K6-cancro.zip As your base ROM, and make sure it works well.
3) Then Install sailfishos-cancro-release-2.1.3.7-beta.zip on top of it. This will replace your boot image with sailfish boot image, and installs sailfish os to /data/.stowaways/sailfishos . The installation can take a little while, so be patient.
If you are already running, CM12.1 YOG7D/already have SailfishOS installed, you can simply flash the Sailfish OS without wiping flash/partition.
Big kudos to @mixmoto and Nokius, for patiently testing this release over and over.

P.S Thank you all for your support. I really really appreciate it - and it's what motivated me to make some time in my busy days to create this release. Wish you all Happy Holidays!

XDA:DevDB Information
Sailfish OS for cancro, ROM for the Xiaomi Mi 3

Contributors
saidinesh5, Ar4er, Folks at #sailfishos-porters, especially @mal-
Source Code: https://github.com/CancroSailors

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Must have CM12.1-YOG7D
Based On: CyanogenMod 12.1-YOG7D

Version Information
Status: Alpha

Created 2016-09-15
Last Updated 2018-01-07
 

Attachments

Last edited:

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
Hey Dinesh,

Thanks for your work,

does this have sfdroid support?
Hey, Nope. SFDroid support is on my TODO list for now.

It may take a while though. I need a Multirom working with CM13.0(which is my primary ROM), so I can safely port all the needed changes for SFDroid to my CM12.1 base without losing all my data. Any help welcome here!

Cheers
 

Rocketval

Senior Member
Sep 26, 2013
603
139
0
Hey, Nope. SFDroid support is on my TODO list for now.

It may take a while though. I need a Multirom working with CM13.0(which is my primary ROM), so I can safely port all the needed changes for SFDroid to my CM12.1 base without losing all my data. Any help welcome here!

Cheers

Thank you!!! this is awesome!! :D :D :D
Almost everything it seems to be working :good:
Is it stable for daily use? :)
 

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
Thank you!!! this is awesome!! :D :D :D
Almost everything it seems to be working :good:
Is it stable for daily use? :)
Great!
Right now i don't think it's ready for daily use yet, as sometimes my device's sensors and audio stop working randomly. Not sure if it is just my device though (because of some weird hacks I've been using).

I suspect this maybe because the CM 12.1 zip i was using to boot differs from the sources I've used to compile this rom. Once that issue is fixed, i think this will be usable for daily use. Camera works, Browser works, basic apps work.. And compiling that cm 12.1 means even sfdroid will work ...
 
  • Like
Reactions: z3ki

Rocketval

Senior Member
Sep 26, 2013
603
139
0
Great!
Right now i don't think it's ready for daily use yet, as sometimes my device's sensors and audio stop working randomly. Not sure if it is just my device though (because of some weird hacks I've been using).

I suspect this maybe because the CM 12.1 zip i was using to boot differs from the sources I've used to compile this rom. Once that issue is fixed, i think this will be usable for daily use. Camera works, Browser works, basic apps work.. And compiling that cm 12.1 means even sfdroid will work ...
For what I know only few cm12 builds worked fine when flashed before sfos.. :confused:
Maybe you need another build.. I don't know..
 

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
For what I know only few cm12 builds worked fine when flashed before sfos.. :confused:
Maybe you need another build.. I don't know..
Could be. Most bugs i had to fix last week were because of differing versions too. That's why I'm trying to compile a cm12.1 right now.

Also right now as I'm on CM13.0, i was just using a system.img from the CM12.1.zip.. And making sailfish loop Mount that as the actual /system/ . not sure if that's causing any issues.

Right now my options are port multirom to CM13.0 (having some weird errors there) or wipe my device clean and downgrade to CM12.1 (have been trying to avoid this for months now!).
 
  • Like
Reactions: z3ki and Rocketval

Rocketval

Senior Member
Sep 26, 2013
603
139
0
Could be. Most bugs i had to fix last week were because of differing versions too. That's why I'm trying to compile a cm12.1 right now.

Also right now as I'm on CM13.0, i was just using a system.img from the CM12.1.zip.. And making sailfish loop Mount that as the actual /system/ . not sure if that's causing any issues.

Right now my options are port multirom to CM13.0 (having some weird errors there) or wipe my device clean and downgrade to CM12.1 (have been trying to avoid this for months now!).
Yeah, we definetely need multirom, with 64gb mi4w I have more than 32+ free and a lot of will to try :D
 
  • Like
Reactions: ar4er

adeen-s

Senior Member
Jul 5, 2013
89
118
0
As a temporary fix for radio, pulseaudio could be restarted, NOT as root.
Code:
 systemctl restart pulseaudio --user
 
Last edited:

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
As a temporary fix for radio, pulseaudio could be restarted, NOT as root.
Code:
 systemctl restart pulseaudio --user
I currently use this command everytime i wanted the FM radio to work. I will have to look into why this is failing by default though
Code:
$pactl set-source-port source.primary input-fm_rx
 

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
i cant undersatand for what need to flash cm-12.1? I cant flash clean sailfish.zip?
UPD can i flash gapps and supersu?
Due to legal reasons, Sailfish OS doesn't bundle the proprietary blobs(device drivers, system libraries etc..) provided by the phone vendors in it's zip.
As I have compiled Sailfish OS using sources from CM-12.1, it tries to access these proprietary files on your device via. CM-12.1 libraries. That's why you have to flash a CM-12.1 zip first, before flashing Sailfish OS. (i.e just clean flashing sailfish.zip won't work)

As of now, you don't have to flash gapps, as there is no way to use them from Sailfish OS. Once we get sfdroid running, we can run Android apps from within Sailfish OS, then you can flash gapps if you want.

Sailfish OS already comes with an su binary (accessed via. devel-su command) and full root access. So, you won't need Super SU.
 

Dr. Ramm

Senior Member
Jun 20, 2015
219
746
133
25
Moscow
vk.com
As I have compiled Sailfish OS using sources from CM-12.1, it tries to access these proprietary files on your device via. CM-12.1 libraries. That's why you have to flash a CM-12.1 zip first, before flashing Sailfish OS. (i.e just clean flashing sailfish.zip won't work)
got it
As of now, you don't have to flash gapps, as there is no way to use them from Sailfish OS. Once we get sfdroid running, we can run Android apps from within Sailfish OS, then you can flash gapps if you want.
Stock market not working (as u say in 1st post) but how i can install some apps?
Sailfish OS already comes with an su binary (accessed via. devel-su command) and full root access. So, you won't need Super SU.
nice
 

saidinesh5

Senior Member
Jul 13, 2016
93
227
33
saidinesh5.wordpress.com
  • Like
Reactions: z3ki and Dr. Ramm

Dr. Ramm

Senior Member
Jun 20, 2015
219
746
133
25
Moscow
vk.com
Last edited:
  • Like
Reactions: saidinesh5