![]() |
Sailfish OS for the Samsung Galaxy S2 (i9100)
Code:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Fortunately, the SailfishOS-porter guys do very seriously know their business and they are extremely helpful. From here I would like to emphasize my gratitude towards them for helping me in this project! Thank you! Requirements: Before you start to download anything, please read it carefully. The first requirement is your device must be rooted and you should be able to install a custom recovery (preferably TWRP) onto it. For this ROM you can either use the stock partitions or you can re-partition to give more space to /system and /data. It doesn't matter which one you chose, I tried and both worked well. Or if you scroll down to the New partition layout, you can use a completely unique partition layout which gives the most of the internal storage to Sailfish OS. (I currently use my device with this setup.) Installation instructions: 1. Download all files, CM12.1 zip, Sailfish OS zip, twrp2.8.7.img and kernel*.img to the external SD card on the phone 2. Reboot into TWRP (Hold buttons: Power on + Home + Volume up) 3. Do a factory reset At this point if you want you can repartition the S2 internal storage. (Later you can put the stock layout back if you want to go back to Android.) 4. Still in recovery, flash the CM12.1 image 5. Still in recovery, flash Sailfish Os image 6. Still in recovery, flash twrp2.8.7.img to recovery partition 7. Still in recovery, flash kernel*.img to boot partition (this step is not required since sfos 4.4, kernel is installed by flashing the zip file) 8. Reboot 9. Enjoy the latest (4.4.0.68) Sailfish OS on your i9100. :) You will need patience as the first boot will take for a while. Then you can go through the initial Sailfish OS set up. This Sailfish OS Android HAL based on CM 12.1. Downloads:
Some useful patches:
Apps from Openrepos Apart from the Jolla store there are plenty of other, community made apps in Openrepos. There is a user-friendly app to install/remove apps from this source called Storeman. It can be downloaded and install from this location: Storeman Debug/login/troubleshooting: In Ubuntu, connect USB cable. telnet 192.168.2.15 2323 or SSH nemo@192.168.2.15. Notes:
How to make a backup/restore with TWRP: Now the old clunky method is no longer needed. Once you flashed the twrp2.8.7.img to the recovery partition you can boot into TWRP with the usual button combination (Hold buttons: Power on + Home + Volume up) and can make backup/restore. Instructions for bluetooth (Since Sfos 4.3, BT works normally, don't need this magic) BT works however turning it on/off is not as user friendly as I hoped. Here is a little instruction/troubleshooting. Turn BT on (It only works from Settings/Bluetooth!!!!! DON'T try from TOP MENU!!): If BT hasn't turned on since last boot:
If BT has turned on at least once since last boot:
Turning BT off: Go to Settings/Bluetooth and tap on the white dot next to the Bluetooth option. Notice: Never try to tap on the white dot twice without going back to the main menu of Settings. Never try to turn BT on from Top Menu. However, if you accidentally did any of these BT cannot be turned on again unless you:
New partition layout I mentioned that I tried this Sailfish OS installation with the stock partitions and with another what created for Android 7.1.2. With the stock partitions however was a bit more sluggish than the other one. No wonder as in the stock partitions the /system has only 0.5GB and the /data has only 2GB storage and the rest 12GB is the separate internal storage (eMMC). In Sailfish the entire os (rootfs) including all directories (like /home) live on the /data partition so the 2GB was a bit tight. (The OS itself consumes about 1GB so not much left for apps and other stuff.) With the other partition layout, the picture was a bit better as the /system had 1GB, the /data got 4GB and the rest 9GB remained for the internal storage. But the partition where the OS lives was separated from the 9GB partition. When I installed a few apps and copied some big files into the /home, I felt the limitation very soon. Although this layout was sufficient for android but not good enough for Sailfish. :) Therefore I have created my own partition table where I restructured the sizes accordingly to my need. (The lanchon repit zip file is available in the download section.) In this new layout I gave 1GB for the /system (the prior 0.5GB was also fine as the CM12.1 base consumed only 400MB which let a 100MB free space, but I thought that might be not enough in the future so I have chosen 1GB here), I gave only 8MB for the internal storage (eMMC which is mounted into /android directory in this rom), and this made me possible to gave all the rest 14GB to the /data partition. So basically the Sailfish apps and /home can utilize the entire internal storage. :cool: As an extra, on the S2 there is a 0.5GB /preload partition which is hidden and unused by default. In my partition setup I set 7MB to this and the rest almost 0.5GB is also added to the /data. Go back to stock partitions In case you would like to do this, you can download the stock partition pit file from the download section. For this use Odin v1.83 which is also in the download section. The steps are:
Changelog: 15.02.2022 ========= Sailfish OS 4.3.0.15 is available to download. This requires a different kernel. Both of these can be found in the download section above. General advice: Patience! All (except camera) apps do start and work but they do need time. This is true for websites. When you clicked on something, wait patiently, eventually, it will start/load. :) Know issue: The camera app crashes and the device reboots. Improvement: Stock browser stable and works! 03.09.2021 ========= Sailfish OS 4.1.0.24 is available to download. This requires a different kernel. Both of these can be found in the download section above. 06.03.2021 ========= Sailfish OS 3.4.0.48 is available to download. This requires a different kernel. Both of these can be found in the download section above. 06.05.2020 ========= Sailfish OS 3.3.0.16 is available to download. This requires a different kernel. Both of these can be found in the download section above. Note: With the new version the patch that displays the provider logo at the bottom on the lock screen stopped working. This issue is not related to the OS. The owner of the app should fix it. Update: In Openrepos Kodi is fixed for SFOS 3.3.0.16! 14.05.2020 ========= Work:
Do not work:
There is an extra little issue is a delay in screen refresh which is related to how vsync is handled in v10 backend in qt5-qpa-hwcomposer-plugin. I managed to improve this but there is a little delay still. Probably this is the reason why we need to jump back to Settings every time before trying to turn BT on, but I am not sure. Pictures: http://www.flashnet.epizy.com/upload...s_list_800.jpg http://www.flashnet.epizy.com/upload...p_menu-800.jpg http://www.flashnet.epizy.com/upload...ttings-800.jpg http://www.flashnet.epizy.com/upload...roduct-800.jpg Battery life: In my experience the battery life is good. On standby, it can survive 10 days. (Almost 11.) I have checked once or twice daily during this period. https://i.ibb.co/wMrYFxv/i9100-uptime-360x600.jpg |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Nice! And good instructions!
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Congrats, that you got it working!!!
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
In case somebody missed these I would like to highlight some improvements since day 1:
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
It looks like this is a limitation of the old kernel, but there might be a workaround. :D I'll keep you posted. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
edp17, why don't you open a new thread on XDA and report your work there as well? It can be more visible than here for new users!
https://forum.xda-developers.com/jolla-sailfish Edit: why not also on https://together.jolla.com/questions/ |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
But I have posted on TJC and XDA/sailfish general too. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Bluetooth is fixed! :D
Plus backport of NO_NEW_PRIVS is added into kernel for further Flatpak support but the kernel seems to be too old for that. Unless we can patch the glibc for flatpak like I have done it for sailfish. :) Edit: The bluetooth is still needs some love because it starts only with the reboot (if it was switched on before that) and once it is on (after the reboot) and you switch it off, you cannot switch back on without another reboot. (Maybe the problem is the initialization.) Plus when I paired with my bluetooth headset, the audio is not routed to it. (It still heard the sound from the speaker.) So, I go back to the drawing board. :) |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
The two softkeys (each side of the home button) do work as notification leds.
(As this device doesn't have any leds, this is a nice re-use of the soft keys which can light on/off or blink.) The download link is updated to point to the latest image that has this function. Bluetooth is still WIP. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
With the latest image, Bluetooth works (with little extra effort) The instruction has updated. :)
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Does the bluetooth file sharing work in this build?
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
I'll build a new image (3.3.0.16) for the hammerhead soon and after that will come back to the BT sharing issue. (Honestly it slipped out my mind as I was busy with the S2 port.) Hopefully will find a solution. I'll keep you posted. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
I have good news! :)
Today I have manged to build a new version 3.3.0.16 image with CM-12.1 base. :D As I still don't have OBS account this new version cannot be installed as an update OTA. It has to be a fresh install what means you will lose your content. (I suggest to do a backup in TWRP first!) A few things changed in 3.3 and the result of that Kodi stopped working. (And one of the patches I loved to use, the one that displays the provider name and logo at the bottom on the lock screen.) The owner of these two projects should update their app at some point (or maybe never). However if you can live without these two apps you can download the kernel and the image from the main post. Happy testing. :) |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Good news, mobile data is fixed!
Instruction is updated in the main post. (To make it work: change Protocol to IP in Settings/Mobile network/Data access point.) |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Hi there i tested the Installation.
It works so far but the browser don't work. "Browser Content not responding" any advice ? :( |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
I think the default home page is http://jolla.com, so this is what the browser is trying to load when you start it. Try to change the default page to something else, or try another browser from openrepos e.g. webcat. In my experience webcat is loading up pages better that the silica browser. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
The 3.4.0.24 build is available to download. Links in the main post.
Don't forget to flash the kernel and TWRP right after you flashed SFOS otherwise you cannot boot!
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
To the main post, I added some info regarding the battery life. I post it here too.
In my experience the battery life is good. On standby, it can survive 10 days. (Almost 11.) I have checked once or twice daily during this period. https://i.ibb.co/wMrYFxv/i9100-uptime-360x600.jpg |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Sailfish OS 4.1.0.24 is available to download. This requires a different kernel. Both of these can be found in the download section in the main post.
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Sailfish OS 4.3.0.15 is available to download. This requires a different kernel. Both of these can be found in the download section in the main post. (On Sfos 4.3, BT works normally, without the magic described in the first post.)
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
In case somebody needs a good battery replacement, I've purchased one from this company in 2019 and I am still happy with its performance (2022): Wannsee-electronic Galaxy S2 i9100 battery
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
^ +1 for polarcell! Got a N900 battery just a year ago, better capacity than the original.
PS: how stable/usable would you say your build is, over two years after your initial statement? |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
The 4.4.0.64 build is available to download. Link's in the main post.
From now on the kernel is installed when flashing the zip file. :) On the first page, I've removed some old kernel/sfos release links because the post length is limited to 1500 characters. Some useful tips:
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
Do you have more useful tips, or the source of these useful tips? I've been looking for ways to reduce animations. What does the other one (low power mode) do exactly? I'm trying both anyhow... do they need to be reapplied each boot? |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
This is meant to be to show the time&date&weather when the device is pulled out the pocket without waking up the device with the power button. You can try it following these steps: - lock the screen with the power button - cover the proximity sensor at the top for a few seconds - uncover the sensor - The clock should appear in blue for a short time. :) (I am not sure how reliably this works on newer Sailfish versions. It worked well on older releases but Jolla might change this because on some Sony models there is a problem with the proximity sensor when the device is in a deep-sleep and they couldn't fix that. Then they decided to switch this off when a device goes to deep-sleep. What I am not sure is whether they did this for all devices or just for Sony devices.) No, these don't need to reapplied after reboots. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Thanks. It seems to do nothing on my Sony Xperia XA2, so I disabled it again.
The disable-animation thing does exactly what it advertises. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
The 4.4.0.68 build is available to download. Link's in the main post.
(No need to flash kernel separately.) |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
The 4.4.0.72 build is available to download. Link's in the main post.
(No need to flash kernel separately.) |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
I think that it could be interesting to allow the use of Car Audio systems for calling and receiving calls. What stops me using this phone as an alternative to a dumb phone is this issue.
PS: I actually have followed recommendations and I have bought a polarcell battery replacement. |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
The car audio is connected via BT. Some devices with newer BT version cannot connect to the S2. What I recommend you is, install only the android base (don't flash the sfos zip) and boot into it. Try to connect android to your car audio system. If it connects and works, then probably there is a problem with the BT settings in my port. If it doesn't work, then obviously cannot be easily fixed on the Sailfish Os side either because the problem is on the android side.
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
Quote:
PS: On the other side I wonder if Replicant can be used as base. https://redmine.replicant.us/project...laxySIIGTI9100 |
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
I have tried Replicant on the GT-9100 and I am able to use bluetooth and to connect to a Parrot CK-3400 but I am not able to hear any sound. With SFOS 4.4.0.72 I am also able to connect properly to this Car System but it seems as if audio is not routed properly. I am going to try again with CM-12.1 because maybe my previous reply wasn't 100% accurate.
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
OK, now I can conclude 100% sure that GT-9100 can make and receive calls properly with audio routing on a Parrot CK-3100 and on a Car Multimedia from a Toyota Hybrid from 2014 using CyanogenMod 12.
|
Re: Sailfish OS for the Samsung Galaxy S2 (i9100)
I had been using Replicant on my S2 for a while. It crashed a lot and failed to install many apps, so, finally I replaced with my own built Sailfish Os.
Regarding you car multimedia: Yeah, probably the routing is not correct. Unfortunately don't use car multimedia with my phones, so cannot really test what the correct routing should be. What I can advise you, install a Sailfish Os app called Audio Output Chooser from Chum and try whether you can route the sound properly to your car multimedia. Then, post your test results here if that helps others. |
All times are GMT. The time now is 19:09. |
vBulletin® Version 3.8.8