Google is developing a Terminal app for Android that'll let you run Linux apps. It'll download and run Debian in a VM for you.
Google is developing a Terminal app for Android that'll let you run Linux apps. It'll download and run Debian in a VM for you.
...
Engineers at Google started work on a new Terminal app for Android a couple of weeks ago. This Terminal app is part of the Android Virtualization Framework (AVF) and contains a WebView that connects to a Linux virtual machine via a local IP address, allowing you to run Linux commands from the Android host. Initially, you had to manually enable this Terminal app using a shell command and then configure the Linux VM yourself. However, in recent days, Google began work on integrating the Terminal app into Android as well as turning it into an all-in-one app for running a Linux distro in a VM.
...
Google is still working on improving the Terminal app as well as AVF before shipping this feature. AVF already supports graphics and some input options, but it’s preparing to add support for backing up and restoring snapshots, nested virtualization, and devices with an x86_64 architecture. It’s also preparing to add some settings pages to the Terminal app, which is pretty barebones right now apart from a menu to copy the IP address and stop the existing VM instance. The settings pages will let you resize the disk, configure port forwarding, and potentially recover partitions.
...
If you’re wondering why you’d want to run Linux apps on Android, then this feature is probably not for you. Google added Linux support to Chrome OS so developers with Chromebooks can run Linux apps that are useful for development. For example, Linux support on Chrome OS allows developers to run the Linux version of Android Studio, the recommended IDE for Android app development, on Chromebooks. It also lets them run Linux command line tools safely and securely in a container.
Yeah but I bet google's one will have lots of cool features like being harder to use and not supporting becoming root and requiring google play services for no discernable reason
And in addition to that, they recently added a restriction in later versions of Android: "Child process limit". Although this limit used to not there, when enabled, it prevents users from truly running arbitrary linux programs, like via termux.
Although the child process limit can still be disabled in developer options, it doesn't bode well for how flexible base android in the future will be, since many times corpos like Google move stuff into the "secret" options before eventually removing that dial all together.
TLDR: Termux has been, and is a thing... for now.
Also, I want to shout out winlator. It uses a linux proot, similator to termux, and has box64 and wine inside that proot that people can use to play games. I tested with Gungeon, and it even has controller support and performance, which is really impressive.
Through termux you can already install a full linux distro on android. It is a little slow, but full desktop environment. Not bad if you have a phone that supports display output
Not arguing, just curious: what makes chroot insecure? I've used it for installing Gentoo, but I don't really understand what it's doing under the hood.
Yeah... While making users run Linux applications on a system where Google is root might be a wet dream for Google, it's more of a nightmare for me.
I really hate the fact that the vast majority of consumers are perfectly fine with not being in full control of their appliances and that Google (and others) register everything they do.
The reason so many people are fine with using corporate garbage is ironically the same reason they'd be just fine using something that wasn't that. Users can adapt and learn a system way better than most people think.
So, I'm not that great with Linux. I know the basics, that's it.
Is it user friendly? I mainly want Linux with Android app support because I hate Google.
I've used windows my entitle life. Now windows 11 upgrade was done without consent, now they are doing their best to make it even worse then it already was. I would love to switch to Linux, it's just that I'm using some apps which do not exist for Linux yet. Next to that I'm not that comfortable with the Linux mechanics to make the switch on my main PC. As in: Like I know what I'm doing on the machine which I use a big part of my time. I need full control. I know I have it with Linux, I just don't know how. And I feel stupid for it.
The moral of my story is: I'm scared to make a switch from something I'm so familiar with for years and years to something new, even though I hate the corporations behind the stuff I use.
Much more appealing to me is running Android apps on Linux officially. I don't want to use Android as my main system, but I sure as heck would love to have one or two Android apps available on my Linux Machines.
I think you misread. They want a Linux phone, not a container for android apps on Linux Desktop. Also, yeah there are very limited options to do this, but most of us can't yet.
I was thinking the same thing! But it would be running from a Debian VM so I'm not sure how realistic that is. And I doubt it would have access to android apps.
Google is still working on improving the Terminal app as well as AVF before shipping this feature. AVF already supports graphics and some input options, but it’s preparing to add support for backing up and restoring snapshots, nested virtualization, and devices with an x86_64 architecture.
This is the part I cared about. Can it run x86_64 programs, or is it just an ARM-compatible version of Debian?
If it can actually run x86_64 programs on ARM devices, then that's kinda fucking sick and would likely help the world transition to ARM. Like, fuck Google, but this sounds like a good thing, maybe?
No, not unless you have an x86 Android device. While this will run Linux apps, it will be limited to the CPU architecture. Unless there is a x86 to ARM translation layer on Linux that I'm not aware of?
Steam requires it to be installed in an x86 environment, whether natively, or through emulation (and most x86 emulation has significant overhead and imperfections)
But java applications should run natively if you supply an appropriate build of java. I have an arm VPS that I've hosted several Minecraft servers on without any problems (other than those I created myself) and I also learned by accident that Microsoft's builds of OpenJDK actually work for (at least some) Minecraft versions that they aren't supposed to, so I have to wonder if that's a happy accident or intentional work by Microsoft
Anyone have experience with this or similar options? Personally I've never used anything more advanced than Termux (which is lean and super cool, but not a full-blown VM).
You can pretty much chroot into a full debian installation, and even make kernel calls higher than that natively supported by your phone through proot. It's a weird time to be alive.
Android userland is vastly different from 'linux' ie desktop linux people are used to. While there exists unshare/proot based containers (termux is an example) it might not be suitable for privileged features of kernel except for rooted devices.
Chromeos is much closer to desktop linux (init being upstart not systemd afaik) but still the 'linux' apps run inside crosvm to keep the locked down nature of the os intact.
makes sense and i thought termux uses the android terminal
chromeos yeah it makes sense aswell its linux with google spyware i seen some distros use sysvinit and runit instead of systemd (aka systemd-free distros)
That's a bad move of Google, this has no reason at all!
Chroot/docker will use a more practical way to run Linux, as Android is just a Linux distro, why bother with running a whole another kernel!
For what I've read and heard mentioned by engineers when I worked for a phone manufacturer, Android already heavily uses virtualization. If I remember correctly it does that for the A/B partitions for updating, as well as for the multiple user support. But I'm very open to anyone with closer experience to the Android kernel than I have chiming in with better specifics
This could be really interesting. I don't personally see a use case for me to run Linux apps on Android. I could see myself running android apps on Linux though. Pretty happy to see this.
Chromebooks have the advantage of being mostly a laptop with a keyboard, mouse-analog and largish screen... Phones don't really have that, so it seems an odd choice to me. Especially for a platform which is hostile to giving users permissions to install software on their own devices.
IIRC, Android has always had native support for keyboards and mice. I remember connecting a bluetooth mouse to my old Nexus 4 running...Android 4, maybe 5? It worked out of the box. Saved my butt when the touch screen broke. :)
Can't say I've tried this in recent years but I think it still works, yeah?