Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecoverable error: Permission denied should be "SecurityException" #4119

Closed
Zhuinden opened this issue Jan 29, 2017 · 1 comment
Closed

Comments

@Zhuinden
Copy link
Contributor

Currently you get RealmError which says unrecoverable error when permission is denied, but it is possible that you want to open Realm on external storage without having requested runtime permission.

Considering this is permission denial by the system, it makes sense that you get the same error as you would if you tried to access the external storage without permission, which is SecurityException.

 Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=2009, uid=10059 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

Related to #3972 (comment)


Version: 2.3.0

@Zhuinden
Copy link
Contributor Author

actually, probably not.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant