[Galaxy Note 4 General] edp17:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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:

twrp2.8.7.img for Note 4 (treltexx)

LOS14.1 for Note 4 (treltexx)

Sailfish OS 4.5.0.18 for Note 4 (treltexx) - 05/03/2023

Sailfish OS 4.4.0.72 for Note 4 (treltexx) - 26/10/2022

Sailfish OS 4.4.0.68 for Note 4 (treltexx) - 13/07/2022

Sailfish OS 4.1.0.24 for Note 4 (treltexx) - 09/09/2021

Sailfish OS 3.3.0.16 for Note 4 (treltexx) - 09/10/2020

Boot logo updater for Note4 (treltexx)

kernel for lxc support (this kernel is only for sfos 3.3, the newer OTA updates all have this support!)

fix for 'Private number' calls

Problems/Solutions:

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.)

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:

Patchmanager 3.0

More folder icons

Operator name at bottom (Stopped working on 3.3.0.16)

Silica mail (transparent background) - Well documented here

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:

Patchmanager 3 from openrepos

mousetracker

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:

LIPSTICK_OPTIONS=-plugin evdevtouch -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/droid.qmap -plugin evdevmouse:abs:/dev/input/event3

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:

Download the 'Sound fix script for Note4 (treltexx)' and save it into /home/nemo/Download

goto Settings/Developer tools, enter a Password and save it

start the Fingerterm app and within, issue the following commands

devel-su (press enter, then enter the password you set)

chmod +x /home/nemo/Download/soundfix-treltexx.sh

/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:

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:

lxc

lxc-templates

nemo-qml-plugin-dbus-qt5

sailfish-polkit-agent

python3-base

python3-gobject

dbus-python3

lxc-templates-desktop

qxdisplay

harbour-containers

mouse cursor support for SFOS and LXC

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!)

Start LXC and desktop in landscape mode with mouse support: debian-mouse-landscape.sh

Start LXC and desktop in portrait mode with mouse support: debian-mouse-portrait.sh

Start LXC and desktop without mouse support: debian.sh

5. Enjoy. :)

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

Pictures:

Custom boot logo and other pictures: