-
Notifications
You must be signed in to change notification settings - Fork 2.2k
SecurityException in Version 2.2.0 when trying to display the image from the Gallery #212
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When selecting a picture from the Gallery and opening it with uCrop, via the returned Uri from the onActivityResult intent, the app will crash:
Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=14071, uid=10350 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
What is the expected behavior?
To not crash and nonetheless display the chosen picture as it was done in version 1.5.0 of the library.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
- Let the user choose a picture from the gallery
- Take the
Urifrom the onActivityResult callback and open uCrop with it - App will crash
Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop?
Android versions affected: >= Marshmallow
Version 2.2.0 of uCrop is affected.