Remix.run Logo
zozbot234 a day ago

Android systems don't even run the linux kernel in any real sense, pretty much every downstream kernel has millions of lines of patched code that will never make it upstream in their current form. Of course, that's no different from mostly any other "Linux" embedded device, but it's very different indeed from what's standard on desktop systems.

palata a day ago | parent | next [-]

I would still count it as the Linux kernel. They don't change the syscall API, it's really mostly at the BSP level, right?

Said differently: if manufacturers cared to mainstream their changes, they could. And we would all be better for it.

fsflover a day ago | parent [-]

> I would still count it as the Linux kernel.

This may be technically true, except it has no single meaningful implication, like no Linux software works there.

jchw a day ago | parent | next [-]

That's not even true. You can use typical Linux software inside of a chroot, like with Termux.

conradev a day ago | parent | next [-]

Yep, and in the reverse, you don't need a separate kernel to run Android software on Linux: https://waydro.id

udev4096 a day ago | parent [-]

Waydroid is garbage. It's so bad. Better use redroid: https://github.com/remote-android/redroid-doc

longfingers a day ago | parent | prev [-]

Whether your virtual container is lightweight, heavyweight or from the cloud doesn't really change anything from a regular user's perspective. You aren't installing software in the main environment you are looking at, running a desktop on, etc.

jchw a day ago | parent [-]

Recall the post above mine:

> > I would still count it as the Linux kernel.

> This may be technically true, except it has no single meaningful implication, like no Linux software works there.

Termux is notable is because you in fact don't need a virtual machine at all, or even a proper container. Even the "chroot" aspect is basically just to create a facade to make software work with less effort; it's not literally needed. And you can indeed run typical graphical Linux software as long as you have a compatible display server; Termux offers an X server as an add-on.

This doesn't mean that Android is the same as desktop Linux, but that's not the point here. The point is that Android runs the Linux kernel, and not just in name only. You actually can make use of the Linux aspect of Android, which many of us do.

It's possible that Google will lock down Android further in the future and make the host Linux environment less usable for stock Linux apps, but today you can run quite a lot of typical CLI and even desktop Linux software directly in Android with minimal fuss. Even if it's a little cumbersome, it's quite useful in a pinch.

I'd argue whether you can readily install software to the Linux host environment is also neither here nor there. For an immutable abroot setup like SteamOS, you can't really install directly to the host environment, but in my mind that does not make it any less "desktop Linux" or Linux kernel based.

MatthewPhillips a day ago | parent | prev | next [-]

I think this really undervalues what Linux provides. The Android software is Linux software.

fsflover a day ago | parent [-]

It's completely incompatible, so in practice it's a different OS. Doesn't mean it's not valuable.

jraph a day ago | parent | next [-]

You are talking about the OS while the person you are discussing with is speaking about the kernel.

The Linux kernel has its own merits outside standard Linux userspace.

I agree, saying that the fact standard Linux distros and Android share the same kernel has no single meaningful implication really undervalues the Linux kernel.

I also agree that it's important to keep in mind the two OSes are mostly incompatible.

The two OSes sharing the kernel have practical implications, including (theoretically) seeing improvements coming from Android dev in the kernel that can benefit standard linux distros, and things like Termux or Waydroid.

vkazanov a day ago | parent | prev | next [-]

In practice Linux is a family of different OSes. Sometimes POSIX-centric, sometimes not.

What do you even count as "an OS"? Linux + gnu userland + Gnome? Or is it KDE? Embedded Linux? Does ChromeOS count? LG's WebOS?

hagbard_c a day ago | parent | prev [-]

Try Termux and you'll be surprised how much 'Linux' software runs fine on Android, this includes things made to run under X11 etc.

palata a day ago | parent | prev | next [-]

No software compiled for arm will run on x86. No software depending on Qt will run without Qt, even if you have GTK.

Doesn't mean they don't run the same kernel, does it?

fsflover a day ago | parent [-]

You can recompile software for a different architecture relatively easily. You can't easily rewrite GNU/Linux software to run on Android.

palata a day ago | parent [-]

And you can't easily rewrite Qt software to use GTK. Still they both run on Linux.

MYEUHD a day ago | parent | prev | next [-]

Checkout https://postmarketos.org Those vendor provided kernel trees let you run a real Linux distribution on your phone.

zozbot234 a day ago | parent [-]

PostmarketOS doesn't use downstream kernel trees because those are useless for anything that's not AOSP-based (unless you use terrible hacks like libhybris) and are often not upgradable to newer versions. They rely on "close-to-mainline" kernels that are much closer to real Linux.

udev4096 a day ago | parent | prev | next [-]

This is the reason I hate the recent surge in linux desktop users. People jumping in without allocating enough time to get familiar with the ecosystem

assbuttbuttass a day ago | parent | prev [-]

You can run Linux software on Android via termux, or the amazing UserLAnd app even lets you install an entire distro userland with several choices (Debian, Arch, etc)

a day ago | parent [-]
[deleted]
cherryteastain a day ago | parent | prev | next [-]

Android is Linux

Android is not GNU/Linux.

Article talks about GNU/Linux clearly. There is a point to the whole "I'd like to interject for a moment..." copypasta and Android's situation is the clearest illustration of it.

throwaway0665 a day ago | parent | next [-]

The article talks about browsers that use Linux in the user agent. This includes Alpine Linux - which is not GNU/Linux. It also splits out Chrome OS which is pretty much GNU/Linux.

blueflow a day ago | parent [-]

Alpine and GNU/Linux are Posix, while Android is not.

TheDong a day ago | parent [-]

I don't think Posix is very relevant to what is or isn't linux.

macOS is more posix than NixOS, but everyone knows NixOS is a real linux distro, and macOS is not one.

blueflow a day ago | parent [-]

Me neither! I was suggesting to use "Posix" instead of "Linux" because it properly separates GNU/Linux or other Linuxes from Android. Posix is what Android isn't but what MacOS is. What people erroneously try to call "Linux" because they don't have a better word.

palata a day ago | parent | prev | next [-]

> Article talks about GNU/Linux clearly.

There are Linux distributions that don't use the GNU userland. Should we start being pedantic about that? And say Busybox/Linux or MyCustomThingy/Linux etc?

And actually, were you talking about GNU/Linux/Xorg, or GNU/Linux/Wayland? Can I also ask people to mention which libc they use? Alpine is OpenRC/Busybox/musl/Linux, which is not systemd/GNU/glibc/Linux.

So yeah... Desktop Linux is not worse a way to describe an OS than GNU/Linux.

jraph a day ago | parent | prev [-]

> There is a point to the whole "I'd like to interject for a moment..." copypasta and Android's situation is the clearest illustration of it.

Well… :-)

With you in spirit, but to add to the mess, one could argue Alpine (and Postmarket OS) is a standard Linux distro, but non GNU.

"GNU/" cannot be used for clarifying things anymore.

charcircuit a day ago | parent | prev [-]

This has been repeated for so long that in the meantime enough of the changes have been upstreamed such that Android has been able to run with the upstream kernel since 6 years ago.