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

edp17

Senior Member
Dec 9, 2019
93
37
28
Code:
[COLOR="Red"][B]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!            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   !!
!!                                             !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![/B][/COLOR]
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!

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 [email protected]


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! :D (Thanks for elros34!) To make it work 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.

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:









Custom boot logo and other pictures:







 
Last edited:

tigerpro357

Member
Jan 19, 2016
44
21
28
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
 

edp17

Senior Member
Dec 9, 2019
93
37
28
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
 

edp17

Senior Member
Dec 9, 2019
93
37
28
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!
 

usaman65

Member
Aug 18, 2009
35
0
0
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
93
37
28
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.
 

usaman65

Member
Aug 18, 2009
35
0
0
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
0
0
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
93
37
28
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.
 

edp17

Senior Member
Dec 9, 2019
93
37
28
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.
 

tigerpro357

Member
Jan 19, 2016
44
21
28
I think the N910V is not an Exynos but a Snapdragon device. This means, no, this port won't work on that. Sorry.
you are correct, the 910V is a snapdragon device, its actually what I used to do my Ubuntu Touch port, BTW, I am still going to do a exynos note 4 UT port, just been busy