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

 

Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait