Phone Storage
Reach your Android phone's internal storage from inside an Andronix Linux distro at /sdcard, and share other folders with the distro.
This page is for Andronix with Termux, on phones that can't run Linux in the app (Android 7, or no 64-bit ARM processor), or if you use the command-line installer. For Linux in the app, see Android files in Linux.
This page is for Linux in Termux. For distros you installed in the app, see Android files in Linux.
This page shows how to reach your phone's internal storage from inside your Linux distro. On distros from Andronix 2.0, it's one command in Termux.
Storage on a new install
Distros from Andronix 2.0 share your phone's internal storage at /sdcard automatically. Termux just needs permission to read it.
Give Termux storage access
In Termux (not inside the distro), run:
termux-setup-storageTermux will now ask for Storage permission. Allow the Storage permission.
Restart the distro
If the distro is running, exit it and start it again, for example with ./start-debian.sh.
Check
Inside the distro, run ls /sdcard. You should see your phone's folders, like Download and DCIM.
Sharing other folders
To share another Termux folder with the distro, add a line to a file in ~/<distro>-binds/ in Termux, the same way as with the pre-2.0 installer. For example, to make Termux's ~/projects folder appear at /projects in Debian:
mkdir -p ~/debian-binds
echo 'command+=" -b /data/data/com.termux/files/home/projects:/projects"' > ~/debian-binds/projects.shRestart the distro for the change to take effect.
Other Ways to Connect (VNC)
Use your Andronix desktop from another device, or in a VNC viewer app, with vncserver-start. The main way to open the desktop is Termux:X11.
The Install Fails or Stops
Fix an Andronix install that fails or stops - signal 9, storage space, downloads, unsupported phones, passwords - and where to find the logs.
