My app is using storage permission (read + write).
If I grant or reject the permission, everything works fine. But if I reject it and check the "Do not ask again" checkbox, then the app can no longer access storage, even if I go to the settings to manually grant the permission. Android correctly tells me that the permission is now granted, but when accessing the storage, I get an EACCES (Permission denied) error.
Clearing the data does not fix the bug, nor rebooting the device, not even reinstalling the app.
This means that if a user does this, the app no longer works on his device, unless he does a factory reset. Nice.
Is there anything we can do?