I am getting-
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{..} requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
at
bm = MediaStore.Images.Media.getBitmap(context.getContentResolver(), uri);
I am using bm = MediaStore.Images.Media.getBitmap(context.getContentResolver(), uri);
inside a service.I normally does NOT get this exception but if i reboot my device and then service gets called i get this exception.I have specified android.permission.MANAGE_DOCUMENTS in manifest as well as at runtime and i have checked Getting Permission Denial Exception answer too.