termux-play-store / termux-apps

Source for the Termux build on Google Play.
https://play.google.com/store/apps/details?id=com.termux
Other
35 stars 1 forks source link

[Bug]: /sdcard access Operation not permitted #14

Closed JeelsBoobz closed 1 week ago

JeelsBoobz commented 2 weeks ago

Problem description

Can't write to /sdcard

Steps to reproduce the behavior.

echo "" > /sdcard/a.txt Screenshot_2024-06-14-18-33-16-632_com termux

What is the expected behavior?

No response

System information

fornwall commented 2 weeks ago

Unfortunately write permission to all of /sdcard is no longer granted by Android - see https://developer.android.com/about/versions/11/privacy/storage.

If you need unrestricted write access to /sdcard from Termux, install the F-Droid build, which circumvents newer security restrictions on Android by targeting older API levels - but that is not possible on Google Play.

If you only need access to app-private parts, perhaps try running termux-setup-storage and then putting files in ~/storage/external-0 or similar.

You're also welcome to describe your high level use case, what it is you want to achieve - perhaps we can solve it somehow with either existing or new functionality!

JeelsBoobz commented 2 weeks ago

Unfortunately write permission to all of /sdcard is no longer granted by Android - see https://developer.android.com/about/versions/11/privacy/storage.

If you need unrestricted write access to /sdcard from Termux, install the F-Droid build, which circumvents newer security restrictions on Android by targeting older API levels - but that is not possible on Google Play.

If you only need access to app-private parts, perhaps try running termux-setup-storage and then putting files in ~/storage/external-0 or similar.

You're also welcome to describe your high level use case, what it is you want to achieve - perhaps we can solve it somehow with either existing or new functionality!

Oh, okay thanks your information