Android 16允许Linux终端使用手机的全部存储空间。
Android 16 lets the Linux Terminal use your phone's entire storage

原始链接: https://www.androidauthority.com/android-16-terminal-disk-resize-3546144/

谷歌Pixel手机凭借新推出的Linux终端应用正在逐渐成为便携式电脑。这个应用将在2025年3月的更新中提供,它允许Pixel用户在Android系统 alongside运行一个Debian虚拟机,从而可以使用Linux桌面应用程序。 虽然目前还不支持图形界面和音频,但最新的Android 16 Beta 4版本取消了之前的16GB存储限制,使得虚拟机几乎可以使用手机剩余的所有存储空间。应用中提供了一个手动调整大小的滑块,未来的更新将实现动态“存储气球”功能,根据需求自动调整虚拟机的存储空间。 这使得虚拟机存储空间可以根据需要“膨胀”以使用可用空间,并在主机系统需要回收空间时“收缩”。 谷歌设想Linux终端主要用于在Android系统 alongside运行Linux应用程序,而不是取代Android的桌面模式。尽管如此,随着该应用的成熟,它所带来的可能性和创新用途也令人期待。

Hacker News 上的一个帖子讨论了 Android 16 的一个新功能:允许 Linux 终端应用分配大量存储空间。最初的热情被用户的担忧所冲淡。 一位评论者 skeptrune 认为,使用 Termux 通过 SSH 连接到开发机,可以获得比 Google 的虚拟机嵌套方案更好的完整 Linux 体验,而且不会出现潜在的 bug。另一位用户 metalman 讽刺地指出,这个功能似乎仅限于 Pixel 手机,暗示这更多的是关于 Google 集成,而不是广泛的实用性。 有一个被标记的评论。Palata 批评了最初的评论者没有阅读文章,澄清该功能是将存储空间分配*给*(运行在虚拟机中的)Linux 终端应用,而不是直接访问手机的整个存储空间。Palata 強调,即使是文章的 TL;DR 也说明了这一点。

原文
Close up of storage settings on an Android phone

Mishaal Rahman / Android Authority

TL;DR

  • Pixel phones now feature a Linux Terminal app, enabling users to run a Debian virtual machine for desktop apps alongside Android ones.
  • While still lacking features like GUI/audio, the recent Android 16 Beta 4 release removes the previous 16GB storage cap for the Linux VM.
  • Google plans to eventually replace manual storage resizing with dynamic ballooning, allowing the VM storage to adjust automatically based on need.
Pixel phones are taking a step towards becoming powerful portable PCs with the introduction of the Linux Terminal app in the March 2025 update. This app lets compatible Android devices run a full-fledged instance of the popular Debian distro in a virtual machine, opening the door to running popular Linux desktop programs alongside Android apps. However, the feature isn’t quite ready for everyday professional use, currently lacking support for critical features like graphical apps and audio output, and until recently, it was restricted to just 16GB of storage space, limiting the Linux VM’s capacity for apps and files. Thankfully, Google just lifted that storage limitation, allowing the Linux Terminal to use as much of your phone’s storage as needed.

You’re reading an Authority Insights story. Discover Authority Insights for more exclusive reports, app teardowns, leaks, and in-depth tech coverage you won’t find anywhere else.

With the release of the fourth Android 16 beta, Google has uncapped the disk resize slider in the Linux Terminal app’s settings. In previous releases, the disk size was capped at 16GB. In Android 16 Beta 4, however, the disk can be resized to occupy most of the host device’s remaining storage, leaving 1GB free to prevent the virtual machine from consuming all available space.

I tested this feature on a Google Pixel 9 Pro running Android 16 Beta 4, successfully resizing the Linux disk to 42.3GB. The process took only a few seconds, and after restarting the VM, the increased storage was immediately available. According to Android’s storage settings, the total size consumed by the Linux Terminal app (including the base app and the resized VM disk) grew to approximately 45.52GB.

Linux Terminal uncapped disk resize option

Mishaal Rahman / Android Authority

In a future release, Google plans to remove the disk resize slider entirely from the Linux Terminal app. Instead, the app will employ storage ballooning to dynamically adjust the storage space available to the Debian VM. This feature allows the guest VM’s storage to “inflate” to use available space and “deflate” when the host system needs to reclaim it. This approach offers two key benefits: the storage allocated to Debian doesn’t need to be fixed upfront, and it protects the host from running out of space by automatically shrinking the guest’s available storage when necessary.

Google is rapidly improving the Linux Terminal app, recognizing its key role in the company’s plans to transition Chrome OS to an Android base. Although the app theoretically allows for running full-fledged Linux desktop environments, Google says the Terminal’s primary purpose is to enable running Linux apps alongside Android apps, not to replace Android’s native desktop mode. Still, Google’s efforts will unlock some exciting use cases, and it’ll be fascinating to see the innovative ways that users leverage the Linux Terminal on their Pixels as the app matures.

Got a tip? Talk to us! Email our staff at [email protected]. You can stay anonymous or get credit for the info, it's your choice.
联系我们 contact @ memedata.com