alexrintt / shared-storage

Flutter plugin to work with Android external storage.
http://alexrintt.io/shared-storage/
MIT License
53 stars 23 forks source link

java.lang.SecurityException #154

Open Mycodingdad108 opened 5 months ago

Mycodingdad108 commented 5 months ago

io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.openInputStream

this error happaning to every userrr whatt sshould i do

Exception java.lang.SecurityException: at android.os.Parcel.createExceptionOrNull (Parcel.java:3023) at android.os.Parcel.createException (Parcel.java:3007) at android.os.Parcel.readException (Parcel.java:2990) at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel (DatabaseUtils.java:153) at android.content.ContentProviderProxy.openTypedAssetFile (ContentProviderNative.java:780) at android.content.ContentResolver.openTypedAssetFileDescriptor (ContentResolver.java:2034) at android.content.ContentResolver.openAssetFileDescriptor (ContentResolver.java:1849) at android.content.ContentResolver.openInputStream (ContentResolver.java:1525) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.openInputStream (DocumentFileApi.java) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.readDocumentContent (DocumentFileApi.java) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.access$readDocumentContent (DocumentFileApi.java) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi$onMethodCall$1.invokeSuspend (DocumentFileApi.java) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.java) at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.java) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.java) at kotlinx.coroutines.scheduling.TaskImpl.run (TaskImpl.java) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.java) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.java) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.java) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.java)

Mycodingdad108 commented 5 months ago

andd another is

java.lang.IllegalArgumentException

Exception java.lang.IllegalArgumentException: at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:172) at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel (DatabaseUtils.java:153) at android.content.ContentProviderProxy.openTypedAssetFile (ContentProviderNative.java:780) at android.content.ContentResolver.openTypedAssetFileDescriptor (ContentResolver.java:2053) at android.content.ContentResolver.openAssetFileDescriptor (ContentResolver.java:1868) at android.content.ContentResolver.openInputStream (ContentResolver.java:1544) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.openInputStream (DocumentFileApi.java) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.readDocumentContent (DocumentFileApi.java) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi.access$readDocumentContent (DocumentFileApi.java) at io.alexrintt.sharedstorage.storageaccessframework.DocumentFileApi$onMethodCall$1.invokeSuspend (DocumentFileApi.java) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.java) at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.java) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.java) at kotlinx.coroutines.scheduling.TaskImpl.run (TaskImpl.java) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.java) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.java) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.java) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.java)

Mycodingdad108 commented 5 months ago

Fatal Exception: java.lang.SecurityException Document primary:Android/media/com.whatsapp/WhatsApp/Media/.Statuses/5fffb73ce519452ea4142c86c6e7e82f.jpg is not a descendant of primary:Android/media

tthis iss what i get in firebase crash