How to access /storage/emulated/0/Android/data ? #2398
-
I have looked similar issues in this repository before, which has not been settled. I know that due to the restriction of Android 10+, Termux cannot access to it directly, but, it indeed have another ways to gain the permission without using bugs, just like ES file browser do. That way is to popup the file browser of system, ask the user to browse the Android/data directory and select all the file, then the caller APP could gain the permission permenantly. The same way can be used to gain the access extension SD card as well. So, could Termux gain the access to Android/data as ES File Browser do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That prompt gets SAF access for the |
Beta Was this translation helpful? Give feedback.
That prompt gets SAF access for the
Android/data
directory and onlySAF
APIs can be used to get the files, you won't get access in shell (unless wrappers are written by someone). And that hack is gone in android 12 anyways as far as I know.#2196 (comment)
https://wiki.termux.com/wiki/Internal_and_external_storage