SDK28 / SDK29 problem on ImagePicker.launchImageLibraryAsync()


Now Issue

On Some devices, ImagePicker.launchImageLibraryAsync() restart de App.
Tested On Sony F3116 - Android 7.0

#Create Blanck App
$ exp detach


Some reports on Play Store Publish

Android 7.0 8 61.5%
Android 6.0 4 30.8%
Android 7.1 1 7.7%
Galaxy J7 Neo (j7velte) 2 15.4%
VIBE K6 (K33b36) 2 15.4%
Galaxy J7 Prime (on7xelte) 2 15.4%
Galaxy J5 (j5lte) 2 15.4%
VIBE K6 Note (K53b36) 2 15.4%
Galaxy A9 Pro (a9xproltesea) 1 7.7%
Galaxy J5 Prime (on5xelte) 1 7.7%
Moto G4 Play (harpia_t) 1 7.7%

The Problens

We have an App With 16k Users, 8K Active Users. Some user have starting to experiencing some several Bugs like:

Published App

takeSnapshotAsync() SDK 29 Error On Any Real Device

I tested one cliente phone With the problem:

Sony Xperia XA F3116
Android 7.0

08-16 16:31:38.557 10112-10355/ E/ImageLoader: Permission Denial: reading uri content:// from pid=10112, uid=10305 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()
    java.lang.SecurityException: Permission Denial: reading uri content:// from pid=10112, uid=10305 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()
        at android.os.Parcel.readException(
        at android.database.DatabaseUtils.readExceptionFromParcel(
        at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(
        at android.content.ContentProviderProxy.openTypedAssetFile(
        at android.content.ContentResolver.openTypedAssetFileDescriptor(
        at android.content.ContentResolver.openAssetFileDescriptor(
        at android.content.ContentResolver.openInputStream(
        at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.downloadImage(
        at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryCacheImageOnDisk(
        at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(
        at com.nostra13.universalimageloader.core.ImageLoader.displayImage(
        at com.nostra13.universalimageloader.core.ImageLoader.displayImage(
        at com.nostra13.universalimageloader.core.ImageLoader.loadImage(
        at com.nostra13.universalimageloader.core.ImageLoader.loadImage(
        at com.nostra13.universalimageloader.core.ImageLoader.loadImageSync(
        at com.nostra13.universalimageloader.core.ImageLoader.loadImageSync(
        at android.os.AsyncTask$SerialExecutor$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

Hello @victorwads, please take a loot at Permissions under android.permissions key. From what I see from your previous post, some devices require MANAGE_DOCUMENTS to access some files. By default this permission is turned off and this might causing mentioned issue in detached apps.
I’ll build detached app based on your snack example and investigate problem further if needed.


@barthec Thanks, i’m waiting user tests to give his feedback about new version.

closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.