-
-
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
Termux can't write to external SD card #1886
Comments
This may not be an app permissions issue, but something to do with filesystem permissions or the way bind mounts and sdcardfs mounts are set up. Here's some evidence:
|
Duplicate of #20, #1683 (and some other issues). It is currently only possible to write to termux's folder on the external storage, |
Problem description
I have a Fairphone 3 with an SD card slot, and I have installed an SD card with a single FAT partition formatted by the phone.
termux-setup-storage
asks for permission to access /storage/emulated/0, and that all works, but it does not ask for permission to access /storage/ID and Termux can't write to any files there.By contrast, Resilio Sync (also on SDK 28) explicitly asks to be granted permission to the SD card and after doing so, is able to write there.
Note that my Termux has been granted the "Storage" permission in the apps settings. This is a separate permission.
I have read Internal and external storage but this is not about /storage/emulated/0, which is on my phone's internal flash memory.
Steps to reproduce
termux-setup-storage
cd /storage/ID/Download
(substitute the id of your SD card's FAT FS)echo foo > bar
gets a permission denied messageExpected behavior
I want to be able to work on files on the SD card using Termux.
Perhaps
termux-setup-storage
needs to ask for more permission.Additional information
The text was updated successfully, but these errors were encountered: