Error: 908: The Permission WRITE_EXTERNAL_STORAGE has been denied. Please enable it in Settings App

Here is a test app that allows you to save, read and share a text file (.txt, .csv etc.) in

  • one of the Shared folders (/Documents or /Download) or
  • the ASD or
  • the PrivateDir (internal storage).

This is possible on devices running Android 11+ without any storage permissions. On devices with Android ≥ 4.4 (API 19, KitKat) and ≤ 10 (API 29) WRITE permission is only required for the Shared folders. On all other devices (i.e. with Android below KitKat) READ and WRITE permissions are required for all storage locations except for the PrivateDir.

However, since WRITE permission automatically and implicitly grants READ as well, it is sufficient to simply request WRITE permission.

For this I modified Sunny's EFile extension a bit. @vknow360
Note: This is not possible using the File component.

So test this test app on different Android versions and give feedback if everything works as described here.

2 Likes