Sailfish OS for the Samsung Galaxy Note 4 (SM-N910C) - (treltexx)

Search This thread

edp17

Senior Member
Dec 9, 2019
179
92
Code:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!            Everything you do,               !!
!!      you do at your own peril and risk.     !!
!!                                             !!
!!      I do not bear any responsibility       !!
!!          for your faulty devices.           !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!                                             !!
!!   THIS ROM IS ONLY FOR THE EXYNOS VERSION   !!
!!                                             !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

First I would like to thank NoKit, monich, elros34 and all the Sailfish OS porter guys who helped me to make this port.
Thank you very much guys!

News 05/03/2023: OTA to SFOS 4.5.0.18

26/10/2022: OTA to SFOS 4.4.0.72
14/07/2022: OTA to SFOS 4.4.0.68
08/06/2022: OTA to SFOS 4.4.0.64
30/05/2022: OTA to SFOS 4.3 & 4.4
22/02/2022: OTA to SFOS 4.2
16/10/2021: Waydroid on Galaxy Note4 (SFOS 4.1)
03/09/2021: OTA to SFOS 4.1
23/03/2021: OTA to SFOS 4.0

Requirements:
Before you start to download anything, please read all this through carefully.
The first requirement is your device must be rooted and you should be able to install a custom recovery (preferably TWRP) onto it.

Installation instructions:
1. Download all files, LOS14.1 zip, Sailfish OS zip and twrp2.8.7.img to the external SD card on the phone
2. Reboot into TWRP (Hold buttons: Power on + Home + Volume up)

At this point you should install TWRP 2.8.7 as the installation work the best with this recovery.

Once you flashed TWRP 2.8.7, please reboot into recovery and continue the process.

3. Do a factory reset
4. Still in recovery, flash the LOS14.1 image
5. Still in recovery, flash Sailfish Os image
8. Reboot
9. Enjoy the latest (3.3.0.16) Sailfish OS on your Note 4 (treltexx). :)
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 LOS 14.1.


Downloads:

Problems/Solutions:
  1. Problem: LXC container doesn't start on any of these two builds.
    Solution: In TWRP install the kernel for lxc support. (This will be included into a later build.)
  2. Problem: Incoming calls are not displaying the number only the 'Private call' text.
    Solution: Install the fix for 'Private number' calls rpm. (This will be included into a later build.)


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:
  • On Sailfish OS, as it is a Linux system, you cannot install/run any android apps.

How to make a backup/restore with TWRP:
You can boot into TWRP with the usual button combination (Hold buttons: Power on + Home + Volume up) and can make backup/restore.

Battery life
In my experience this build gives a very good battery life (I've tested with a new battery and it drops beteen 5% - 10% overnight with wifi on)

Changelog:

10.10.2020
=========
  • Custom (Sailfish OS) boot logo


09.10.2020
=========
  • Sound fix is included, it works out of the box
  • GPS fixed!
  • S-Pen works as a mouse! :DTo make the cursor visible (thanks for elros34!) you need to install:
    1. Patchmanager 3 from openrepos
    2. mousetracker
    3. amend '/var/lib/environment/compositor/droid-hal-device.conf' file, add the -plugin evdevmouse:abs:/dev/input/event3 to the end of LIPSTICK_OPTIONS. (That line should look like this:
      Code:
      LIPSTICK_OPTIONS=-plugin evdevtouch -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/droid.qmap -plugin evdevmouse:abs:/dev/input/event3
    4. as final step apply the moustracker patch in Settings/Patchmanager, then restart the services (pulley menu in Patchmanager) or reboot, then pull out the S-Pen and use it as a stylus/mouse.
      (Note: As patchmanager doesn't yet work when the default user is defaultuser, the instruction above works only on sfos 3.3.0.16 or the OTA updated 4.0.1.48. On fresh sfos 4.0.1.48 install you need to install mousetracker and manually apply the patch from it.)

28.09.2020
=========
Work:
  • Screen
  • Touch
  • IMEI number is detected
  • Sensors (Rotation, Acceleration, Gyroscope, Magnetometer, Light & Proximity)
  • GPS (The permanent solution will be included in a future build. Now, the workaround is (do it only once): as root delete the folder /data/system/gps and then reboot. GPS should start working)
  • Notification LEDs (white, green, blue, red)
  • Wifi
  • MTP
  • Bluetooth
  • Calls incoming/outgoing
  • Messages incoming/outgoing
  • Mobile data
  • External SD card detected and mounted to /run/media/nemo/_sdcard_name_ (where _sdcard_name_ is the name of the sd card when it was formatted like 4B93-785B)
  • Home button and the Back soft button
  • Vibra
  • Pixel ratio and icons set to 2.00
  • Audio is routed to headphone if that presents
  • Camera front/rear
  • Video recording (only on the rear camera)
  • Jolla store (please skip the account creating/adding in the initial setup)
  • findutils is installed by default (updatedb and locate commands work out of the box)
  • Torch
  • can boot into TWRP recovery with the usual button combination (hold buttons: Power on + Home + Volume up)
  • Low Power Mode (AKA "sneak peek" or "ambient display") works (install instruction is in this post)
  • Sound - Please download the 'Sound fix script for Note4 (treltexx)' and save it into /home/nemo/Download, then give it executable permission and run as root or do the following:
    1. Download the 'Sound fix script for Note4 (treltexx)' and save it into /home/nemo/Download
    2. goto Settings/Developer tools, enter a Password and save it
    3. start the Fingerterm app and within, issue the following commands
    4. devel-su (press enter, then enter the password you set)
    5. chmod +x /home/nemo/Download/soundfix-treltexx.sh
    6. /home/nemo/Download/./soundfix-treltexx.sh

Do not work:
  • USB mode selection from Settings (workaround: as root run 'systemctl restart usb-moded' command)
  • Video recording on the front camera
  • Video playback in Gallery app (You can use Kodi for playing videos)
  • Internal SD card is not mounted to /android
  • S-Pen WIP

Extra 1: Change boot logo, Download warning image, Charring image and Download image for Sailfish OS like. :D
Simply download the Note4-Boot-Logo-Updater_by_edp17.zip from the download section and flash it with TWRP.
Important!: Once the zip is flashed, boot into recovery again, then you can boot into Sailfish OS.

To revert these images back to original:
Download the original param.bin and flash it with heimdal:
Code:
heimdall flash --PARAM param.bin
Inspired by this post

Extra 2: Desktop Linux distro install/run on the Note 4!
1. First flash the kernel from the Downloads section (in a later build this kernel will be included)
2. Install all the following packages:

3. Once the packages are installed, fire up the LXC and install a distro into it (e.g. Debian SID)
On the Note 4 the harbour-containers GUI doesn't work properly. Fortunately the desktop distro installation can be done from a command line. Here are the steps:
  • sudo lxc-create -t sfos-download -n mycontainer
    follow the instruction and set the distribution (e.g. debian) then the version (e.g. sid) then the architecture (armhf)
    example command: sudo lxc-create -t sfos-download -n mycontainer -- --arch armhf --dist debian --release sid
  • sudo lxc-start -n mycontainer
  • sudo lxc-attach -n mycontainer
  • then within the container:
  • /mnt/guest/setup_desktop.sh
  • /mnt/guest/setups/debian.sh

4. Once the Desktop distro is installed you can start:
I recommend to use one of these scripts as they save a little time. (Note: You need sudo installed and configured for these scripts!)

5. Enjoy. :)

6. More info about the Full linux distros on Sailfish OS.

Pictures:

treltexx-apps.jpg


treltexx-settings.jpg


treltexx-top-menu.jpg




Custom boot logo and other pictures:

logo450x800.jpg


warning450x800.jpg


lpm450x800.jpg


download450x800.jpg
 
Last edited:

edp17

Senior Member
Dec 9, 2019
179
92
test on n910c .sound also not work

Yeah, I installed the build again and tested these. I can confirm these do not work. Hmm, all those worked fine on all previous builds, so I am not sure why the stopped working. It seems permission issue to me. I double check and will come back with a solution. Thanks for reporting!
 
  • Like
Reactions: extended84

usaman65

Member
Aug 18, 2009
35
1
Yeah, I installed the build again and tested these. I can confirm these do not work. Hmm, all those worked fine on all previous builds, so I am not sure why the stopped working. It seems permission issue to me. I double check and will come back with a solution. Thanks for reporting!
any patch possible for android apps ?
 

edp17

Senior Member
Dec 9, 2019
179
92
test on n910c .sound also not work

I have figured out a solution to the sound issue. It was me forgot to include this into this build. I will add it into a later one. Until then, please follow the instruction from the main post. (I added a script into the Download section and a comment how to apply it.)
For me, this fix solved the issues with calls and torch too.
 
  • Like
Reactions: extended84

usaman65

Member
Aug 18, 2009
35
1
I have figured out a solution to the sound issue. It was me forgot to include this into this build. I will add it into a later one. Until then, please follow the instruction from the main post. (I added a script into the Download section and a comment how to apply it.)
For me, this fix solved the issues with calls and torch too.
thanks its fix now .tuch missing some time while tipping
 
Last edited:

usaman65

Member
Aug 18, 2009
35
1
How do you mean? There is insttuction in the first post and there is a link to the main post of lxc (option 5).

there is a link but cannot find all required files .and how to fire lxc ...? cannot find harbour-containers .there is a link but cannot instaled it
 
Last edited:

edp17

Senior Member
Dec 9, 2019
179
92
any patch possible for android apps ?

No, none of the community ports have support for android apps. However you can install a desktop linux and can run desktop apps. (Although very few is touch control friendly.) Instruction for how to install a desktop distro on this device is available in the main post.
 
  • Like
Reactions: extended84

edp17

Senior Member
Dec 9, 2019
179
92
there is a link but cannot find all required files .and how to fire lxc ...? cannot find harbour-containers .there is a link but cannot instaled it

The link to the harbour-container is in the 'Extra: Desktop Linux distro install/run on the Note 4!' section (main post).

Although, here is how to install it, follow these steps:
  1. download the 'harbour-containers-0.4-1.armv7hl.rpm' from this link.
  2. open a terminal (Fingerterm)
  3. type: devel-su (then press enter, then type your password and press enter again)
  4. go to the library where you downloaded the rpm file
  5. type: pkcon install-local harbour-containers-0.4-1.armv7hl.rpm (then press enter)
!Note: Before installing the harbour-container, you need to install ALL the other packages that are listed in the 'Extra: Desktop Linux distro install/run on the Note 4!' section (main post).

There is a full topic about all of this (also provided in the main post) here.
 
  • Like
Reactions: extended84

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Code:
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!            Everything you do,               !!
    !!      you do at your own peril and risk.     !!
    !!                                             !!
    !!      I do not bear any responsibility       !!
    !!          for your faulty devices.           !!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!                                             !!
    !!   THIS ROM IS ONLY FOR THE EXYNOS VERSION   !!
    !!                                             !!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    First I would like to thank NoKit, monich, elros34 and all the Sailfish OS porter guys who helped me to make this port.
    Thank you very much guys!

    News 05/03/2023: OTA to SFOS 4.5.0.18

    26/10/2022: OTA to SFOS 4.4.0.72
    14/07/2022: OTA to SFOS 4.4.0.68
    08/06/2022: OTA to SFOS 4.4.0.64
    30/05/2022: OTA to SFOS 4.3 & 4.4
    22/02/2022: OTA to SFOS 4.2
    16/10/2021: Waydroid on Galaxy Note4 (SFOS 4.1)
    03/09/2021: OTA to SFOS 4.1
    23/03/2021: OTA to SFOS 4.0

    Requirements:
    Before you start to download anything, please read all this through carefully.
    The first requirement is your device must be rooted and you should be able to install a custom recovery (preferably TWRP) onto it.

    Installation instructions:
    1. Download all files, LOS14.1 zip, Sailfish OS zip and twrp2.8.7.img to the external SD card on the phone
    2. Reboot into TWRP (Hold buttons: Power on + Home + Volume up)

    At this point you should install TWRP 2.8.7 as the installation work the best with this recovery.

    Once you flashed TWRP 2.8.7, please reboot into recovery and continue the process.

    3. Do a factory reset
    4. Still in recovery, flash the LOS14.1 image
    5. Still in recovery, flash Sailfish Os image
    8. Reboot
    9. Enjoy the latest (3.3.0.16) Sailfish OS on your Note 4 (treltexx). :)
    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 LOS 14.1.


    Downloads:

    Problems/Solutions:
    1. Problem: LXC container doesn't start on any of these two builds.
      Solution: In TWRP install the kernel for lxc support. (This will be included into a later build.)
    2. Problem: Incoming calls are not displaying the number only the 'Private call' text.
      Solution: Install the fix for 'Private number' calls rpm. (This will be included into a later build.)


    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:
    • On Sailfish OS, as it is a Linux system, you cannot install/run any android apps.

    How to make a backup/restore with TWRP:
    You can boot into TWRP with the usual button combination (Hold buttons: Power on + Home + Volume up) and can make backup/restore.

    Battery life
    In my experience this build gives a very good battery life (I've tested with a new battery and it drops beteen 5% - 10% overnight with wifi on)

    Changelog:

    10.10.2020
    =========
    • Custom (Sailfish OS) boot logo


    09.10.2020
    =========
    • Sound fix is included, it works out of the box
    • GPS fixed!
    • S-Pen works as a mouse! :DTo make the cursor visible (thanks for elros34!) you need to install:
      1. Patchmanager 3 from openrepos
      2. mousetracker
      3. amend '/var/lib/environment/compositor/droid-hal-device.conf' file, add the -plugin evdevmouse:abs:/dev/input/event3 to the end of LIPSTICK_OPTIONS. (That line should look like this:
        Code:
        LIPSTICK_OPTIONS=-plugin evdevtouch -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/droid.qmap -plugin evdevmouse:abs:/dev/input/event3
      4. as final step apply the moustracker patch in Settings/Patchmanager, then restart the services (pulley menu in Patchmanager) or reboot, then pull out the S-Pen and use it as a stylus/mouse.
        (Note: As patchmanager doesn't yet work when the default user is defaultuser, the instruction above works only on sfos 3.3.0.16 or the OTA updated 4.0.1.48. On fresh sfos 4.0.1.48 install you need to install mousetracker and manually apply the patch from it.)

    28.09.2020
    =========
    Work:
    • Screen
    • Touch
    • IMEI number is detected
    • Sensors (Rotation, Acceleration, Gyroscope, Magnetometer, Light & Proximity)
    • GPS (The permanent solution will be included in a future build. Now, the workaround is (do it only once): as root delete the folder /data/system/gps and then reboot. GPS should start working)
    • Notification LEDs (white, green, blue, red)
    • Wifi
    • MTP
    • Bluetooth
    • Calls incoming/outgoing
    • Messages incoming/outgoing
    • Mobile data
    • External SD card detected and mounted to /run/media/nemo/_sdcard_name_ (where _sdcard_name_ is the name of the sd card when it was formatted like 4B93-785B)
    • Home button and the Back soft button
    • Vibra
    • Pixel ratio and icons set to 2.00
    • Audio is routed to headphone if that presents
    • Camera front/rear
    • Video recording (only on the rear camera)
    • Jolla store (please skip the account creating/adding in the initial setup)
    • findutils is installed by default (updatedb and locate commands work out of the box)
    • Torch
    • can boot into TWRP recovery with the usual button combination (hold buttons: Power on + Home + Volume up)
    • Low Power Mode (AKA "sneak peek" or "ambient display") works (install instruction is in this post)
    • Sound - Please download the 'Sound fix script for Note4 (treltexx)' and save it into /home/nemo/Download, then give it executable permission and run as root or do the following:
      1. Download the 'Sound fix script for Note4 (treltexx)' and save it into /home/nemo/Download
      2. goto Settings/Developer tools, enter a Password and save it
      3. start the Fingerterm app and within, issue the following commands
      4. devel-su (press enter, then enter the password you set)
      5. chmod +x /home/nemo/Download/soundfix-treltexx.sh
      6. /home/nemo/Download/./soundfix-treltexx.sh

    Do not work:
    • USB mode selection from Settings (workaround: as root run 'systemctl restart usb-moded' command)
    • Video recording on the front camera
    • Video playback in Gallery app (You can use Kodi for playing videos)
    • Internal SD card is not mounted to /android
    • S-Pen WIP

    Extra 1: Change boot logo, Download warning image, Charring image and Download image for Sailfish OS like. :D
    Simply download the Note4-Boot-Logo-Updater_by_edp17.zip from the download section and flash it with TWRP.
    Important!: Once the zip is flashed, boot into recovery again, then you can boot into Sailfish OS.

    To revert these images back to original:
    Download the original param.bin and flash it with heimdal:
    Code:
    heimdall flash --PARAM param.bin
    Inspired by this post

    Extra 2: Desktop Linux distro install/run on the Note 4!
    1. First flash the kernel from the Downloads section (in a later build this kernel will be included)
    2. Install all the following packages:

    3. Once the packages are installed, fire up the LXC and install a distro into it (e.g. Debian SID)
    On the Note 4 the harbour-containers GUI doesn't work properly. Fortunately the desktop distro installation can be done from a command line. Here are the steps:
    • sudo lxc-create -t sfos-download -n mycontainer
      follow the instruction and set the distribution (e.g. debian) then the version (e.g. sid) then the architecture (armhf)
      example command: sudo lxc-create -t sfos-download -n mycontainer -- --arch armhf --dist debian --release sid
    • sudo lxc-start -n mycontainer
    • sudo lxc-attach -n mycontainer
    • then within the container:
    • /mnt/guest/setup_desktop.sh
    • /mnt/guest/setups/debian.sh

    4. Once the Desktop distro is installed you can start:
    I recommend to use one of these scripts as they save a little time. (Note: You need sudo installed and configured for these scripts!)

    5. Enjoy. :)

    6. More info about the Full linux distros on Sailfish OS.

    Pictures:

    treltexx-apps.jpg


    treltexx-settings.jpg


    treltexx-top-menu.jpg




    Custom boot logo and other pictures:

    logo450x800.jpg


    warning450x800.jpg


    lpm450x800.jpg


    download450x800.jpg
    2
    Looks really good, have you posted the source on github or anywhere? I made a port of UT for the snapdragon note 4 and would like to make one for the exynos variant

    Yes, all sources are available on github: here
    Please let me know when the UT is available for this device! I'd like to try it. :D
    2
    Running Windows XP (with Qemu 4.2.0) on Desktop Debian (Sid) distro within an LXC container on the Galaxy Note 4 (SFOS4.0).
    (The Qemu 4.2.0 is compiled on the device within the Desktop Linux.)

    Galaxy-Note4-Debian-Sid-in-LXC-running-Windows-XP-in-QEMU1.png


    Galaxy-Note4-Debian-Sid-in-LXC-running-Windows-XP-in-QEMU2.png
    2
    Oh, it's you again dude :D That is AWESOME

    :D I am still chasing my n7000. Once I got that I will complete that port too. Will let you know.
    2
    The first OTA update is ready. (Well, sort of :) as it requires some additional manual work.)
    Because sfos 3.4 is a stop release, the device must be OTA updated to 3.4 first.
    As I have not built a sfos 3.4 image for this device, the OTA update to version 3.4 is meant to be only an interim step.
    The manual additional work is needed because, for unknown reasons, some packages and the kernel is not deployed to the device during the update.

    The benefit of upgrading this way, rather than installing the sfos 4.0 image from scratch:
    • nemo user is kept as the default user
    • all scripts that hardcoded to use user nemo, should work without any change
    • all your data, files and apps will remain and should work as before
    • if you installed and configured a desktop Linux in an lxc container, that also should work (don't need to reinstall/reconfigure again)
    • patchmanager and installed patches like Mouse cursor, More folder icons and Notes app cover will remain working

    Here is the instruction what to do:

    Step 1 - OTA 3.3 to 3.4
    1. Boot into sfos, enable developer mode and set a password
    2. Connect the phone to a wifi network (for downloading packages)
      From this point, we will work on the PC, leave the phone connected.
    3. Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):
      Code:
      ssh nemo@192.168.2.15
    4. Switch user to root (enter the password when you prompted):
      Code:
      devel-su
    5. Check repos:
      Code:
      ssu lr
    6. Disable all repos, except: apps, hotfixes, jolla:
      Code:
      ssu dr <repo_name>
    7. Add/modify adaptation-community-common repo:
      Code:
      ssu ar adaptation-community-common http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_3.4.0.24/
    8. Add/modify adaptation-community-treltexx repo:
      Code:
      ssu ar adaptation-community-treltexx http://repo.merproject.org/obs/nemo:/devel:/hw:/samsung:/treltexx/sailfishos_3.4.0.24/
    9. In case you have the mousetracker repo
      Code:
      ssu ar mousetracker http://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_3.4.0.24/
    10. Put the device in release mode:
      Code:
      ssu release 3.4.0.24
    11. Refresh packages:
      Code:
      pkcon refresh
    12. Upgrade the system:
      Code:
      version --dup
    13. Then reboot:
      Code:
      reboot

    Step 2 - OTA 3.4 to 4.0
    1. Boot into sfos, enable developer mode and set a password
    2. Connect the phone to a wifi network (for downloading packages)
      From this point, we will work on the PC, leave the phone connected.
    3. Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):
      Code:
      ssh nemo@192.168.2.15
    4. Switch user to root (enter the password when you prompted):
      Code:
      devel-su
    5. Check repos:
      Code:
      ssu lr
    6. Disable all repos, except: apps, hotfixes, jolla:
      Code:
      ssu dr <repo_name>
    7. Add/modify adaptation-community-common repo:
      Code:
      ssu ar adaptation-community-common http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_4.0.1.48/
    8. Add/modify adaptation-community-treltexx repo:
      Code:
      ssu ar adaptation-community-treltexx http://repo.merproject.org/obs/nemo:/devel:/hw:/samsung:/treltexx/sailfishos_4.0.1.48/
    9. In case you have the mousetracker repo
      Code:
      ssu ar mousetracker http://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_4.0.1.48/
    10. Put the device in release mode:
      Code:
      ssu release 4.0.1.48
    11. Refresh packages:
      Code:
      pkcon refresh
    12. Upgrade the system:
      Code:
      version --dup
    13. Then reboot:
      Code:
      reboot

    Once the device is updated to 4.0 boot into TWRP and flash this kernel: 02-hybris-boot-firejail-enhanced.img
    Then boot into SFOS and install these two packages:
    Reboot again and after this, all apps and Bluetooth should work as before.

    If you have any issues, give me a shout. :)
    Good luck!