[Galaxy Note 4 General] edp17:
OTA update to 4.2 is ready.

The problem with wifi (keeps forgetting the password after every boot) remains. There is a workaround below.

Here is the instruction on what to do:

OTA 4.1 to 4.2

!IMPORTANT!

If you are on the kernel with waydroid support (hybris-boot-sfos42-06-waydroid.img), first you must flash the original cm14.1 kernel (hybris-boot-sfos42-01.img) otherwise the OTA update will break the system!

Unapply and remove all patches

Uninstall patchmanager

Reboot (this is required after patchmanager is removed, otherwise you will need to restart lots of services)

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.

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 https://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_4.2.0.21/

Add/modify adaptation-community-treltexx repo:

ssu ar adaptation-community-treltexx https://repo.sailfishos.org/obs/nemo:/testing:/hw:/samsung:/treltexx/sailfishos_4.2.0.21/

In case you have the mousetracker repo, disable it as can be added after the update

ssu dr mousetracker

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

if you have waydroid installed and chum repo added, disable the chum repo because its waydroid packages will interfere with the installed ones. (The new waydroid packages will be updated from the chum repo and will break the waydroid installation.)

ssu dr chum

Put the device in release mode:

ssu release 4.2.0.21

Refresh packages:

pkcon refresh

Upgrade the system:

version --dup

Then reboot:

reboot

Once rebooted into the new system try all functions and reboot at least once to try if it still starts the system correctly. If everything is okay, you can add back the chum and mousetracker repos:

ssu ar chum https://repo.sailfishos.org/obs/sailfishos:/chum/4.2.0.21_armv7hl/

ssu er chum

ssu ar mousetracker https://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_4.2.0.21/

ssu er mousetracker

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

Workaround for the wifi issue:

This is a bit hacky but you need to do the hacky bit only once.

There is a script provided to turn wifi manually on/off from a command line or Shellex. The script is located in /usr/bin/droid/wifi-on.sh It has one parameter on or off (e.g.: wifi-on.sh on)

To make it work you need to enter your home network name, password and last IP address into the /usr/bin/droid/wifi-conf file.

In addition (and this is the hacky part) you need to do the following (only once):

turn wifi on and connect to the home network

turn wifi off

as root, go into ~/.local/share/system/privileged/connman

if you have multiple wifi_*_*_managed_psk folders in the, keep only one and delete the rest

rename the kept wifi_*_*_managed_psk folder to tmp_wifi

go into the tmp_wifi folder and edit the settings file

Its first line will be the same as the original file name was like [wifi_*_*_managed_psk]

rename the text in [] to match with the new name, so needs to be [tmp_wifi] (in the file you'll see the network name, password and last IP address that you need to add into the wifi.conf file)

Done. :-D From now if you call the `wifi-on.sh on` script as root, it will connect to the network defined in wifi.conf (you don't need to toggle the wifi button from the menu)

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

Good luck!