-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[Bug]: "Permission denied" on "/storage/emulated/0/" #4486
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
Comments
Is Android Settings -> Apps -> Termux -> Permissions -> Files permission granted? And I assume Termux;API app was not installed before (and now)? |
I had the same problem after upgrade. It seems _removing _ the Files permission and then re-granting the permission resolves the issue for me. Edit: Samsung S22, Android 14 |
Which device and android version? |
Yes, re-granting permission are fixed problem |
This comment has been minimized.
This comment has been minimized.
Perfect. Keep up the amazing work! |
Please reopen this issue, re-granting the permission only fixes the problem temporarily. It fails again on the next day and I've reproduced this twice. |
Seems like firmware related bug. Usually OS does not automatically revoke permissions day after user grants it. |
It's not revoked, it comes back to the old state of "permission granted but can't access anything". I ran |
I think this issue should be re-opened. Samsung S24 Ultra, |
Hm, still all working for me |
@anotherdoesnm add your phone manufacturer to the post. Can anyone reproduce this on a not-Samsung phone? |
Old Xiaomi device on Android 10 (MIUI12) here. Still happens today. But I checked permissions on Termux:API (not Termux app) this time and it's "ask me everytime". Changed it to be "always allow" and it works again. I'll see if this still works tomorrow. For more context this happens after I upgraded both Termux and Termux:API, I believe other people in this thread did the same. |
My manufacture is Oukitel, updated my post above |
Update: after I granted permission to Termux:API the problem seems to be resolved. I'll report back if this occurs again. |
…API version `0.51.0` is revoking the storage permission of Termux app after updates and sometimes later Related issue #4486
Problem description
Accessing the storage was working well before the current upgrade, but not anymore:
Steps to reproduce the behavior.
ls /storage/emulated/0/Documents/
What is the expected behavior?
No response
System information
The text was updated successfully, but these errors were encountered: