Using LineageOS For Telephones And DIY Good TVs Is Fairly Nifty

Although Android is actually simply one other Linux distribution, most individuals solely expertise it within the type of the relatively restrictive and proprietary variations discovered on smartphones, tablets and sensible TVs. While that is in all probability superb for the typical particular person, there’s additionally loads to be stated for the extra pure Android expertise within the type of LineageOS.
With this absolutely open and community-supported model of Android you’re free to muck about together with your {hardware} to your coronary heart’s content material, with out annoyances like unremovable bloatware apps and restrictions on e.g. enabling developer mode.
Even extra enjoyable is that there are ports of LineageOS to programs such because the Raspberry Pi SBC, together with within the Android TV configuration. This signifies that not solely can your ten yr outdated Android telephone get a make-over with a latest model of Android, you may as well create your personal Android TV-based sensible TV with out all of the spying and different nasty issues that business sensible TVs like to do.
The LineageOS Lineage

Although CyanogenMod is not any extra, LineageOS is its efficient successor, that includes in all probability the most important variety of supported telephones, tablets and different {hardware}. You additionally get many of the advantages of operating an OEM-blessed Android distro, equivalent to over-the-air (OTA) updates inside a single main model of LineageOS.
When it involves disadvantages, the closed nature of smartphone platforms signifies that preliminary set up and updating to a brand new main model requires an intimate expertise with Fastboot mode, the Android debug bridge (ADB) and different facets that make even me as a barely extra technically inclined Android – and Arch Linux – person and developer barely nervous when wanting on the set up steps.
A Smartphone Revival
It’s been stated that the first cause why smartphones are the best way they’re is because of pc producers lacking the boat on locking down the PC and Mac ecosystems again within the day, together with the very {hardware} that the OS runs on. Unlike with putting in a brand new OS on that outdated x86 or PowerPC-based system, smartphones – with only a few exceptions – characteristic locked bootloaders and different obstacles designed to shield the kids deter you from doing issues with your personal {hardware} that company disapproves of.
Consequently, getting LineageOS on the typical smartphone is a little bit of an ordeal, with my 2016-era Xiaomi Mi 5 being no exception. Fortunately Xiaomi does supply an official strategy to unlock the bootloader whenever you ask them properly, in order that was one of many very first thing I did shortly after receiving my shiny new telephone. This can be the primary and most cumbersome step in the entire LineageOS installation procedure for the telephone, so I’m grateful that I received that annoyance out of the best way already.
This explicit telephone was left behind by Xiaomi in 2018, freezing it on Android 8.0 and consequently rendered it successfully ineffective for a variety of apps as time moved on. Theoretically LineageOS would right here bump the model as much as Android 15, with common OTA updates. I even had lately replaced its battery, which remains to be pretty simple on this period of smartphone, so it must be mainly a model new telephone.
All I needed to do now was observe the directions.
Fast Fastboot Frustrations

Unfortunately, after dutifully deleting all Google accounts on the telephone and booting into Fastboot mode I ran right into a seemingly unsurmountable impediment: fastboot gadgets listed zero gadgets and a fast have a look at the Device Manager in Windows confirmed why, with the Yellow Triangle of Meh.
As it seems, Xiaomi gadgets aren’t pleased with the common USB driver, however require a particular Fastboot driver. This is the place I’d spend the subsequent few hours chasing a seemingly infinite variety of lifeless ends and ineffective recommendation. Rather than obtain sketchy driver installers or run some .bat file from six years in the past off a GitHub web page, I went with the Xiaomi Mi Unlock Tool, the identical that’s used to unlock the bootloader.
Here I ran round in circles for a bit with the model provided by Xiaomi being the traditional 6.x model with out the wanted driver and the replace hyperlink being lifeless. Finally XDA Forums came to the rescue as regular, with somebody having squirreled away a duplicate of the .zip file from which I may extract the motive force and set up it.
With this completed the remainder of the method was pretty simple, with the fastboot command from my current Android SDK set up fortunately pushing the restoration picture to the telephone, adopted by rebooting into the LineageOS restoration mode by maintaining the ability and quantity up buttons pressed till the Mi emblem seems.
Using adb you then sideload the primary LineageOS picture after mashing the suitable buttons on the telephone to just accept it, with me opting to additionally sideload the particular Google apps sauce. A reboot later and earlier than I knew it I used to be busy organising the ‘new’ telephone, copying information and settings off my newer Xiaomi Note 10 Pro telephone through Wi-Fi.
Mission success, with a 2016-era telephone now operating Android 15.
DIY Android TV

Of course, placing Android on telephones is boring, with everybody and their canine doing it nowadays. Which is why lengthy earlier than I thought-about placing LineageOS on this telephone of mine I had already put it on a Raspberry Pi 4 SBC that I had been attempting to make use of for NymphCast receiver functions in numerous guises over time.
While this isn’t one of many formally supported gadgets by LineageOS, an exquisite particular person referred to as Konga has ported LineageOS to the Raspberry Pi collection of SBCs, each of their common Android and Android TV variations.
The solely actual distinction right here is that Android TV makes use of the – shockingly – TV-optimized interface. This I put in with the intention to check whether or not the Android port of the NymphCast Server (NCS) would additionally play good with Android TV. I had beforehand tried to make use of this SBC with common Raspberry Pi OS and kin, however all the time bumped into points with the proprietary video {hardware} that requires customized patching of FFmpeg to work for primary options like {hardware} acceleration.
To my delight all of this, together with video {hardware} decoding, labored out of the field, making it in all probability essentially the most purposeful model of Linux that I’ve ever run on a Raspberry Pi board. Even if the RPi 4 isn’t your factor, there are additionally pictures for the RPi 3 and RPi 5, although I haven’t tried these but. Android variations with this port are stored updated, with the present launch of Android 16 in all probability being one thing that I ought to replace my board with.
Installation right here is stupidly simple in comparison with the smartphone ordeal: merely write the picture to an SD card, stick it into the SBC’s card slot and congratulations, you simply put in LineageOS. You may even use the everyday Android box-focused remotes to make use of them. I can advocate those which have a keyboard built-in to skip the on-screen keyboard. Or simply wire up a full-sized keyboard, after all.
Updates are completed through OTA pictures, which it’s important to flash by hand. This makes them extra of an Over-SneakerNet (OSN) replace system, nevertheless it works just about the identical in any other case.
Welcome To Open Android
Coming from a few years of utilizing Huawai, Samsung, Xiaomi and Google’s interpretations of ‘Android’ I’m considerably anxious to see what my LineageOS expertise will likely be like. I’ll be utilizing it as my common telephone, with ideally there being no distinction from after I final used it again within the early 2020s, aside from perhaps being much less awfully gradual.
I do recognize that I didn’t get strong-armed into inserting a SIM card to be even allowed to allow USB debugging, which I needed to work round with my latest Xiaomi telephone with a sneaky hack. This is the place I really feel that particularly for us Android builders LineageOS might be extremely helpful.
On the ‘sensible TV’ facet of issues, I haven’t actually completed an excessive amount of with my little field aside from solid video to it from a NAS like a DIY Netflix. I’d be up for exploring this setup as a correct different to OEM-blessed Android TV installations, although I think about that apps that insist on DRM for treasured streaming content material will throw a match.
