fbpx
  • Android 15’s new Linux Terminal app is limited to 4GB of memory, which can be insufficient for developers.
  • A workaround involves increasing the zram size, creating a swap file, and adjusting swappiness to improve memory availability.
  • While not a perfect solution, this method should help reduce crashes due to low memory in the Linux VM.

One of the most exciting new features in the second quarterly release of Android 15 is the Linux Terminal app. This app allows you to run full-fledged Linux applications on Android by booting an instance of the Debian distribution within a virtual machine. This virtual machine shares resources and hardware, such as processing power and storage, with the host Android device. By default, the Linux Terminal app is limited to 4GB of memory, which might be insufficient for demanding development workloads. Fortunately, there’s a simple workaround for this limitation.

Linux VM in Android memory use