DEV Community

Cover image for Getting Started with TERMUX πŸ“²

Getting Started with TERMUX πŸ“²

John Johnson Okah on July 20, 2023

Have you ever been stuck with just your phone on a bus or in a boring environment and all you could think of is getting right back to your Dev envi...
Collapse
 
hideandseekstheorder profile image
hideandseeks-hub β€’

nice

Collapse
 
hbtjr1275 profile image
Janell Thornton β€’

It's great and flexible so I have my distro on my android devices.

Collapse
 
jjokah profile image
John Johnson Okah β€’

Oh yeah, it is.

Collapse
 
procyon108 profile image
Joseph Gant (Joe) β€’ β€’ Edited

Thank you for this. Ive been using linux for a long time on my PCs and servers but Android development is new for me. I'm working on Android 10. It's a Chinese release supporting a DAP, so Im extara lost.
Is Termux still confined to its own app space on Android 10 only when writing to the external card, or is the internal storage sandboxed as well?

Edit: typo

Collapse
 
jjokah profile image
John Johnson Okah β€’

Termux isn't confined to its own app space.
The app-specific directory /data/data/com.termux/files/ has unrestricted read and write access.
Other storage (like ~/storage/shared/) can still be accessed β€” with some restrictions.

Collapse
 
viliyam2811 profile image
Viliyam Vasava β€’

In Your Phone File Manager you can access the path as External SD Card/Android/data/com.termux/files which is linked with ~/storage/external-1 in Termux. This is the path that Termux has full access with all Read & Write permision for External Storage.

First run termux-setup-storage to get access of ~/storage/external-1

Now you can create files by running.

touch ~/storage/external-1/hello-world.py

Check if file is created on External Storage or not in

External SD Card/Android/data/com.termux/files

Image description

I am also using Termux on
Android 10. The problem you are facing in not about Android 10.

Termux gives access to external storage with some limitations external storage like mirco sd card or usb storage you can read but cannot write to all files.

Collapse
 
with_out_sugar profile image
Ramas Something β€’
Comment hidden by post author
Collapse
 
with_out_sugar profile image
Ramas Something β€’
Comment hidden by post author
Collapse
 
with_out_sugar profile image
Ramas Something β€’
Comment hidden by post author
Collapse
 
dubai_president_742a971fc profile image
Dubai president β€’

Click on this link to message privately on telegram so you can receive my gift
🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁🎁
t.me/Mr_thank_you_342
t.me/Mr_thank_you_342
t.me/Mr_thank_you_342

Collapse
 
vendo profile image
Ven Jon β€’

What's the main purpose of Termux

Some comments have been hidden by the post's author - find out more