Full Linux Server on an Android phone
Android Virtualization Framework
I came accross something interesting in my phone’s developer options: “Linux Development Environment”. Apparently starting from Android 15 on Google Pixel devices you can access a fully virtualized Linux environment. This is a full blown Linux machine running on your phone.
The Phone
I am using a Google Pixel 6 Pro running GrapheneOS. It has a Cortex octa-core CPU, 12 gigs of RAM and a dedicated GPU. So this is a pretty powerful device.
The Setup
I turned on the “Linux Development Environment” option in phone’s Developer Options and that gave me a new shortcout for a terminal application in the application menu. On first launch this terminal application downloaded the Linux image and set it up, it took like 5 minutes. I now connect to my phone Linux from my laptop via ssh.
First I ssh to Termux on GrapheneOS:

And from there I ssh to Linux:

The Virtualization
The guest Linux is Debian 13 Trixie. It has access to all 8 CPU cores, 4 gigs of RAM, there is a SWAP partition that is set to 1 gig and the Linux sees the whole memory device of the phone (128 gigs) as a single block device from which it is operating:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
zram0 253:0 0 977M 0 disk [SWAP]
vda 254:0 0 104.8G 0 disk
└─vda1 254:1 0 104.8G 0 part /
vdb 254:16 0 4.8M 1 disk /var/lib/cloud/seed/nocloud
The GrapheneOS filesystem (user’s files) is mounted and accessible at /mnt/shared.
The Possibilities
This is very interesting. A phone is a device that is almost always turned on. Ofcourse it may not always have a network connection. Still, could host something, could use it to perform some activities, could host OpenClaw on it, etc. I will definitely think about some good use cases for this.