-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't access external storage #1683
Comments
Write access isn't possible. https://wiki.termux.com/wiki/Internal_and_external_storage Look into $HOME/storage for symlinks to Termux private directory on your microsd (should be named |
I don't understand why other apps can gain access to external sdcard and Termux can't. Technically is possible, why not implement it? |
Because Termux environment technically is not other apps. Yes, terminal emulator is Android app but command line utilities are Linux apps. CLIs do not have access to Android API, they are executed directly by kernel bypassing the Android framework. |
Possible, bot wontfix. Why?
|
Ok I understand. I was trying to run some Go programs on external sd, but I see will not be possible in the near future. |
Even if external sd would be writable, you won't be able to execute any programs (except scripts) from it anyway. All kinds of storage (except /system and /data) are mounted with noexec, effectively disabling program execution on them. |
Ok I understand. What happens if I have LineageOS rooted with Magisk? Could I use Termux more broadly? |
With root you will have at least read-write access on external sdcard. You can try to remount it with "exec" option to enable execution, not sure whether sdcardfs daemon will handle it properly. |
I run
termux-setup-storage
and waits a couple of seconds and nothing happens. I want to gain access to external microsd which I replaced yesterday. Storage permission is allowed.The text was updated successfully, but these errors were encountered: