[ROM][GNU/Linux][OTA][3.4.0.24] Sailfish OS for OnePlus 5

Search This thread

deathmist

Senior Member
Jun 2, 2019
65
186
Does it have to be lineage for bootswitcher to work? Can I use pixel experience?
Boot switcher doesn't care what ROM you use, Sailfish OS on the other hand does. The HAL (including kernel) is built upon the LineageOS source tree w/ patches, and using something else I cannot guarantee anything to work as both /system and /vendor Android partitions are shared between the operating systems.
Keep in mind that if you try right now anyway the Android ROM version cannot be above 8 (Oreo) due to the older base used. I'll do a proper rebase on Pie/Q whenever everything works like currently (and when I have time to debug and fix the obscure issues specific to that newer base)
 

Js3peO

New member
Jul 7, 2019
3
0
TWRP

Hello, I have a quick question. I installed the sailfish os, but now I want to return to my old ROM but I can not find out how to get into TWRP from sailfish os. My old ROM had an advanced reboot that let me reboot into recovery. I try to do it with the volume buttons but that just returns a blank screen.

EDIT: I figured it out, I had the wrong TWRP version
 
Last edited:

Sc4r3Crow

Senior Member
May 18, 2017
1,074
195
Hello, I have a quick question. I installed the sailfish os, but now I want to return to my old ROM but I can not find out how to get into TWRP from sailfish os. My old ROM had an advanced reboot that let me reboot into recovery. I try to do it with the volume buttons but that just returns a blank screen.

EDIT: I figured it out, I had the wrong TWRP version

Turn your device completely off, wait some seconds and then press & hold the corresponding buttons simulationsly to get in recovery :good:
 

deathmist

Senior Member
Jun 2, 2019
65
186
Pie rebase

Good news: I started messing around with 16.0 Pie base and cellular data during my SFOS 3.3 upgrade testing just now, and cellular data works on the Pie base using dummy_netd!
Expect a base upgrade from 15.1 Oreo -> 16.0 Pie on the next SFOS upgrade as well unless I find something else of importance that is still broken :fingers-crossed:
I'll give more details on the upgrade process when we get there but expect a full /data wipe at least -> prepare to backup all your stuff! :)
 

boosterjuan

Member
Jul 10, 2013
36
8
Mexico City
when i try to switch to luneage os, wifi doesn't work and i've got this message saying "bluetooth keps failing" i try to format data, ise the two provided rom, i have no success, just can't use Android because of that problem.
 

decon4

New member
Oct 29, 2019
2
0
Thanks for the build!
I decided to do a clean install from oxygen OS 9.0.11 and had some problems trying to flash LineageOS 16.0 from twrp where is got error 7. It turned out to be a problem with twrp-3.3.1-x_blu_spark_v9.110_treble-op5_op5t.img but I managed to flash Lineage using twrp-3.3.1-0-20190713-codeworkx-cheeseburger.img instead.
 

deathmist

Senior Member
Jun 2, 2019
65
186
Fingerprint sensor enablement for the project

Yep, it has happened; the fingerprint sensor is now fully functional and integrated into Sailfish OS thanks to community efforts!
New users don't have to do anything special as I've updated the SFOS 3.3 zip you can download straight from the porters CI!
Existing (SFOS 3.3) users however have to run the following in a terminal to get the same enablement:
Code:
devel-su
# enter your SSH password from Settings > Developer tools
zypper ref -f
zypper dup
# choose solution 1 to deinstall conflicting encsfa packages
reboot
After this you can just head to Settings > Device lock > Add fingerprint and follow the instructions to enroll new fingerprints :)

NOTE: Keep in mind simply pressing on the sensor once when the screen is off will just wake up the device to the password prompt and you have to press your finger down AGAIN to actually identify with a saved fingerprint.
 
  • Like
Reactions: tmotard and Aaron26

Mister_Magister

Senior Member
Jun 3, 2013
1,195
1,261
Is it possible to upgrade to latest SFOS release 3.4 using OTA or do you plan to build new images?

Should be fine, i updated two of my ports that were on 3.3 without changing single package and they're working great. In case you don't trust me look at my signature or into thanks to section ;D
 

decon4

New member
Oct 29, 2019
2
0
Upgrading to 3.4.0.24 went well except for camera app which no longer can take pictures. Phone calls and sms work. Had to reinstall storeman but it seems to work after that. Browser is no longer a pain to use. ;)
 

deathmist

Senior Member
Jun 2, 2019
65
186
Upgrading to 3.4.0.24 went well except for camera app which no longer can take pictures. Phone calls and sms work. Had to reinstall storeman but it seems to work after that. Browser is no longer a pain to use. ;)

Interesting that it worked at all in the first place :good:
The thing is we (porters) don't have update repos for SFOS 3.4 on OBS yet so I can't exactly help either if anything doesn't work properly on that release.
I'll make an update post here when that happens and I've fixed up the issues that upgrading to that release may have caused.
 

deathmist

Senior Member
Jun 2, 2019
65
186
https://imagebin.ca/v/5cuzDur4aul6
Invalid zip file format.
Can you please upload the .img files so that i can flash them directly from fastboot?

Please refer to the original post and step 10 from the install instructions, you need to open the artifacts zip and flash the zip inside that archive. I don't think there's anything I can do about how the CI packages build artifacts.
Also there's no .img files in that zip as the rootfs archive gets extracted to a directory under /data, so that's impossible.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    This work is released under the permissive MIT license.

    6lIuAZv.png


    (click above image for higher resolution and quality images!)

    Code:
    #include <std_disclaimer.h>
    /*
    * I am NOT responsible for data loss, you getting fired because the alarm app failed or if you brick
    * your device. Please do some research if you have any concerns about features included in this OS
    * port before flashing! YOU are choosing to do these modifications, and if you point the finger at me
    * for messing up your device, I will laugh at you.
    * BOOM goes the dynamite!
    */

    Hello, fellow XDA developers & users alike!
    I think it's been long enough that we've not had alternative non-Android operating systems in a usable state for the popular OnePlus 5* devices, so here is a Sailfish OS port after over 6 months in development!

    I'd really appreciate it if you give feedback and report bugs so I can attempt to fix them as best I can 🤞



    Features
    • Slick and clean Sailfish OS UI/UX
    • Fully gesture driven navigation of the OS (physical back buttons may or may not work depending on the app)
    • Ambiences: a combination of system background, primary UI colors, sounds & volume levels
    • Sleep mode gestures e.g. double-tap to wake, music controls, 'V' for toggling flashlight etc
    • Ability to control configurable ambiences with the notification slider
    • Independent & alternative OS not based on Android (droid base is only used for drivers & HAL in SFOS)
    • Run regular GNU/Linux (armhf) tools and utilities natively out of the box from Jolla, OpenRepos, other custom repositories or direct binary format
    • Privacy-first OS with no spyware or bloatware pre-installed
    • Dual-booting between LineageOS & Sailfish OS with a simple zip flash in recovery (boot-switcher, linked below)
    • OS version OTAs, look at the merproject wiki page (see 'OTA updates' below)
    • A stable hardware adaptation (port) with basically everything working, but please also read about the problems right below
    • And more to explore...


    Problems
    • No Android apps (APK) will run inside Sailfish OS as is the norm with community ports; you can just dual-boot with LineageOS (see FAQ below)
    • There is no VoLTE / VoWiFi support in SFOS (see FAQ below)
    • Even though NFC works, it's implementation is quite basic in Sailfish OS currently
    • Produced video recordings from the camera are unusable right now due to corruption of the beginning in recordings & artifacts when moving even slightly
    • Flashlight misbehaves for picture taking by taking too long to activate and causing nearly pitch black images (it also turns on/off rapidly a few times when disabling)
    • Some audio does not get routed properly to/from (Bluetooth) headsets
    • Sailfish OS Developer mode (SSH via USB cable) doesn't work
    • Rarely waking up from sleep mode can take a long time (up to about 15 seconds)


    How to install
    1. Backup all your data from the device to a computer
    2. Download Pie Firmware 9.0.11, TWRP 3.4.x image, the LineageOS 16.0 base ROM & a Sailfish OS release
    3. Install device firmware version 9.0.11 (not the ROM!)
    4. Flash TWRP 3.4.x as your recovery
    5. Reformat /data to ext4 and check it for issues
    6. Reboot to recovery
    7. Wipe cache & dalvik
    8. Flash LineageOS 16.0
    9. Flash anything else you normally flash for Android e.g. GApps, Magisk, no dm_verity etc
    10. Flash Sailfish OS (the zip that contains rootfs.tar.bz2) from inside CI artifacts archive
    11. Reboot and enjoy!
    You can also flash my boot-switcher zip (or switch between hybris-boot and droid-boot images created on /sdcard) afterwards for simple dual-booting of the 2 operating systems!


    Links & source
    sailfishos-oneplus5: All project repos & source
    important: Info and detailed guides about flashing, self-building etc
    android_kernel_oneplus_msm8998: The used kernel source
    sailfishos.org: General info about the OS as well as contributing, translation, app development etc



    Changelog
    wiki.merproject.org: Place with general info about the port status, OTAs etc
    droid-config commits: Stuff modified on the Sailfish OS side



    OTA updates
    See "OTA (Over-the-Air) update" section under the libhybris adaptation wiki page.


    Special thanks to
    @kimmoli for gesture-daemon & triambience
    @nathanchance for maintaining the OP5 linux-stable merged kernel tree
    @Mister_Magister, mal, r0kk3rz, @rinigus, @PiggZ, spiiroin, jusa, vknecht, NotKit and everyone else at #sailfishos-porters
    The port was made possible thanks to you all!



    FAQ
    What does "SFOS" mean?
    Sailfish OS; it's simply a common abbreviation.

    Can I run [insert name here] Android app in Sailfish OS?
    If there is no currently maintained client or similar app in the Jolla Store or (my preference) OpenRepos, then probably not. I may look into bringing Android app support via Anbox or similar project much later on; no ETAs.

    Does VoLTE or VoWiFi work in Sailfish OS?
    As of SFOS 3.4.0, these are still not implemented, but should be coming later in perhaps Sailfish OS 4.

    How can I skip the SFOS beginner tutorial?
    Tap each corner of the screen once starting from top-left going clockwise.

    I found a bug, what can I do?
    See "Report bugs" section under the libhybris adaptation wiki page.

    XDA:DevDB Information
    [ROM][GNU/Linux][OTA][3.4.0.24] Sailfish OS for OnePlus 5, ROM for the OnePlus 5

    Contributors
    deathmist
    Source Code: https://github.com/sailfishos-oneplus5

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x
    ROM Firmware Required: 9.0.11 (Pie)
    Based On: LineageOS 16.0

    Version Information
    Status:
    Stable
    Current Stable Version: 3.4.0.24 (Pallas-Yllästunturi)

    Created 2020-01-17
    Last Updated 2020-12-10
    10
    Pie rebase

    Good news: I started messing around with 16.0 Pie base and cellular data during my SFOS 3.3 upgrade testing just now, and cellular data works on the Pie base using dummy_netd!
    Expect a base upgrade from 15.1 Oreo -> 16.0 Pie on the next SFOS upgrade as well unless I find something else of importance that is still broken :fingers-crossed:
    I'll give more details on the upgrade process when we get there but expect a full /data wipe at least -> prepare to backup all your stuff! :)
    7
    Upgrade to Sailfish OS 3.3.0 (Rokua)

    Hello everyone!

    The port has now been upgraded to SFOS 3.3.0 and HAL components are now all based on Android 9 Pie! :cool:
    Check out the details of this release here!
    3
    Upgrade to Sailfish OS 3.4.0 (Pallas-Yllästunturi)

    Hello everyone!

    The port has now been upgraded to SFOS 3.4.0! :)
    Check out the details of this release here!
    2
    Hi! Does this port will be updated to Sailfish 4?
    Yes, and I've already successfully updated & booted a local aarch64 SFOS 4.0.1.48 build. I'm waiting for OBS to get aarch64 target support (we'll see how long that whole thing will last) and I'm also curious how an upgrade from the previous armv7hl builds will go.

    Additionally I've been dabbling with upgrading the Hybris HAL base from Pie (16.0) to Q (17.1), but I've not yet been successful. When I have more time in the near future I'll certainly spend some more time on it.