yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 General] edp17:
Yeah, I forgot to mention an important step. Sorry. You need to update /var/lib/environment/compositor/droid-hal-device.conf file. The instruction is updated in the main post.
[Galaxy Note 4 General] usaman65:
linux in containers not stable if i run some time it lagging and not responding so much .is it for only me ....?
[Galaxy Note 4 General] edp17:
I didn't experience lag over the time. In my experience: after it is constantly running for more than a half day, the desktop app tends to quit. (I have not tested but have a feeling the container still running and reachable with vnc if that configured. I'll test thîs.) This closure can be because of another app and/or a background process. Although it could be a very different reason.

I am not the developer of that app but if this really puts you off, you may create an issue on the app's github.

What about the S-Pen? Is it working now?
[Galaxy Note 4 General] usaman65:
yes s-pin work now
[Galaxy Note 4 General] pippideniro:
How is the Battery life using SFOS on this device compare to android?
[Galaxy Note 4 General] usaman65:
good attery life i think better then android
[Galaxy Note 4 General] pippideniro:
I have install patchmanager 3 and mouse tracker but how do i go to the next step which is

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:

I'm really new to these stuff.
[Galaxy Note 4 General] edp17:
With a PC

install Storeman,

then within that install MC (Midnight commander),

then connect the device to your PC and ssh into it

then become root (issue command devel-su)

then open up mc and navigate into /var/lib/environment/compositor/ folder

then edit the file with F4

then save your change with F2 and quit MC

done

or on the device

start up Fingerterm

then become root (issue command devel-su)

issue command: vi /var/lib/environment/compositor/droid-hal-device.conf

press SHIFT, then press I (capital i) on keyboard

with key cursors navigate to the line and add the -plugin evdevmouse:abs:/dev/input/event3 to the end of it

press esc in keyboard

press :

type wq

done

or you can do a combination of the two above. :)
[Galaxy Note 4 General] paterawei2:
Does this work for note 4 Korean variant n910s
[Galaxy Note 4 General] edp17:
It depends, if that is an exynos version you can try to flash this image. (I recommend to do a full backup in recovery for be able to restore your original setup!) If it doesn't boot, you can go back to Android (flash a backup or other Android image) any time, it will not brick your device.
[Galaxy Note 4 General] paterawei2:
Thanks for the information
[Galaxy Note 4 General] paterawei2:
Already tried to install the rom on 910s (korean) exynos. But got error 7 on the first step installing lineage 14.
[Galaxy Note 4 General] edp17:
Error 7? Hmm. I remember that I got that on another device.

What TWRP version did you use?

Did you get the 'error 7' when you tried to install the SFOS on top of the LOS14.1 or when you tried to install LOS14.1?

Try the following:

Before flashing LOS14.1, reformat /data partition in TWRP to remove the encryption

Once you reformatted the /data, you should be able to flash the LOS14.1 and then SailfishOS images
[Galaxy Note 4 General] paterawei2:
I got the other way to fix error 7 and it worked,.

Already installed it work on n910s.

But It stuck on boot logo cannot log into recovery, after reboot cuz of flash light cannot turn off.
[Galaxy Note 4 General] TestedTechs:
I have the same phone and I've formated data several times, still shows error 7..

How did you make it work
[Galaxy Note 4 General] w41ru5:
please take a full backup before

error 7 - delete the assert line in the updater script

I am not responsible for what you do with your phone

please search a bit on google.com before asking - this issue fix is literally the first result on a search listing
[Galaxy Note 4 General] paterawei2:
Just as W4iru5 mentioned above, delete the assert line on updater script.
[Galaxy Note 4 General] TestedTechs:
thanks i've got it working.....

i just want to feel how a different os than android feels like

it froze during the tutorial, particularly People application and a wouldn't reboot again unless I reflash......

WIll definitely try again... thanks
[Galaxy Note 4 General] edp17:
It was a long time ago I used the tutorial. :) You can skip it if you tap on each corner of the screen clockwise starting at the top left corner.
[Galaxy Note 4 General] MAOQ:
Hello. I wonder if there will be Ubuntu Touch for N910C (Exynos)?
[Galaxy Note 4 General] edp17:
Running LibreOffice on Desktop Debian (Sid) distro within an LXC container on the Galaxy Note 4 (SFOS4.0). Although this is a phone, the lag is minimal (almost nothing) and quite usable for lots of tasks.
[Galaxy Note 4 General] edp17:
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 Note 4 General] pzoe:
Recently I installed this OS on my note 4 and its working fine.

I upgraded to 4.0 using above commands

I have one doubt regarding kernel flashing (02-hybris-boot-firejail-enhanced.img)

In recovery mode I tried to flash and I was given 3 partitions as options like

System Image

Boot

Recovery

Now I dont know which partition to flash this kernel mod. Sorry I'm pretty noob.

My guess is that it is definitely not going to recovery because thats where TWRP is there but im not so sure about other two partitions.

Any help would be appreciated

By the way can anyone direct me to good repositories for apps for this os

EDIT: From my initial testing, Phone app doesn't open

EDIT: I flashed kernel firejail to boot partition and again core apps are functioning
[Galaxy Note 4 General] edp17:
Yeah, the kernel should be flashed to the boot partition.

For apps, you can install Storeman and then will have access to apps from Openrepos. Instruction is in the first post.
[Galaxy Note 4 General] pzoe:
When executing qxdisplay I get an error that xcb plugin is not found.

I did locate for libqxcb.so as suggested in google search but its not present anywhere in filesystem

Did tried QT_DEBUG_PLUGINS=1 and QT_PLUGIN_PATH=/usr/lib/qt5/plugins

Searched for packages related to xcb in pkcon but nothing is found

tried all variations for 2 days and got vexed up and then reverted to old build where I havent installed anything and started again

now I have a different error, I think its not even downloading the packages properly (previously the script downloaded and built the packages and it took a very long time for setup_desktop.sh and debian.sh)

xz: /var/lib/lxc/mycontainer/tmp.8p3FIj/meta.tar.xz: File format not recognized

tar: short read

The image cache is now ready

Unpacking the rootfs

xz: /home/.lxc/lxc_cache//download/debian/sid/armhf//default/rootfs.tar.xz: File format not recognized

tar: short read

ERROR: meta tarball is missing the configuration file

Error creating container mycontainer
[Galaxy Note 4 General] pzoe:
Anyone know of working Hangouts plugin or app for Sailfish OS 4.

I installed Hangish and its not logging in, then I added XMPP account in settings but I don't know where to check my messages.

In pidgin there is a separate plugin for Hangouts, Skype and Whatsapp web.

I searched in storeman but nothing relevant comes up.

Then I tried to install Skype account from storeman and below is the error

Nothing provides telepathy-haze needed by haze-accounts-extensions-skypeweb-0.2-10.3.1.jolla.noarch

well I search for telepathy related things and couldnt find much

Any way to get any of the above services get it working on Sailfish OS

Any pidgin client would be awesome on this OS
[Galaxy Note 4 General] pzoe:
EDIT: Actually I had to execute commands from sailfish OS terminal which is on phone, I was using ssh to login and there I was executing commands and its failing monumentally. It took around 3 days of continuous effort to get it running.

Now looking how to fix landscape orientation on the qxcompositor and qxdisplay as well.
[Galaxy Note 4 General] pzoe:
Using SFOS for couple of days now

SOFS

Calls are having high volume which is at a point of discomfort while having earphones

battery life excellent compared to Android on the same device

I synced my office account which is a GSuite account and it is added, but I didnt get contacts. I rebooted phone and then I got the contacts. After couple of days of using now I again lost the contacts,

GPS is not working either, I did delete the folder as root as advised earlier but that didnt solve the issue.

Flashlight turns on from quick actions and also from apps but doesnt off. I have to restart device to make it go off

WiFi keeps forgetting passwords after reboot (workaround: install sailfish utilities and then goto utilities and then restart network, then wifi gets connected, its better than to select wifi and type in password every time)

LXC

not able to get landscape mode (using debian-mouse-landscape.sh)

Made window scaling to 2X in settings->display, now everything is finger touch usable

I installed many variants like ubuntu and debian with different desktops like gnome and kde-desktop and pretty much its crashing so the only working desktop is xfce4 and debian

later I installed pidgin into xfce4 environment and again its crashing within a couple of seconds (xinit: connection to X server lost)
[Galaxy Note 4 General] edp17:
Calls (high volume): I have not realised this because didn't really use it for calls. I only tested the mobile internet and since I am using the device without a SIM card. I'll try and see what can I do about that.

The battery life is really excellent for me as well. I am glad you confirmed it too. :)

GSuite account: I don't use this, so cannot comment. You can try to find a solution on the sailfishos forum

GPS: Yeah, this is again something that does work with the test apps but not really in real navigation with the Puremap app. This is something that I need to see a bit deeper.

Flashlight: Yes, I did realise that if the device is not restarted in a period of time (let's say daily), the flashlight tends to be stuck in and to turn off the device needs to be rebooted.

Wifi: For that, I have a workaround which is the following:

1. turn wifi off

2. open fingerterm

3. as root run the following command: /usr/bin/droid/./wifi-tidy.sh

4. turn wifi on and enter the password

5. reboot and test whether it remembers now

LXC: I am not sure you have seen this topic

I use Debian Sid and works well. If you need help with LXC and desktop distro, I recommend you to post your questions on that topic.
[Galaxy Note 4 General] edp17:
For GPS you can try to do the following:

issue these two commands in fingerterm :

devel-su usermod -aG system nemo

(or use defaultuser on fresh installs like: usermod -aG system defaultuser)

devel-su chmod a+rw /data/system/gps/.gps.interface.pipe.to_jni

Then you can re-try to test the location (GPS) with GPSInfo app or CSD Tool. GPS started to work for me. I haven't tested with real navigation but GPSInfo has found some satellites and GPS test in CSD Tool has passed.)
[Galaxy Note 4 General] edp17:
There was a typo in the instruction for OTA upgrade to 4.0.1.48 (the repository name was incorrect).

GPS fix!

For fixing the GPS I've got a permanent workaround.

At the '# GPS' section after line 423, the following two lines should be added into /init.universal5433.rc file:

exec -- /system/bin/mknod -m 0660 /data/system/gps/.gps.interface.pipe.to_jni p
chown gps system /data/system/gps/.gps.interface.pipe.to_jni

Then, reboot or resart the gpsd and GPS should work.

I'll include this in the next update.
[Galaxy Note 4 General] edp17:
Yesterday I tested the GPS fix with PureMap with real car drive (not just with gpsinfo and csd apps) and the navigation worked very well. :)
[Galaxy Note 4 General] w41ru5:
dude, you're awesome - I wish I could find faster a sane 910C - sold mine last year, but I'm looking for another one to get on this project and/or ubuntu touch

I admire your dedication
[Galaxy Note 4 General] edp17:
OTA update to 4.1 is ready.

The only downside I found so far is that the wifi keeps forgetting the password after every reboot. (The solution that worked in previous releases, just doesn't work. I am working on the fix.)

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:

OTA 4.0 to 4.1

Boot into sfos, enable developer mode and set a password

Connect the phone to a wifi network (for downloading packages)

From this point, we will work on the PC, leave the phone connected.

Connect the phone to a PC, open a console and on the PC run (enter the password when you prompted):

ssh nemo@192.168.2.15

Switch user to root (enter the password when you prompted):

devel-su

Check repos:

ssu lr

Disable all repos, except: apps, hotfixes, jolla:

ssu dr <repo_name>

Add/modify adaptation-community-common repo:

ssu ar adaptation-community-common http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_4.1.0.24/

Add/modify adaptation-community repo:

ssu ar adaptation-community http://repo.merproject.org/obs/nemo:/testing:/hw:/samsung:/treltexx/sailfishos_4.1.0.24/

In case you have the mousetracker repo

ssu ar mousetracker http://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_4.1.0.24/

make sure that both adaptation-community-common and adaptation-community are enabled and you do not have duplications (command 'ssu er <name>' enables the given repo)

Put the device in release mode:

ssu release 4.1.0.24

Refresh packages:

pkcon refresh

Upgrade the system:

version --dup

Then reboot:

reboot

GPS and Bluetooth should work out of the box. Plus you don't need to flash the kernel either.

Important!

After the boot, start the terminal. If you get errors like "ld.so: object '/usr/lib/libpreloadpatchmanager.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.", then you need to clear content of /etc/ld.so.preload

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

Good luck!
[Galaxy Note 4 General] w41ru5:
how to install 4.1, please? only by OTA?

or I have to start from first page?

thanks
[Galaxy Note 4 General] edp17:
Yes, I made 4.1 available only as an OTA upgrade. (I can give you the .zip file for a fresh install but there might be problem with the camera.)
[Galaxy Note 4 General] w41ru5:
thank you

I'm waiting for the phone, it's shipped from a friend and as soon as I have it, I'll ping you here, if that's alright

I saw camera has issues only with video recording, no biggie for me
[Galaxy Note 4 General] edp17:
I've uploaded the image for you. It is available at the Download section on the main page.

Don't forget, if you install directly, the default user will be 'defaultuser' rather than 'nemo'.
[Galaxy Note 4 General] w41ru5:
thank you
[Galaxy Note 4 General] w41ru5:
error 7 even with the assert line deleted

interesting that the v 3.3.0.16 was installed - but was sooooo slow

and could not manage to connect via wifi (maybe it's me as noob :)

so there's no difference between the update scripts in both versions 3 and 4 with the exception of the name of the tar (3.3.0.... and 4.1....)

also, why did you insert the boot.img (I believe it's the kernel) twice in the zip? once is standalone hybris img and then also in the sailfish tar? no criticism at all, I'm interested to learn

thanks
[Galaxy Note 4 General] edp17:
Assert line deleted? How do you mean this? Have you modified the content of .zip file?

What TWRP version did you use? On other devices I have got that error 7 when used a too old or too new version of TWRP. I use version 2.8.7.

The other question, have you flashed the LoS image first then (without rebooting) the SFOS?

I have not inserted the boot.img twice, this is how the process creates the installable .zip file. However, I have checked that zip file and there is a hybris-boot.img in there and there is no other in the .tar.bz2 file, so I am not sure where you did find it twice.

I recommend you to restore an backup and start over with formatting everything except the external SD card.
[Galaxy Note 4 General] w41ru5:
OK, will try again.

TWRP is the latest, 3.5.2.9, but it was my intention to get 2.8.7.

Normally error 7 is from not recognizing the correct device from build prop.

About the hybris img, check the pictures.

It seems that the installation is OK on version 3, version 4 I couldn't install.

After installing v3 and setup, I've connected to internet via Wi-Fi, all ok, but couldn't create a Jolla account. I've created the account with another device, after that I've tried to connect with settings account etc in order to get the v4 via OTA, couldn't connect with existing account credentials. No connection message. Weird, since the browser works.

I'll try to install twrp 2.8.7 and give it a go as you said.

Thanks for your patience 😅
[Galaxy Note 4 General] w41ru5:
done, everything looks ok now

many, many thanks!
[Galaxy Note 4 General] edp17:
Good. I am glad it worked. Newer TWRPs sometimes cannot correctly recognize these old devices. Have you installed fresh or OTA updated?
[Galaxy Note 4 General] w41ru5:
v4, the one you added as OTA in the first post.
[Galaxy Note 4 General] edp17:
Waydroid on the Galaxy Note4 (treltexx) port under SFOS4.1

Instruction is coming soon...
[Galaxy Note 4 General] edp17:
I've simplified the install of waydroid. Instruction has been updated.
[Galaxy Note 4 General] pzoe:
[root@GalaxyNote4 nemo]# waydroid init

python3: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
[Galaxy Note 4 General] pzoe:
[root@GalaxyNote4 lib]# ln -s libssl.so.1.0.2o+git5 libssl.so.1.0.0

[root@GalaxyNote4 lib]# ls -l libssl*

lrwxrwxrwx 1 root root 21 Nov 16 20:41 libssl.so.1.0.0 -> libssl.so.1.0.2o+git5

-rwxr-xr-x 1 root root 264012 Apr 9 2021 libssl.so.1.0.2o+git5

lrwxrwxrwx 1 root root 21 Apr 9 2021 libssl.so.1.1 -> libssl.so.1.1.1h+git1

-rwxr-xr-x 1 root root 353284 Apr 9 2021 libssl.so.1.1.1h+git1

lrwxrwxrwx 1 root root 21 Sep 16 2020 libssl.so.10 -> libssl.so.1.0.2o+git5

-rwxr-xr-x 1 root root 224812 Apr 9 2021 libssl3.so

[root@GalaxyNote4 lib]# ls -l libcrypto*

lrwxrwxrwx 1 root root 24 Apr 9 2021 libcrypto.so.1.1 -> libcrypto.so.1.1.1h+git1

-rwxr-xr-x 1 root root 1794884 Apr 9 2021 libcrypto.so.1.1.1h+git1

[root@GalaxyNote4 lib]# ln -s libcrypto.so.1.1.1h+git1 libcrypto.so.1.0.0

By this point I have symlinks established for all needed libraries

[root@GalaxyNote4 lib]# waydroid init

Traceback (most recent call last):

File "/usr/bin/waydroid", line 6, in <module>

import tools

File "/opt/waydroid/tools/__init__.py", line 9, in <module>

from . import actions

File "/opt/waydroid/tools/actions/__init__.py", line 3, in <module>

from tools.actions.initializer import init

File "/opt/waydroid/tools/actions/initializer.py", line 5, in <module>

from tools import helpers

File "/opt/waydroid/tools/helpers/__init__.py", line 5, in <module>

import tools.helpers.props

File "/opt/waydroid/tools/helpers/props.py", line 7, in <module>

import tools.helpers.run

File "/opt/waydroid/tools/helpers/run.py", line 4, in <module>

import tools.helpers.run_core

File "/opt/waydroid/tools/helpers/run_core.py", line 5, in <module>

import selectors

ImportError: No module named 'selectors'
[Galaxy Note 4 General] edp17:
(Interesting, I have done all those steps on my device. Although, there could be some residue from the previous manual install that I forgot to remove.)

I don't think all this magic with the symlinks is necessary. What you need to find out instead is the missing package(s) and install it(them).

On my device the following packages are installed:

openssl-libs (I think this has that libssl* stuff you mentioned)

libblockdev-crypto

libsailfishcrypto

libsailfishcryptopluginapi

These last three could be related to the libcrypto* issue.

Regarding the waydroid error, into /opt you can try to clone the latest waydroid from https://github.com/waydroid/waydroid.

(like:

mv /opt/waydroid /opt/waydroid_old

cd /opt

git clone https://github.com/waydroid/waydroid

(you might need to install git (as root): pkcon install git)

Then try to run the waydroid init
[Galaxy Note 4 General] pzoe:
I tried this method and still the error persists.

All the libs mentioned above are installed already.

Should I remove symlinks too?
[Galaxy Note 4 General] edp17:
I haven't needed to create symlinks manually, so I guess, yes, you should remove them. (Please use the unlink command to avoid deletion of the original file.)

Here is the list of all libssl* files I do have on my device: (Please note that I do have a Debian Sid desktop distro installed in a container)

[nemo@GalaxyNote4 ~]$ locate libssl

/home/.lxc/Debian/usr/lib/arm-linux-gnueabihf/libssl.so.1.1

/home/.lxc/Debian/usr/lib/arm-linux-gnueabihf/libssl3.so

/home/.lxc/Debian/usr/share/doc/libssl1.1

/home/.lxc/Debian/usr/share/doc/libssl1.1/NEWS.Debian.gz

/home/.lxc/Debian/usr/share/doc/libssl1.1/changelog.Debian.gz

/home/.lxc/Debian/usr/share/doc/libssl1.1/changelog.gz

/home/.lxc/Debian/usr/share/doc/libssl1.1/copyright

/home/.lxc/Debian/usr/share/perl-openssl-defaults/get-libssl-abi

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.list

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.md5sums

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.postinst

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.postrm

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.shlibs

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.symbols

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.templates

/home/.lxc/Debian/var/lib/dpkg/info/libssl1.1:armhf.triggers

/home/nemo/waydroid-vanilla/data/app/com.noctuasoftware.stellarium_plus-X0ejPSX7LJyGr8LjAvvRPg==/lib/arm/libssl_1_1.so

/home/waydroid/data/app/com.noctuasoftware.stellarium_plus-X0ejPSX7LJyGr8LjAvvRPg==/lib/arm/libssl_1_1.so

/home/waydroid/rootfs/system/apex/com.android.conscrypt/lib/libssl.so

/home/waydroid/rootfs/system/lib/libssl.so

/home/waydroid/rootfs/system/lib/vndk-28/libssl.so

/home/waydroid/rootfs/system/lib/vndk-29/libssl.so

/system/lib/libssl.so

/usr/lib/libssl.so.1.0.2o+git5

/usr/lib/libssl.so.1.1

/usr/lib/libssl.so.1.1.1h+git1

/usr/lib/libssl.so.10

/usr/lib/libssl3.so

/usr/libexec/droid-hybris/system/lib/libssl.so

If you don't have those I highlighted in blue (the other are related to the Debian distro and Stellarium app), then I think there is a problem with your installation.

What SFOS version are you using on your device? How that is installed (as standalone or OTA from an older release)?