yashsingh1/xdaforums huggingface dataset:
[OnePlus X Android Development] stef204:
Edit to my post #821 above:

Installed TWRP 3.1.1 and LOS.

Playing around with LOS--which is quite an improvement over stock Android, due to being very minimalistic, no bloatware, and it seems, significantly more secure sue to Privacy Guard, SELinux, etc.

I would say a vast improvement over OOS (or any stock Android, just on that account.)

Having said that, after 4 or 5 years of Meego and Maemo--on N900 and N9, ready to go for SFOS.

I think I've learned enough about adb, fastboot, etc., and flashing this onyx that I can probably manage.

Made backup on sdcard using TWRP so should be ok. And there is the sideload option if worse comes to worst.

Have to figure out the proper sequence, which I guess should be something like:

- Make backup using TWRP (done)

- Flash stock recovery for OOS 2.2.3

- Flash OOS 2.2.3

- Reboot to check everything is OK?

- Flash custom TWRP (as explained here)

- Flash CM 12-1 stable

- Flash SFOS beta 5

- Reboot

If I've missed anything, or there are specific points which I need to be particularly careful of, please let me know.
[OnePlus X Android Development] Koiruus:
There is no drivers available for Sailfish. Sailfish uses so-called libhybris, which allows the os to use Android drivers etc. That's why there must be Android system preinstalled. And it has to be that CM12.1, can't really explain why but so it is.

The newest TWRP doesn't work with older CM and Sailfish. You should use the new one when flashing OOS 2.2.3 over 3.x.x and then install that custom one to flash CM and then Sailfish. I tried various versions of TWRP, and only one managed to flash CM. Didn't break anything while testing though; just did a recovery when flashing crashed. Here is an older post of mine https://xdaforums.com/showpost.php?p=71083691&postcount=710

It should work out of the box.

Root needs to be enabled from Developer tools (in Settings). Simply tap enable, and set your root password. It will automagically download terminal app, and then devel-su gives you root access.
[OnePlus X Android Development] rinigus:
Hi and welcome to ONYX-SFOS users! I'll try to reply to some of your questions.

* you have to flash CM since the port is based on CM. There are few things that SFOS uses under the hood from Android layer and, as many other SFOS ports, onyx uses CM as a base.

* I have TWRP 3.0.2-0. It was a current TWRP at the time when I got my onyx and flushed it to SFOS. I would suggest to try with the current TWRP and roll back if it doesn't work. However, it looks to be conflicting with what [MENTION=8059606]Koiruus[/MENTION] is saying. Note that I haven't looked deeply into it, maybe my device + my version of TWRP managed to do the trick?

Other than that, your plan seems to be fine. Good luck!
[OnePlus X Android Development] stef204:
@ Koiruus ; @ rinigus ; @ explit

Guys, thanks a million for your helpful feedback. I think I should be fine.

I don't want to take too much risk so I will follow Koiruus' advice and flash the custom TWRP before proceeding with CM 12-1 and SFOS.

Thanks to all.

PS. Just to confirm: SFOS port works properly/can handle Dual SIM's, no glitches, correct?
[OnePlus X Android Development] Felttimies:
Hey man, u just saved my summer holiday! My "new" opx now runs with SFOS!!! Big thx for you, u rock!!!
[OnePlus X Android Development] Koiruus:
Haven't tried multisim, but it has been reported to work in this thread. There is some bugs, which also can be found from this thread. To mention the biggest ones: Remaining battery % bugs sometimes, but can be fixed temporarily by charging. The native browser crashes sometimes at start. Bluetooth seems to have some issues, as I can't use bt speakers with my opx but also there is people using bt just fine. I have encountered just some UI crashes, but no accidental reboots etc.

Awesome!
[OnePlus X Android Development] ferlanero:
Hey guys, do you remember this issue with the official Sailfish web browser? This summer, with more time, I have investigated how to skip this crashes and I have found some interesting things.

The Sailfish Web Browser randomly crashes in the OnePlus X Sailfish port when the mobile is connected to any network (wifi or gsm, doesn't matter). If you enable the flight mode and start the web browser, this doesn't crash or at least with much less frequency. So, starting from this point, I have found a workaround to avoid these initial crashes.

For the time being, it is a very rudimentary method, but I want to share you it, because maybe it shows the developers some light to fix this problem. This workaround not only fix the initial crash problem but it speeds up the time start of the web browser radically (x1000).

If you create a bash script which enables the flight mode, launches the web browser and then disables the flight mode, you achieve all the benefits I told you before:

mcetool --disable-radio=master ; invoker -s --type=browser -G /usr/bin/sailfish-browser & sleep 4 && mcetool --enable-radio=master

As I said, it's a very rudimentary method to avoid this problem but it works. I hope it helps you too.
[OnePlus X Android Development] Koiruus:
Could you give some instructions how to do this? I mean, I think I'm able to create the script and run it from terminal, but is it possible to create a shortcut to apple drawer for it? Or even add it to browser shortcut?
[OnePlus X Android Development] ferlanero:
I could make an installable rpm which puts the needed shortcuts to launch the web browser with this options in your app drawer if you want. I think it's the fastest way and you could investigate further if you want . Just let me know
[OnePlus X Android Development] Koiruus:
That sounds great! Could you do that?
[OnePlus X Android Development] ferlanero:
Sure. When I have time I'll make the rpm with the workaround ;)
[OnePlus X Android Development] ferlanero:
As I promised you, here you have the installable RPM with the script and further modifications for the properly web browser starts. As I already mentioned, it not fully solved all the issues, but it does a great work minimizing start crashes and speeding up the time start of the web browser radically.

But take in mind by installing this mod, I'm not responsible of system crashes, data loss of any other problems that may occur. I always recommend a backup before system modification.

Anyway, happy hacking! ;)
[OnePlus X Android Development] Koiruus:
Thanks. I tried it. I started the browser three times in a row. The second try crashed the browser. But maybe I was just too fast killing and restarting the app. Also seems like Sailfish always queries PIN code, when airplane mode is switched off. Not a big problem, but slowens the app starting a little. Anyway, thanks for bringing this up!
[OnePlus X Android Development] lfc222222:
Kimmoli, 2.1.1 was released to all a few days ago. Any plans to update onyx?

Jolla has announced 2.1.2 early access (https://together.jolla.com/question/168137/release-notes-212-kiiminkijoki).
[OnePlus X Android Development] John944S2:
I am afraid Kimmoli is still on his summer vacation. Problem is, he is missing Sailfish SDK there ;)

https://twitter.com/likimmo
[OnePlus X Android Development] Tiggez:
OTA Update to 2.1.1

Hi,

I am wondering if I can update to 2.1.1 per OTA, with the mer repos staying at 2.0.11.

Without running in a dependency hell?

Thanks to Kimmo and all the supporters/moderators for a very nice system and the provided support.

Tiggez
[OnePlus X Android Development] ferlanero:
Does anyone have tried that update? it's safe to update to 2.1.1?
[OnePlus X Android Development] lfc222222:
I have not, and I suggest you do not try it yourself unless you are willing to deal with a bricked device. There is some evidence (cannot recall which thread tho) that doing an update not customized for onyx by kimmoli is risky.
[OnePlus X Android Development] bundyo:
Yep - I did update some time back and it wasn't pretty :) Couldn't downgrade this time, as it couldn't boot to ssh, so I had to reflash.
[OnePlus X Android Development] ferlanero:
Good to know. Thank you very much!!
[OnePlus X Android Development] Kermit13:
Hi kimmoli,

do you have plans to go forward with the OPX ? I´m still happy with it and hoping to get one day a working BT connection with my car kit.

Wouldn´t like to go for the Xperia X...

Thanks

Frank
[OnePlus X Android Development] flanker_:
I want to ask the same.

I can even imagine little donation for you to continue with onyx sailfish os project.

Me myself have no problems with little contribution for you ...
[OnePlus X Android Development] nfs22:
How much working hour it takes?

Dear taaeem,

first i want to say thank you for all the work you invested in bringing SFOS to the X. For me you did a great job! The X seems to be the best running handset for SFOS right now. I couldn't imagine how much time you spend to port Sailfish to this piece of hardware. I'm willing to give as much support as possible to you for keep on with this project. I'm pretty sure that with support of the community this handset could run for years.

I want to ask what you think would be necessary to keep this project alive and to step ahead with it? If you do not intend to go on with the project what skill a successor will need to proceed? Can you pass your knowledge to a successor? Do you know somebody who could possibly take over the project?

I'm willing to pay a monthly rate to keep this device supported and could also imagine to buy another device for better developing if necessary.

Best regards

André
[OnePlus X Android Development] John944S2:
Guys, I think we're in serious trouble as it seems we lost our maintainers :crying:.

At the moment I really don't know what to do about it especially because there is no info from [MENTION=1082346]kimmoli[/MENTION] or [MENTION=245914]taa[/MENTION]em. It would at least be nice to hear from one of the two if they are really out of it.

At the moment SFOS on the OPX is running really nice and stable but in the future there will be problems.

I don't know, I am quite occupied with my own app development also I am not very much into porting. Maybe with a little help from the porters community it would be possible to at least make a new SFOS version for OPX?

Is there someone who has experience with porting and would provide some help?
[OnePlus X Android Development] kimmoli:
I have been really busy at day job, but it looks that i have some free time during december, and i'm catching up then.
[OnePlus X Android Development] ashwany.yadav:
Please continue this ROM. Because I love this rom.
[OnePlus X Android Development] CamoGeko:
Thanks for providing such a cool ROM for the Onyx! I will definitely try it at some point.
[OnePlus X Android Development] Koiruus:
Anyone recognized battery drain after using WIFI hotspot? I mean, of course tethering drains the battery, but looks like it doesn't switch off correctly as the draining continues after switching the hotspot off. A reboot is needed after using wifi hotspot to prevent additional draining.
[OnePlus X Android Development] flanker_:
Exactly. Same here.
[OnePlus X Android Development] Tiggez:
I assume the ROM is dead?

It seems Kimmoli did not find the time or motivation.

It was great as long as is lasted. Thanks for the great work.

But I have to move on, the security bugs are way to serious to be ignored.

Perhaps, when my OPX isn't my daily driver anymore I will try to built a fresh Sailfish for it.

Tiggez
[OnePlus X Android Development] rinigus:
I don't think its dead. Kimmoli seems to be fairly busy on a day job and got sick during the time when he was planning to work on OPX. I am sure that [MENTION=1082346]kimmoli[/MENTION] will make the statement if he cannot maintain it anymore. Until that, we just have to either wait or help him out.

BTW, is it still not possible to have dual-boot on OPX? That would simplify SFOS updates development for those who are using OPX as a daily SFOS driver (would allow to test new SFOS version before release while having released one for daily use).
[OnePlus X Android Development] Tiggez:
I did not want to blame anyone. I really appreciated the work [MENTION=1082346]kimmoli[/MENTION] has done.

But nevertheless, we have a serious situation here.

We are using a Kernel which has multiple security holes in it. And we are using a bluetooth implementation which is completely broken.

As far as I know is there no documentation or Git access apart from the kickstarter file and the repositories.

Which is kind of sad, because Kimmoli has already done, all the difficult parts. He has put a lot of effort and knowledge in it and has fought heroically a lot of bugs :D

But when there is no way to maintain the System we are stuck in a dead end here.

One person just cannot do all the work, when it is just a hobby.

Best regards

Tiggez
[OnePlus X Android Development] flanker_:
Until the software, hardware environment and structure of every phone change and until you can install any OS on any phone as easily as on PCs, you will need OS to be adapted to exact type of phone.

This work is done by every manufacturers, third party groups (sometimes they do it for profit) or by private persons - porters.

Porters are mostly enthusiasts, whose do this not for profit, because their skills, because they have time, because it is fun... Again, they are making it mostly for free.

Users have only several choices. You can use manufacturers own devices with their adapted OSs - maintained at least for couple of years, you can use third party ports which "last" probably shorter or do port for your exact phone type by your own.

That's all.
[OnePlus X Android Development] rinigus:
Well, there is a lot what you can do as a hobby. State is much better, I think. The port is at OBS which means that all build is documented over there, as all other ports with OTA are. As for BT/kernel updates, cannot comment on how "easy" its to merge them. I guess we need to catch up with the current SFOS version - no idea whether BT stack is changed on ports.
[OnePlus X Android Development] lfc222222:
rinigus, I posted this at the time, but no one responded.

It looks like a possible way forward for MR but I’m no expert...
[OnePlus X Android Development] rinigus:
Hi, this looks to be patching ROM, which maybe is not a very good idea for SFOS :). But thanks for posting the link
[OnePlus X Android Development] Actura:
LongLiveRem might know something about this

cidxtc has the tutorial for dual boot too. Here.

In theory, these could be applicable for onyx too.

I guess mido is like the successor of onyx (OnePlus X)

...for sailfish os.

There are two members that has successfully boot multiboot on mido's sailfish port (and they have two different methods).

____

For the developer of onyx's port, keep it going! I wish u well there.
[OnePlus X Android Development] xsetiadi:
Just found this on germany forums. Anyone was try this? Im want to try but my onyx was sold a year ago

sailfishmods.de/2016/12/oneplus-x-sailfish-os-inkl-sfdroid-installieren/
[OnePlus X Android Development] Kermit13:
don´t spend your time on... for playing yes but not usuable for a daily driver...
[OnePlus X Android Development] Wuwuwuwuwwu:
Is a release upgrade to 2.1.3.7 in progress or planned?
[OnePlus X Android Development] rinigus:
I did some intial work on getting 2.1.3.7 to onyx. With the help of kimmoli and mal, I managed to build the image and I am using it for about a month now. Kimmoli was planning to look into it when he'll find the time. Corresponding patches were submitted to github repos, with one of them still outstanding (https://github.com/mer-hybris/droid-config-onyx/pull/32).

The issues that are with the current version:

* OTA has to be enabled by building on OBS. I have not done that part yet, hopefully kimmoli can push it there.

* I had rarely observed camera not starting. If it occurs, it can be fixed by reboot. Although, if you booted and camera worked, I have never seen it stop working later. In total, probably happened 2-3 times during manic rebooting when working on keyboard plugin.

* Video recording has low volume for recorded voices.

Corresponding build instructions are at https://gist.github.com/rinigus/7fa2f6f9aebfa340d8496ec8f46d0e43 , which is forked from kimmoli's GIST.

To come back to your question - I would expect that its planned to upgrade.
[OnePlus X Android Development] Kermit13:
wow :) really good news... thanks a lot

didn't expect that this is so much work...
[OnePlus X Android Development] John944S2:
[MENTION=7078096]rinigus[/MENTION] it would be so cool if you would take over as the maintainer for SFOS onyx ports. After all you are a very active SFOS developer!

Sure kimmoli has much experience, but he does not seem to be interested in it at all.

If you would do this, you have my donation for sure!

Sadly I don't have very much experience with porting so I really can't help you.

I think the camera issue is not new, at least my OPX also does this since the first SFOS port version. OTA was never really working for onyx. I would consider the issues as not critical at all!

So why don't you release it as it is?
[OnePlus X Android Development] rinigus:
I am sure kimmoli has a lot of interest, just not enough time. He's done huge work on making this port so great, don't want to release something that is worse than it is now :) . And I remembered one more issue: lower volume of bluetooth sound output when compared to earlier version.

I will not be able to look into onyx this weekend - would like to finish few things with the predictive keyboard -, but maybe next one I can try to help kimmoli with the further improvements.
[OnePlus X Android Development] Alastal:
3rd version announced...

I have onyx as secondary mobile

I'll try this os after supporting new bootloader
[OnePlus X Android Development] nfs22:
good news

Dear rinigus,

this is real good news to my ears. I already thought that my beloved X is going to stay on SF 2.1.0.11 for ever. So thank you very much for all the work you spend to keep SF on our Onyx alive!

If i can assist you in any way feel free to tell me. Maybe it could be nice to pass your knowledge about porting SF to the X, maybe in a nice howto, to the community so that more people can try to work on it.

I think in general the X is a pretty nice handset and that we can use it for years if the development of the SF port stays vital. For that i think that the port should proceed to a more recent version of the underlying Android Base (cyanogen mod / lineage). That do you think would be necessary to switch to the latest lineage version 14.1 ?

Best regards

André
[OnePlus X Android Development] John944S2:
This is also what I think. I would prefer the OPX over all other SFOS alternatives including Xperia X. Reasons for that are:

- size/weight is completely unmatched for a 5" device

- AMOLED

- tri state switch

- gestures in standby mode (Xperia X does not even have double tap to wake:()

- spare parts available

- powerful CPU/GPU/RAM

By the way, [MENTION=7078096]rinigus[/MENTION] already provided a howto with porting instructions: https://gist.github.com/rinigus/7fa2f6f9aebfa340d8496ec8f46d0e43

This is why I am currently trying to get a second OPX to start playing with porting for it.
[OnePlus X Android Development] rinigus:
[MENTION=6685869]John944S2[/MENTION], Its a good idea to start joining the porters team. As you and others, I like onyx very much and didn't find any reason for moving over to Sony X. I prefer to develop and use native SFOS apps, using great port, like this one, pushes for it.

As for updates, I wouldn't worry about it. Kimmoli has done great job maintaining the port and it was relatively easy to make 2.1.3.7 build with his and others help. Have to polish it though, before release, if we can. See my howto, which has been forked from Kimmoli's docs and updated while I was working on it.

The newer base: I don't think it is needed if everything works. If it will happen that 12.1 is not supported by the latest hybris, then we could switch. But otherwise, I don't see any reasons for it. Folks who have been on Onyx longer and maintain it know better, its just my opinion. There was some mess with the bootloader, but I don't remember how / if its solved and whether there is need to support the newer bootloader as well.
[OnePlus X Android Development] smatkovi:
"old" bootloader the cyanogen mod uses, on which this sfos port is based and with an android version, made for this "old" bootloader. I use exactly the one used as a basis, because I know it is working. I tried several others but no success. also I found out sfos only works if it is in the internal partition, or the first, as far as I remember. it works but since opx doesn't support kernel execution, I forgot what that is, the kernel one wants to boot has to be flashed, which is done automatically and I think not many android versions are compatible with this and with the "old" bootloader.
[OnePlus X Android Development] nfs22:
Please tell me ...

- Who has already tried to create his own build based on the instruction from rinigus?

- Have there been some problems we should know about?

- How did you Flash the new release OTA or via recovery?

- What about the installed Software, reinstall necessary?

- Who want's to help keeping this port alive?
[OnePlus X Android Development] John944S2:
- I am preparing to do that, I had to get another phone because I don't wanted to do this on my daily driver.

- I installed it via recovery. As far as I know OTA is not really possible on the OPX.

- if you install via recovery a reinstall is necessary. Note that storeman has a backup/recovery function now to restore apps.

- I would really like to help to keep this alive. But I am afraid that I need to learn very much about porting before.
[OnePlus X Android Development] rinigus:
Re usage with the daily driver: I went around it by making TWRP backups on SDCard. Works very well, you can restore the phone to exactly the same state as before.

OTA: OTA is possible and I have done it with earlier releases. It requires publishing via OBS, but there is nothing magical in it.

Keeping alive: I am sure we can keep it alive. I have been busy with OSS predictive keyboard lately and we are preparing a release for that (this weekend if all goes according to plans). There is one major issue to resolve with a keyboard and I have to find time for that, but helping [MENTION=1082346]kimmoli[/MENTION] with the update is on the high priority too.

There is also 2.1.4.x series coming up, maybe we should focus on that and forget 2.1.3.x release.
[OnePlus X Android Development] John944S2:
Yes I agree on that.
[OnePlus X Android Development] smatkovi:
oops looks like something is missing there. i wrote something like there is an old version of multirom with the "old" bootloader, which supports dualboot if you use a rom with the old bootloader and until now i just got cm 12.1 working together with sfos
[OnePlus X Android Development] Kermit13:
sounds interesting , do you have more details ?
[OnePlus X Android Development] smatkovi:
it's multirom v33b
[OnePlus X Android Development] elvarr:
kimmoli, rinigus, thank you very much for 2.1.3.7!

I got rid of https://together.jolla.com/question/40725/call-ended-but-phone-is-still-processing-the-ending/

Voicecall volume does not work, in general.

Everything worked on 2.1.0.11:
[OnePlus X Android Development] Kermit13:
many thanks from me too :o

did the update on sunday afternoon... right now everything is running smooth...
[OnePlus X Android Development] rinigus:
Please wait for couple of days with the update. There is a problem with out-of-date OBS patterns and I will have to fix it. We stumbled on it rather late, with many keyboard layouts disappearing during update, for example. We'll let you know when its ready.