Closed ghost closed 5 years ago
Hello,
This permission isn't necessary for the app to write on its dedicated directory on either the internal or external storage.
Beginning with Android 4.4 (API level 19), reading or writing files in your app's private external storage directory—accessed using getExternalFilesDir()—does not require the READ_EXTERNAL_STORAGE or WRITE_EXTERNAL_STORAGE permissions. – the documentation
Note that some Android distributions such as Android-x86 do not implement filesystem permissions correctly on the external storage. This is a bug that should be reported to them and fixed on their side.
A possible workaround that we could implement would be to request this permission conditionally at run-time. A pull request for this would be welcomed.
FAQ entry added:
Permission denied on external storage Some Android distributions such as Android-x86 do not implement file access permissions correctly. On those ROMs, it is necessary to manually grant the Storage permission to the application in the System settings.
For anyone else finding this, I had to do it on my Samsung Galaxy S10.
When I try to generate node configuration and keys, I got this error:
When I run
adb shell pm grant org.pacien.tincapp android.permission.WRITE_EXTERNAL_STORAGE
, I got this error:I think it is necessary to add
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
toAndroidManifest.xml
(See this.)