Android WRITE_EXTERNAL_STORAGE permission requires app restart – EACCES (Permission denied)

Currently working to implement new Android 6.0 (Marshmallow) run-time permission model for one my apps. During testing on the emulator I found quite annoying bug. When user grants WRITE_EXTERNAL_STORAGE on-demand permission, the app still cannot write (nor read) from external storage. For permission changes to take affect you have to kill and restart the app.

Found a related bug reported on android-developer-preview. It was for a Developer Preview release and the case was closed since Marshmallow has been released publicly….

I tested the app on a few physical devices and couldn’t reproduce the issue. I assume the bug is still present from Developer Preview but only affects emulator…

January 2016

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *