News for hackers. Stuff that matters.
Re:Will Linux phones stay around this time? by rbanffy on Saturday May 01, 2021 @06:49PM (#27010597)
Am I missing something? Every Android phone is running Linux.
Re:Will Linux phones stay around this time? by dspillett on Saturday May 01, 2021 @07:00PM (#27010692)
Depends 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)

Re:Will Linux phones stay around this time? by m4rtink on Saturday May 01, 2021 @11:09PM (#27012045)
Android 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.

Re:Will Linux phones stay around this time? by rbanffy on Saturday May 01, 2021 @08:09PM (#27011146)
Android 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.

Re:Will Linux phones stay around this time? by heavyset_go on Saturday May 01, 2021 @08:53PM (#27011373)
The Android kernel has some changes that weren't upstreamed, has features that Linux doesn't, and is missing some features, as well. For example, SysV IPC isn't supported on Android's Linux kernel[1].

Often, for specific devices, the kernels they run are forks with changes that aren't upstreamed. Some of those changes can be significant enough that porting those changes to an updated kernel snapshot is nearly impossible, so it never happens, despite the kernel fork's source being available under the GPLv2.

[1] https://android.googlesource.com/platform/ndk/+/4e159d95ebf2...

Re:Will Linux phones stay around this time? by augusto-moura on Saturday May 01, 2021 @08:28PM (#27011245)
Yes, 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

Re:Will Linux phones stay around this time? by akiselev on Saturday May 01, 2021 @07:29PM (#27010906)
The 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/

Re:Will Linux phones stay around this time? by techrat on Sunday May 02, 2021 @02:43AM (#27012865)
> 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

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/

Re:Will Linux phones stay around this time? by pjmlp on Sunday May 02, 2021 @03:37AM (#27013093)
Termux 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.

Re:Will Linux phones stay around this time? by techrat on Sunday May 02, 2021 @04:10AM (#27013254)
I'd argue that if you were set on using something like Termux, you're already in the class of users who are most likely to be running custom Roms (eg, LineageOS) or having a modified stock image (Magisk, Root, etc)

One of the workarounds for those affected calls for making SELinux permissive.

SELinux, of course, only works on a Linux kernel.

https://en.wikipedia.org/wiki/Security-Enhanced_Linux

https://source.android.com/security/selinux

But, apparently, Android isn't Linux..................

Just another example of how people try too hard to create goalposts to say Android isn't Linux when those goalposts don't exist for anything else.

Re:Will Linux phones stay around this time? by pjmlp on Sunday May 02, 2021 @04:26AM (#27013337)
Please provide the Android documentation how to access LinuxSE on non-rooted devices, you know those that regular consumers actually buy and app developers get their income from.

Just another example on how Linux die hards try to make juice out of lemons, to pivot Linux dominance on consumer devices.

Re:Will Linux phones stay around this time? by techrat on Sunday May 02, 2021 @04:43AM (#27013437)
Look, the goalposts are moving again. I wonder how that keeps happening...

I can't see what replying with "how to access LinuxSE on non-rooted devices" has ANYTHING to do with my comment that you previously replied to unless you're just trying to be disingenuous. I specifically mentioned that a typical use case of someone affected by the changes breaking Termux are users *most likely to be the type that will run a custom rom or root mode.*

"Regular consumers" don't give a flying fuck if Android is Linux or whether or not they can run Termux.

Re:Will Linux phones stay around this time? by pjmlp on Sunday May 02, 2021 @08:29AM (#27014689)
Whatever dude, enjoy your rooted device.
Re:Will Linux phones stay around this time? by megous on Sunday May 02, 2021 @08:04AM (#27014522)
Yes, it's it is. PM is normal part of Linux since at least a decade ago, probably longer. Pinephone now has standby of around 7 days, and runtime power management is also quite good, with automatic powering off of CPU cores, when idle, and downclocking of memory controller in my 5.12 kernel branch, that many pinephone distros will migrate to soon.
Re:Will Linux phones stay around this time? by rbanffy on Monday May 03, 2021 @08:15AM (#27024090)
Are these changes being mainlined anytime soon?

BTW, a Pinephone running WebOS is very tempting. WebOS was so much ahead of its time it’s still ahead of ours.

Re:Will Linux phones stay around this time? by EvilEy3 on Sunday May 02, 2021 @03:32AM (#27013068)
They're barely working on desktop and you want to bring them to phones?
Re:Will Linux phones stay around this time? by ekianjo on Saturday May 01, 2021 @06:59PM (#27010680)
Linux is a kernel. Obviously this article is talking about a different user space than Android.
Re:Will Linux phones stay around this time? by rbanffy on Sunday May 02, 2021 @07:18AM (#27014205)
So, 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?
Re:Will Linux phones stay around this time? by fsflover on Sunday May 02, 2021 @10:27AM (#27015600)
By "Linux phones" people nowadays understand GNU/Linux phones. I wonder why the OP can't just say that.
Re:Will Linux phones stay around this time? by reeealloc on Saturday May 01, 2021 @06:52PM (#27010631)
But a good portion of them are riddled with google
Re:Will Linux phones stay around this time? by InvertedRhodium on Saturday May 01, 2021 @06:53PM (#27010634)
Android is not Linux any more than Chrome or Firefox is Linux just because it runs on top of it.
Re:Will Linux phones stay around this time? by danielheath on Saturday May 01, 2021 @07:15PM (#27010809)
I'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.
Re:Will Linux phones stay around this time? by yjftsjthsd-h on Saturday May 01, 2021 @08:25PM (#27011230)
I 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).
Re:Will Linux phones stay around this time? by Qub3d on Saturday May 01, 2021 @11:30PM (#27012145)
the 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
Re:Will Linux phones stay around this time? by yjftsjthsd-h on Saturday May 01, 2021 @11:51PM (#27012221)
Yes, which is why I assume it's joking, in spite of it actually having some merit here.
Re:Will Linux phones stay around this time? by rbanffy on Saturday May 01, 2021 @08:16PM (#27011178)
Android runs Linux. Android is not GNU/Linux.
Re:Will Linux phones stay around this time? by cuillevel3 on Sunday May 02, 2021 @08:44AM (#27014804)
Wow. 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...

Re:Will Linux phones stay around this time? by teddyh on Sunday May 02, 2021 @09:43AM (#27015216)
> 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.

Re:Will Linux phones stay around this time? by cuillevel3 on Tuesday May 04, 2021 @09:57AM (#27037627)
Right, 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.

Re:Will Linux phones stay around this time? by danielheath on Saturday May 01, 2021 @08:49PM (#27011347)
Ahh, I missed one or two substitutions. Fixed now.
Re:Will Linux phones stay around this time? by kjeetgill on Saturday May 01, 2021 @09:30PM (#27011588)
In that vein, should Google replace POSIX here? And maybe that cuts to the heart of the matter more then you meant to, haha.
Re:Will Linux phones stay around this time? by pjmlp on Sunday May 02, 2021 @03:38AM (#27013101)
They already replaced it with Java APIs, POSIX isn't a public API on Android.

https://developer.android.com/ndk/guides/stable_apis

Re:Will Linux phones stay around this time? by dandongus on Saturday May 01, 2021 @06:59PM (#27010688)
Android 'is linux' is the same way any linux distro 'is linux'.
Re:Will Linux phones stay around this time? by sergeykish on Sunday May 02, 2021 @02:47AM (#27012879)
ChromeOS and FirefoxOS — yep, Linux.