7 ms·
Am I missing something? Every Android phone is running Linux.
by rbanffy 6y ago
Am I missing something? Every Android phone is running Linux.
- reeealloc 6y agoBut a good portion of them are riddled with google
- InvertedRhodium 6y agoAndroid is not Linux any more than Chrome or Firefox is Linux just because it runs on top of it.
- dandongus 6y agoAndroid 'is linux' is the same way any linux distro 'is linux'.
- danielheath 6y agoI'd just like to interject for a moment. What you're refering to as Linux, is in fact, Android/Linux, or as I've recently taken to calling it, Android plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning Android system made useful by the Android corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
- rbanffy 6y agoAndroid runs Linux. Android is not GNU/Linux.
- danielheath 6y agoAhh, I missed one or two substitutions. Fixed now.
- kjeetgill 6y agoIn that vein, should Google replace POSIX here? And maybe that cuts to the heart of the matter more then you meant to, haha.
- pjmlp 6y agoThey already replaced it with Java APIs, POSIX isn't a public API on Android. https://developer.android.com/ndk/guides/stable_apis https://developer.android.com/ndk/guides/stable_apis
- cuillevel3 6y agoWow. So normally we say: Linux is the kernel and GNU is the userland. (Remember GNU/Hurd?) So, what is Android? Does Linux run the Android userspace, or does Android run the Linux kernel...
- teddyh 6y ago> Linux is the kernel and GNU is the userland No, “GNU” is the operating system project, which includes the userland components, the kernel, and everything else. Just like “Windows” is not ntkrnl.dll, nor is “Windows” the sum of explorer.exe, cmd.exe, etc. – “Windows” is the overarching project name. “GNU” is the same. People who think of “GNU” as userland components likely are influenced by the accident of 1990’s history that was the prevalence of SunOS (etc.) systems with added GNU command utilities. But the GNU command line utilities were originally meant to be for a (yet to be written) complete GNU operating system, including a GNU kernel, Hurd. But since the GNU operating system was to be compatible with Unix, and the command line utilities were good, people liked to run the command line utilities on proprietary Unix variants, and later the same happened when a Linux-based Unix system was cobbled together; the GNU utilities were there for the taking, and they were very useful in creating a complete Unix-based system, based on Linux. This probably created the confusion that GNU = userland utilities and Linux = operating system, even though almost the opposite being true.
- cuillevel3 6y agoRight, I meant ".. in most Linux distributions". The kernel is Linux and the most important userland parts are from GNU. Therefore they are really GNU/Linux distributions. The GNU project has more to offer than coreutils, like Hurd.
- yjftsjthsd-h 6y agoI think you're joking, but unironically yes; Android/Linux is Linux, just like GNU/Linux and busybox/Linux (or however you want to call Alpine).
- Qub3d 6y agothe parent comment is riffing on a copy/paste meme based on a rant attributed (likely falsely) to RMS: https://wiki.installgentoo.com/index.php/Interjection https://wiki.installgentoo.com/index.php/Interjection
- yjftsjthsd-h 6y agoYes, which is why I assume it's joking, in spite of it actually having some merit here.
- sergeykish 6y agoChromeOS and FirefoxOS — yep, Linux.
- ekianjo 6y agoLinux is a kernel. Obviously this article is talking about a different user space than Android.
- rbanffy 6y agoSo, what is a Linux phone? Does it need to use glibc or another libc still qualifies? Does it need to present a POSIX interface? Does it needs to run an X server or something compatible?
- fsflover 6y agoBy "Linux phones" people nowadays understand GNU/Linux phones. I wonder why the OP can't just say that.
- dspillett 6y agoDepends what is being meant by Linux. Yes they run a variant of the Linux kernel, and there is some commonality in parts of the common libraries, but there are significant differences atop that which makes it quite different to your average desktop Linux. The overall Android environment isn't Debian, Ubuntu, RedHat, ..., or other GNU/Linux environment. (the downvotes you currently have there given the graying text are a bit misguided IMO, your misconception is a very common one, one that people in some circles even seen to encourage)
- m4rtink 6y agoAndroid could be called Android/Linux as Google replaced most of the GNU GPL licensed stuff with BSD licensed alternatives, often self developed (bionic, surface finger, binder, stagefright, etc.) so that they (and vendors) are not bound by GPL obligations and can sit on one changes for ever if they want to. Kernel is the major thing under GPL left and while there are some theories they might want to replace it with the Fucsia micro kernel I don't think they have a chance in hell given the ministered and number of parties involved in cooperative Linux kernel development.
- deleted 6y ago[deleted]
- rbanffy 6y agoAndroid is running Linux as much as my router is. Or my TV. Or all those docker containers with a thin image and a Go application. It’s not a desktop Linux OS, of course. But it’s still Linux.
- augusto-moura 6y agoYes, my router is Linux, and my TV is also linux (containers not quite, because they don't emulate the kernel, except for Windows and macOS machines, that NEED to emulate at least one kernel instance, but whatever). And is pretty clear to me those limitations. More than my router, or my TV, or any embedded system for that matter, Android does try to follow other systems specifications, it has a own libc implementation, you can still utilize most of linux that we are used of: filesystems, syscalls, networking, even containerization (all of them limited and various levels, of course). That is what makes a linux distribution too me in my opinion, in the same way I can run a linux with musl libc, and busybox, I can run Android
- akiselev 6y agoThe core parts of Android that make it usable on mobile devices like power management and scheduling [1] aren't in the mainline Linux kernel last I checked. This is about getting Linux to the point where you can choose between an Arch, Ubuntu, debian, etc. distro for your phone. [1] https://lwn.net/Articles/706374/ https://lwn.net/Articles/706374/
- techrat 6y ago> This is about getting Linux to the point where you can choose between an Arch, Ubuntu, debian, etc. distro for your phone. Does Termux count? It may be containered within an application package, but it's running off the host kernel and it uses the debian package manager. https://i.imgur.com/WIT2VjW.png https://i.imgur.com/WIT2VjW.png I find that, when it comes to Android, people try really hard to make exceptions for what qualifies as "Linux" that do not exist as goalposts for other distributions or forms of Linux that are generally accepted under the Linux umbrella. I'd say it's as much as Linux as anything else that uses the base kernel and is reduced (for space reasons) or modified (for hardware support)... DDWRT comes to mind. When you have a base kernel for a device, running a "proper" distribution isn't much further behind. I was able to install Ubuntu on top of the stock kernel of one of my oldest Chromebook devices, the Acer C710. That's how I started using Linux full time. Does that not count? Because you can do that on Android devices, too. It's Linux. Carving out exceptions and drawing arbitrary lines and qualifiers doesn't really get anyone anywhere. In the end it's a very specialized Linux kernel for that hardware running often proprietary blobs, but when it comes down to it: Yes, you an install distros on top of the kernel on the device[1], And yes, I'd argue Android itself is a distro. The only thing Android really lacks is a universal installer. IMHO, we can thank Qualcomm for that situation we're in. [1] https://www.makeuseof.com/tag/how-to-linux-on-android/ https://www.makeuseof.com/tag/how-to-linux-on-android/
- pjmlp 6y agoTermux is on the death bed, because they refuse to ackowledge Android isn't Linux and make use of Java APIs for their purposes. So given that from Google's point of view POSIX and Linux syscalls aren't public APIs on Android, termux no longer works on latest Android versions and it will get worse, as NDK APIs keep being locked down as sandbox improvements.