by transpute · 1y ago · 0 comments
There's roughly 4 different approaches to Linux on Android:
• virtual machine emulating x86_64
• Termux
• arm64 binaries running in chroot
• proot.. Same idea as chroot, but doesn't use forbidden system calls
Fifth option: arm64 pKVM VM from Android 15 on Pixel 7+ phone/tablet hardware using nested h/w virtualization. Shipped in 2025 under the uninformative name of "Linux Terminal" via Development options, Android now has full Debian Linux with VM root, no emulation, compatible with USB-c desktop display.https://news.ycombinator.com/item?id=43973395 & https://www.androidauthority.com/android-linux-terminal-purp...
> The main purpose of this Linux terminal feature is to bring more apps (Linux apps/tools/games) into Android, but NOT to bring yet another desktop environment.. Ideally, when in the desktop window mode, Linux apps shall be rendered on windows just like with other native Android apps.. GPU acceleration is something we are preparing for the next release.
Hopefully Android 2025 Linux VMs will lead to iOS 19 VMs at WWDC, since Apple wants to sell smart glasses to compete with Meta glasses.
edit: apparently this only just released on LineageOS 22.2. Also your hardware needs to support pKVM as you mentioned, which means only recent devices (only Pixels currently?).
I have nothing to do with them, I am happy with something that just works for all I need it for without having to take all kinds of expert steps. It Just Works. Maybe some massive companies can learn from this; the list is large.
While current solutions depend on VNC to display the Linux interface, we got rid of VNC altogether along with the problems it causes.> We thought this is too inefficient. So we decided to combine both into a single application, to eliminate most of the interprocess communication, and avoid having the Linux server run in the background, and thus suffering from power optimizations. We still have a framebuffer, but we do the scrapping and updating directly. We have reduced all the hassle to mere memcpy and texture update operations. This turned out to be huge! In the future, we hope to reduce this overhead even further by rendering directly to the texture, and this saving the need to scrape and copy memory.
When the next release of Android Linux Terminal ships vGPU with virtio, it will provide better graphics performance than VNC, while retaining strong security isolation between Debian guest VM and host Android.
AOSP, https://android.googlesource.com/platform/packages/modules/V...
GrapheneOS, https://github.com/GrapheneOS/platform_packages_modules_Virt... & https://x.com/tuxpizza/status/1900431745146888488