3 ms·
Why does Google hate the regular Linux Kernel and the regular Linux userland so much that Android doesn't have much Linux resemblance? I remember that wen Noki
by DeathArrow 5y ago
Why does Google hate the regular Linux Kernel and the regular Linux userland so much that Android doesn't have much Linux resemblance?
I remember that wen Nokia did N900, it was pretty compatible with mainline Linux.
- nunobrito 5y agoThere is usually an effort on their side to distance from GPL-2.0 and GPL-3.0 code. Usually replacing with some equivalents under Apache-2.0 or MIT.
- aj3 5y agoAndroid has different security guarantees compared to desktop/server Linux. E.g. people should expect that none of the installed software can hijack the phone completely and that most damage from malware should be mitigateable by uninstalling malicious app.
- kaba0 5y agoPeople would be right to expect that no installed software can hijack the desktop completely as well, but unfortunately that is very much not the case.
- kaba0 5y agoBecause Linux userspace arguably sucks. While the kernel is excellent, there is no sane sandboxing (and I can’t communicate enough how truly terrible linux desktop’s “security” is. A single bash script could break absolute havoc), the IPC mechanism used to communicate between programs is fragmented and in my opinion the insistence that C should be used everywhere really holds back the platform. Compared to that, android has a well-architected sandboxing with very gradual permissions, SELinux for the remaining features (sure, mainline linux distros also have it from time-to-time but it is not used there to its full extent. Android runs every application as a different user for example, making security boundaries much more explicit), so I would rather ask, why doesn’t mainline linux copy some things from android? Also, don’t get me wrong, I really like using linux OSs, but they do have plenty of space to improve.
- zozbot234 5y agoMost Linux distros have standardized on AppArmor which provides the same basic featureset as SELinux while being a lot easier to manage (e.g. no file system hacks required, everything is set up via standard configuration mechanisms!).
- nyanpasu64 5y ago> why doesn’t mainline linux copy some things from android? Because Android is actively interfering with: - a shared filesystem where you can manage files from a graphical file manager, terminal, Git, editor/IDE, compiler, Python runtime, photo manager, and hex editor - Being able to debug apps from other apps (Mac disables lldb altogether unless you disable SIP, then you need to type your password every time, and Android ships with no debugging tools at all)
- kaba0 5y ago> a shared filesystem There is absolutely zero reason for any random app to have access to arbitrary files on my computer. Why should a random bash script be able to wipe out all my family pictures? Also, there is nothing inherent in the android model that would make a “shared filesystem” infeasible - it is just the wrong default. With specific access rights sure, it should be allowed.
- zozbot234 5y agoIt's not Google, it's the embedded space in general. I don't think even the Nokia N900 ran a mainline kernel when it was current.