A Year of UBPorts

So, where do I start? Ubuntu Touch is a Linux distribution. Although, technically, most of their work is done in userland — the kernel usually remains fairly close to the vendor one, give or take some small changes, like making vendor kernels actually, you know, compile…

→ Getting started

→ How did we get here?

I am the proud owner of a xiaomi-merlin, which is nerdspeak for the Xiaomi Redmi Note 9, a device which no longer receives first party updates, which led me to try Lineage on it.

That was quite a while ago, and that was the day I fell in love with Lineage. It did all the things I needed it to: Play games, watch videos, take stunning pics, have a battery last forever, and, most importantly, get updates.

But as we all know, nothing lasts forever. When Lineage ditched support, I moved to CrDroid. It was horribly slow, which may have been caused by a combination of Pixel GApps, Magisk and a MediaTek Helio G85.

I went back to Lineage, which had since added support for signature spoofing, on condition that it’s microG, but that’s all I needed it for, and unfortunately fairly soon after stopped officially supporting my device. I kept walking around with a deprecated build, which wasn’t great, but it worked, so I was more-or-less happy.

→ Installation

I don’t remember when I discovered UBPorts, but GNU/Linux on my computer was fun, so one weekend, I randomly decided to try Ubuntu on my phone.

UBPorts ships an installer, which was pretty convenient, so I used that to flash my phone — Something which I would fortunately never had to do again after having switched to Alpine on my computer, but would’ve been a major hassle, so it really bothered me that I couldn’t just download an OTA ZIP archive that easily

→ First Steps

Out of the box, you immediately notice one thing: Lomiri has its own UI conventions, most prominently navigation gestures.

…though out of the box is a bit of an overstatement here, because I needed to use 24.04 daily to get basic features, such as WLAN connectivity, working, and needed to swap my SIM layout around so LTE worked properly. That one’s partially on MediaTek, though.

→ The Upsides

→ Global Gestures

I really like its idea of a menu conventionally triggered by swiping up, though I don’t really see what it’s supposed to be used for, because it often just provides access to some feature, without a pattern discernible to me.

→ Tinkering

Ubuntu Touch has a writable systemd unit directory. This permits doing Magisk-style overlays natively, though it unfortunately loses the structuredness gained from having separate modules.

→ Language-Agnosticism

Android is strongly tied to a JVM. As such, apps are best written in Java or Kotlin. I know neither of these languages, so I just can’t write apps.

UBPorts lets me write them in anything with bindings. I never actually wrote anything, but at least in theory I could easily build a QtQuick GUI with Python logic.

→ Ayatana

I absolutely adore Lomiri’s indicators. They are an incredibly flexible and modular UI paradigm, which apps can easily install by dropping systemd units to /etc.

Want a dark/light mode toggle? There’s an app for that! Want UPower statistics? There’s an app for that!

→ The Downsides

→ The App Gap

This has gotten better recently, but it’s still an issue: There just aren’t all that many good apps for everything yet. Many apps fall into one of these categories:

1

Yes, this is official. It’s linked from https://github.com/Aliucord.

→ VoLTE

This straight up didn’t work for a while, leaving me without any telephony for half a year. This has since been fixed, I can call people now!2

Nowadays the modem only occasionally flakes out, which is much nicer than the reboot-and-pray dance that came before it to get any WWAN at all.

2

Without internet based messaging services, that is.

→ Maintaining Tweaks

A package manager would normally make this extremely modular, but UBPorts’ system partition is read-only, so dogfooding packages isn’t really feasible, leaving you to overlay little things and end up with an unit mess.

→ The Experience

On a day-to-day basis, it was actually very unobtrusive: It can’t play any big games, it can’t watch videos particularly well, but it lets me communicate and scroll through Reddit. It made me much less attached to my phone — I was instead much more attached to my laptop. Gain some, lose some…

→ Battery Life

UBPorts generally has great battery life, so long as you clean up behind yourself and close apps you don’t need anymore.

Something like Waydroid is incredibly slow and battery-hungry, so it’s best to use it for main installs where necessary and have native apps pretend to be desktop clients.

→ Conclusion

Ubuntu Touch’s main weakness is expecting a clean split between users and developers. It should feel more like Nura, formerly called postmarketOS, which is essentially Alpine from userdata.

The reason I want Linux on a phone is to customize the observable universe. An upstream read-only image generally makes this quite difficult, but if it was just like bootc, where I could easily make my build server put, what, Plasma Mobile? Sxmo? Even just vim? …Onto my image, that’d let me have the best of both worlds: Stupid customizability and read-only images.