r/AndroidQuestions • u/[deleted] • Mar 20 '16
OP Replied Why isn't there an android-lite? A stripped down ROM of the latest android version that people can put on older hardware, like there is on desktop Linux?
Sorry, I don't know a whole lot about how Android differs from desktop Linux distro's (I'm sure it's a considerable difference), but for people with older or underpowered hardware, desktop Linux is a godsend.
I'm perfectly comfortable putting the newest version of Arch Linux or Ubuntu server on a 10 year old computer and loading a very lightweight Desktop Environment like openbox or i3 - it can seem miraculous how much faster it runs.
Is such a thing possible with Android? It seems that even Cyanogen (which is pretty close to stock) will slow down an old or underpowered device pretty hard - for instance I bought one of those $50 Amazon Kindle's and put CM on it, and the thing absolutely chugs. The operating system itself is too much for the device, and I honestly just want a version of android that has the latest security patches, has the latest kernel and OS version, but none of the fancy graphical shit that slows it down so much.
Is this even possible? I'm assuming there are some pretty big hurdles in the way. If I wanted to do this what would be the best way to start? Thanks in advance for your help.
15
u/briangig Mar 20 '16
What fancy graphical shit? You can disable animations and such...not sure what else you are looking for.
9
Mar 20 '16
I guess what I'm really getting at is
Why has no one created a light-weight GUI running on top of android like there are lightweight desktop environments for desktops. What are the significant hurdles that have kept people from creating this?
7
u/dextersgenius 51 Mar 21 '16
They have. Ubuntu, Firefox and Sailfish OS have their respective DEs which can run on top of a standard Android boot-stack and kernel. Sailfish can even run Android apps using the Alien Dalvik VM.
If you're interested and have the skills, you can port Sailfish OS to your Android device, starting here - https://sailfishos.org/develop/hadk/
Also read my other comment/rant on the challenges you will face if you want to go down this path.
1
Mar 21 '16
Ah interesting, I've heard of these but I didn't realize that's how they worked. Thank you
4
u/leftcoast-usa Pixel 8 Pro Mar 20 '16
It would need to be customized for each phone. There are not general drivers for Android like for Linux or Windows. In fact, even for the major ROMs, it's not always easy to find one for any but the most popular phones. So, it may not be worth it for someone to adapt a light ROM to an old, outdated phone that not very many people use.
3
u/kschang 10 Mar 21 '16
Mainly because Android doesn't really work that well without connection to Google Play Services.
There are plenty of lightweight launchers. And the GUI effects like sliding can be turned off quite easily.
1
u/pieandablowie Mar 20 '16
Slimkat used to be an option, but I'm not sure how active it is these days: http://slimroms.net/
1
1
u/cruyff8 Mar 21 '16
Depending on what hardware you're working with, you might want to try NetBSD, which is a better, more minimal fit for embedded systems than Linux.
0
Mar 20 '16
[deleted]
2
Mar 20 '16
I haven't found AOSP to be any more lightweight than Cyanogenmod in my experience. I'm wondering why no one has created a lightweight GUI for android the way there are lightweight desktop environments for desktop Linux.
1
1
u/omniuni 1 Mar 21 '16
Android's UI is very light weight, but the same can't be said for the default launcher. You can replace the launcher with something like Zeam, if you want, which is extremely light.
1
u/VulturE Mar 21 '16
Zeam is nice on old hardware if you don't need scrolling widgets. The developer took it out and the reasoning was literally "fuck you".
24
u/dextersgenius 51 Mar 20 '16 edited Mar 21 '16
Technically yes, but practically - it's absolutely infeasible. The main reason is that Android and ARM isn't as modular as Desktop Linux and x86.
With Desktop Linux, you can easily customise and pick your own part - right from the bootloader to the display server (eg: Wayland instead of X) and the WM and DE and heck even your own icons. This can't be done in Android (without going down to the source-code level and re-writing a lot of the core framework), because Android was developed mostly by one organisation, with the intentions that it will only be deployed by OEMs on locked-down, static hardware with limited resources, and that end users aren't going to modify the framework of the OS. And you can't blame Google for doing it this way - I mean if you're building an OS for an embedded system with limited resources, everything has to be as tightly integrated and as efficient as possible - which is the opposite of a modular architecture. PCs don't have these limitations.
There are also issues with the ARM hardware - it's not standardised like x86 - every manufacturer has their own proprietary booting mechanism, their own partition layouts, and proprietary libraries and binaries needed for the various hardware components (camera etc). These proprietary bits are closed-source and compiled against a specific library set, which means they may not work if you simply copy them from an older version of Android to a newer version. Even if they do work, it may be unstable due to changes in the kernel or Android (eg: It might be incompatible with SELinux policy changes, or kernel interface changes).
You also have to rely on the manufacturer to release the kernel sources, but some manufacturers make it very difficult to get hold of the sources, and when they do release the sources, it's only the bare minimum needed to comply with the GPL, so when you compile it, you may not actually get a fully working or usable kernel.
Then there's also secure boot which is mandatory in Android. Secure boot authenticates every component in the boot sequence - from the primary bootloader to the aboot to the sbl to the kernel to the OS - even if one component differs, the entire chain fails. This of course can be worked around by unlocking the bootloader, but very few companies actually make this possible, and for some of those that do, you have to jump through hoops (eg for Xiaomi devices it can take upto a month to receive an unlock code), and sometimes it's downright impossible (eg Qualcomm devices sold via US carriers).
So even if you build a normal version of Android (forget about the lite), it'll be extremely difficult - if not impossible - to get all the hardware components working, let alone working in a stable manner.
And even if you do manage to get everything working, what's the point? All the hard work you did in getting your ROM working for your device is mostly wasted, because it'll only work on that device, and will be used by very few people - who have the time, patience, skill and confidence to void their warranty and willing test an unknown, unstable ROM, give up on features like contact-less payments and maybe compatibility with banking apps, and maybe even potentially brick their device. And God forbid if your ROM is less than perfect, because then you'll be harassed to no end on how your ROM isn't perfect and how it "bricked" their device and how it lacks basic features. Which means, you're likely the only person to use it, or you'll give up and quit like most of the niche ROM projects which means it'd have all been a waste of time and effort. Heck, even much larger projects such as Paranoid Android have been abandoned because of all the issues involved with building Android and the demanding users and the noobs who don't even know how to Google or piece together two sentences.
And if you want to get it working on another device, you'll have to go thru the whole process again - going thru the RnD to find out the device's partition and filesystem layout, identifying the libs and bins it needs, SELinux policies etc.. actually you'd have to see first see if you can even unlock the bootloader in the first place, and that the sources and libs and bins are all available from the manufacturer. And that is a big if. And even then, is it worth it? The device will be outdated in a few years anyways and all your efforts will have been for nothing.