Finding a way of making standard Firefox usable + DRM (widevine)

I’ve been using SFOS for a few weeks now on an Xperia 10 iii. Simultaneously, I’ve been trying to get a OnePlus 6 as close to a daily driver as possible using postmarketos. I’m using SFOS as a daily driver because pmos is not quite there yet (battery drain, no working camera). However, there is one thing which is way better in pmos: the browser, i.e. desktop ESR Firefox with a mobile configuration.
https://gitlab.postmarketos.org/postmarketOS/mobile-config-firefox

As on SFOS, DRM (widevine support) is lacking, there is a workaround however. You can basically use container based solution (distrobox + podman + fedora + widevine installer + user agent) and use a standard Firefox. This solution works for me.
https://wiki.postmarketos.org/wiki/Widevine

Would it be doable to somehow combine the two approaches on SFOS to get real Firefox working with the mobile config and widevine enabled? This would allow people to use streaming services in their browser. Right now, I’m unable to access public television in my country due to the lack of DRM support in browsers on SFOS (native + android).

1 Like

How did you get calling done with op6 pmos? I can’t call.

And yes Firefox would be nice native in SFOS. Works in pmos op6 here too.

Isn’t Mr. Magister working on mainline SFOS on op6?

Btw. one of the best community port, his op6 with sfos. It’s definitely a daily driver.

Calls only work on pmos + gnome-mobile (stable branch). A few tweaks are necessary to improve audio quality. And you’re going to miss calls when the system is suspended. In a few days time I’m going to post a YT video explaining the whole process of setting up the OP6.

In my opinion, setting up SFOS was almost as time consuming. But the system is reliable. Using pmos is great fun and I love it but it’s a bit like driving a vintage car. You need to pull out all the stops to get it going and keep your eyes on things to keep it working. Using it as a daily driver made me feel like some kind of phone nurse :face_with_tongue: . When it comes to the browser and multimedia stuff, pmos is streets ahead (native Kodi + Firefox) though. The pragmatic choice for me was SFOS nevertheless.

2 Likes

could you please post it here ? Thanks.

I will. I just put all the information that is scattered around in one place. The video will be based on this guide I created. Feel free to use it: https://drive.google.com/file/d/1_PkXSy1ILbNMVjkPRIaJ-f0EcMfpJH_-/view?usp=drive_link

1 Like

I guess if flatpak support can be bring back to SFOS 5 it will make things a lot easier.

I remember when flatpak works one can get native firefox work

3 Likes

top …….. (20 characters)

Getting Flatpak working again on SFOS would allow me to chuck out a bunch of Android apps (like Firefox).

2 Likes

There is this project: GitHub - sailfishos-flatpak/main: Documentation and issues
But some issues couldn’t be fixed :frowning:

2 Likes

I can’t install anything from the flatpak repo you mentioned. My device architecture is aarch64. That’s the problem, I guess.

emphasize on back. This is the old corpse of a once working flatpak

I don’t have time to test this right now but it might be possible with an Arch Linux ARM container in the Harbour Containers application. Arch Linux is only operating system with working sound.

You’ll need the version from Chum testing which includes my PR to fix setup script for a graphical session.

Desktop Firefox runs in here and it’s capable of playing videos.

Edit: I was not able to get widevine working :frowning:

1 Like

for me setting up a graphical session even with containers testing doesn’t work inan archlinux container. how do you do it?

Hmm it just works for me, I’m not doing anything special. What issue are you having?

I also tried setting things up in an arch linux container. When I want to start an X session (xfce) I get a black screen with a warning: “unable to contact settings server”. I don’t know how to solve this…

Were you able to install widevine from GitHub - AsahiLinux/widevine-installer: Widevine CDM installer for aarch64 systems ?

If you were, you might have to set the user agent in Firefox to something like: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

This is the approach for postmarketos.

2 Likes

Hmm, that sounds like the issue I thought I fixed, it should be in chum testing. But you can try editing the installation script manually on your device to incorporate these changes.

I did eventually get it to install (needs to be /usr/lib instead of /usr/lib64 apparently), however I did not try changing the user agent. I will give that a shot!

EDIT: you can also try to fix up your existing container with the instructions I posted here

This should be a lot faster than fixing the setup script and creating a new one.

Thanks a lot. I’m going to wait and let you have a go at this first (user agent). This is starting to get a bit too complex for me :wink: . I’m just an average tinkerer.

The link to the video: https://www.youtube.com/watch?v=narsKdRukDA

1 Like

Don’t worry, me too. I hardly know anything about programming and figured this out by trial and error.

No luck unfortunately :frowning: